feat(init): opt-in agent selection with interactive picker#36
Open
bntvllnt wants to merge 1 commit into
Open
Conversation
init no longer installs files for every agent (or the global skill) by default. Nothing is written unless the user chooses it. - TTY, no flags: interactive checkbox picker (AGENTS.md + CLAUDE.md preselected; skill toggle in-list). Zero new dependency (readline raw mode). - Non-interactive (--yes/--json/no TTY): defaults to AGENTS.md + CLAUDE.md. - --agents <list> explicit, --all for every agent. - Global skill is opt-in via --skill (removed --no-skill; no longer default-on). Pure resolveInitPlan() + prompt helpers are unit-tested (16 new tests). Pre-release change to the canary-only init command — no stable users affected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
init(shipped to canary in #34) wrote files for all 6 agents by default and installed the global skill unless--no-skill. That installs things the user never asked for. This flips it to opt-in: nothing is written unless chosen.Pre-release change —
initonly exists on canary, no stable release ships it, so there's no backward-compat cost.Behavior
init(TTY)AGENTS.md+CLAUDE.mdpreselected, skill toggle in-listinit --yes/--json/ no TTYAGENTS.md+CLAUDE.md, no skillinit --agents claude,cursorinit --allinit --skillRemoved
--no-skill(skill is off by default now).Implementation
readlineraw-mode checkbox (src/install/prompt.ts). The project is deliberately dep-minimal.resolveInitPlan(flags, isTty)+ pure prompt helpers (buildPromptItems/toggleItem/collectSelection/renderMenu), all unit-tested. The raw-mode loop is a thin I/O shell over them.Tests / gates
--all,--agents,--skill, invalid agent → exit 2).Docs
README,
docs/cli-reference.md,llms-full.txt,CHANGELOG.mdupdated; the[Unreleased]entry now describes the opt-in design (the never-shipped--no-skill/default-all behavior is gone).