Conversation
Removes the api-mode synthesis path entirely — src/ai/provider.js, src/ai/providers/claude.js, the @anthropic-ai/sdk dependency, the per-command api branches in scan/explain/new/tech/tasks/init, and supporting utilities (overwrite-guard, answers-flag, principles.js, spec-quality.js) that only fed api-mode synthesis. Each prompt module now exports just buildAgentInstruction (or AGENT_INSTRUCTION for scan); the host coding agent does the synthesis using its own model. Config schema simplifies: the `ai:` block is no longer used. loadConfig still reads existing configs that carry one and prints a one-line notice that the block is safe to delete, then ignores it. Init loses --ai-mode/--provider/--api-key-env/--stack/--answers; new/tech/tasks lose --force and --answers. Brownfield init runs end-to-end with no flags now; greenfield still needs --idea and prints the structured handoff if missing. CLAUDE.md, README.md, CHANGELOG.md, and the plugin reference files updated to match. 227 tests passing; lint clean.
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.
Summary
Removes Draftwise's api-mode synthesis path. The CLI now runs only inside coding agents (Claude Code, Cursor, Gemini CLI, etc.) — it scans the codebase, prints structured data + an instruction for the host agent, and exits. The host agent's model does the synthesis and writes the spec.
src/ai/provider.js,src/ai/providers/claude.js, and@anthropic-ai/sdkdeleted; each prompt module now exports justbuildAgentInstruction(orAGENT_INSTRUCTIONforscan)initloses--ai-mode/--provider/--api-key-env/--stack/--answers;new/tech/taskslose--forceand--answers. Brownfield init runs end-to-end with no flags now; greenfield still needs--ideaand prints the structured handoff if missingconfig.yamlschema simplifies — theai:block is gone. Existing configs carrying one keep working:loadConfigprints a one-line notice that the block is safe to delete, then ignores it. No version bumpTest plan
npm test— 227 passingnpm run lint— cleanplugin/skills/draftwise/reference files all updated to reflect the agent-only execution model