Skip to content

Drop API mode#60

Merged
4nkur merged 1 commit intomainfrom
drop-api-mode
Apr 29, 2026
Merged

Drop API mode#60
4nkur merged 1 commit intomainfrom
drop-api-mode

Conversation

@4nkur
Copy link
Copy Markdown
Owner

@4nkur 4nkur commented Apr 29, 2026

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/sdk deleted; each prompt module now exports just buildAgentInstruction (or AGENT_INSTRUCTION for scan)
  • 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
  • config.yaml schema simplifies — the ai: block is gone. Existing configs carrying one keep working: loadConfig prints a one-line notice that the block is safe to delete, then ignores it. No version bump

Test plan

  • npm test — 227 passing
  • npm run lint — clean
  • CLAUDE.md, README.md, CHANGELOG.md, and plugin/skills/draftwise/ reference files all updated to reflect the agent-only execution model

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.
@4nkur 4nkur merged commit 127cd3d into main Apr 29, 2026
2 checks passed
@4nkur 4nkur deleted the drop-api-mode branch April 29, 2026 16:25
@4nkur 4nkur mentioned this pull request Apr 29, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant