Skip to content

feat: add pipeline switch command for Pi and MCP (#64)#70

Merged
TheAmericanMaker merged 1 commit into
mainfrom
feat/pipeline-switch
Jul 23, 2026
Merged

feat: add pipeline switch command for Pi and MCP (#64)#70
TheAmericanMaker merged 1 commit into
mainfrom
feat/pipeline-switch

Conversation

@TheAmericanMaker

Copy link
Copy Markdown
Member

What changed

  • New switchPipeline() function in core/workspace.ts that rewrites status.yaml with a new pipeline's phase order in-place, preserving:
    • Completed phases that exist in both old and new pipelines (status, owner notes, open questions, carry-forward)
    • post_pipeline entries
    • All findings, handoffs, usage data, closeouts, and checkpoints on disk
  • New /codecarto-switch-pipeline <variant> Pi command
  • New codecarto_switch_pipeline MCP tool
  • README updated to replace the broken hand-edit advice with the new command
  • Test updated to include the new command in the registered commands list

Why

The README told users to hand-edit status.yaml to switch pipelines, but GUIDE.md marks that file as framework-owned. The only alternative was /codecarto-init which (before v0.12.4) deleted everything. Now users can switch pipelines non-destructively.

Validation

  • npm run build — clean
  • npm test — 264/264 pass
  • npx tsc --noEmit — no errors

Closes #64

switchPipeline in core/workspace.ts rewrites status.yaml with the new
pipeline's phase order in-place, preserving completed phases that exist
in both old and new pipelines, post_pipeline entries, and all findings/
handoffs/usage/closeouts on disk. No data loss.

Pi: /codecarto-switch-pipeline <variant>
MCP: codecarto_switch_pipeline tool

README updated to replace the broken hand-edit advice with the new command.
@TheAmericanMaker
TheAmericanMaker merged commit b5c7186 into main Jul 23, 2026
5 checks passed
@TheAmericanMaker
TheAmericanMaker deleted the feat/pipeline-switch branch July 23, 2026 04:44
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.

No pipeline switch command — README tells users to hand-edit framework-owned status.yaml

1 participant