Dan/init plan or implement 1#427
Dan/init plan or implement 1#427calvinbrewer wants to merge 1 commit intodan/init-plan-or-implementfrom
Conversation
We split and added to gamify the encryption setup with a save-point between scaffolding and the agent handoff, plus an opt-in prompt at end of init to chain straight into plan mode.
🦋 Changeset detectedLatest commit: e16b282 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Caution Review failedFailed to post review comments 📝 WalkthroughWalkthroughThis PR introduces a new ChangesInit Scaffolding + Plan/Implement Mode Selection
Sequence DiagramsequenceDiagram
actor User
participant CLI
participant implCommand as impl Command
participant howToProceeded as how-to-proceed Step
participant Agent as Agent (claude-code/codex/...)
User->>CLI: stash impl [--yolo]
CLI->>implCommand: implCommand(flags)
implCommand->>implCommand: readContextFile()
alt Context missing
implCommand->>User: Error: run 'stash init' first
else Context exists
implCommand->>implCommand: deriveMode(cwd, yolo)
alt --yolo and no plan.md
implCommand->>User: Confirm force implement mode?
alt User declines
implCommand->>User: Cancelled
else User confirms
implCommand->>implCommand: mode = 'implement'
end
else plan.md exists
implCommand->>implCommand: mode = 'implement'
else No plan.md, no --yolo
implCommand->>implCommand: mode = 'plan'
end
implCommand->>implCommand: buildStateFromContext(mode)
implCommand->>howToProceeded: run(state, provider)
howToProceeded->>howToProceeded: buildOptions(mode)<br/>(plan: claude-code, codex only)<br/>(implement: +wizard, agents-md)
howToProceeded->>howToProceeded: defaultChoice(mode)
howToProceeded->>User: Select agent or tool
User->>howToProceeded: Choose handoff
howToProceeded->>Agent: handoffXxxStep.run(state)<br/>(prompt varies by mode)
Agent->>User: Interactive handoff<br/>(plan: draft .cipherstash/plan.md)<br/>(implement: execute setup steps)
Agent->>implCommand: Complete
implCommand->>User: Mode-specific outro<br/>(plan/implement)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
||
| Commands: | ||
| init Initialize CipherStash for your project | ||
| impl Draft an encryption plan (or implement, if a plan exists) |
There was a problem hiding this comment.
I think the wording is the wrong way around. The command performs implementation but will generate a plan first if one exists?
We split
stash initand addedstash implto gamify the encryption setup with a save-point between scaffolding and the agent handoff, plus an opt-in prompt at end of init to chain straight intostash implplan mode.Summary by CodeRabbit
New Features
stash implcommand to manage planning and implementation workflows separately--yoloflag bypasses planning checkpoint confirmationstash initnow completes scaffolding and checkpoints tostash implWorkflow Improvements
stash implsupports plan-first mode or direct implementation based on existing plan state