Skip to content

Adds Coordinator Mode v0.3#3

Merged
SetraTheXX merged 6 commits into
mainfrom
feat/run-worktrees-plan
May 29, 2026
Merged

Adds Coordinator Mode v0.3#3
SetraTheXX merged 6 commits into
mainfrom
feat/run-worktrees-plan

Conversation

@SetraTheXX

Copy link
Copy Markdown
Owner

Summary

Adds Coordinator Mode v0.3 helper commands for safer manual multi-agent workflows.

This keeps Coordinator Mode manual-helper only. It does not spawn Codex processes, automate terminals, auto-merge, auto-push, publish releases, or run autonomous agents.

Added

  • --run <id> support for selecting a specific Coordinator Mode run
  • cewp run worktrees plan
  • cewp run worktrees create
  • cewp run worktrees status
  • cewp run collect
  • cewp run finalize
  • cewp run cleanup

Workflow

The new helper flow is:

run init
-> worktrees plan
-> worktrees create
-> worktrees status
-> collect
-> finalize
-> cleanup

Safety

  • Worktree creation blocks dirty main repos and unsafe target paths.
  • Worktree status reports clean/dirty state and allowed/forbidden file warnings.
  • Collect generates a local review packet under .cewp/runs/<run-id>/review-packets/.
  • Finalize requires reviewer Decision: PASS.
  • Cleanup is dry-run by default.
  • Cleanup only removes clean registered worktrees with --yes.
  • Dirty worktrees are preserved.
  • .cewp/runs/<run-id>/ history is preserved.
  • No merge, push, publish, Codex process spawn, codex exec, or terminal automation is added.

Verification

  • node --check ./bin/cewp.js
  • node ./bin/cewp.js --help
  • node ./bin/cewp.js doctor
  • node ./bin/cewp.js list
  • Full temp-repo Coordinator Mode workflow smoke test
  • Negative/safety tests for invalid --run, unsafe paths, dirty repos, missing reviewer PASS, and dirty cleanup
  • npm pack --dry-run

Notes

bin/cewp.js has grown significantly during v0.3. This is not a blocker for this PR, but a follow-up modular refactor branch is recommended after merge.

Copilot AI review requested due to automatic review settings May 29, 2026 02:02
@SetraTheXX SetraTheXX merged commit bd1123e into main May 29, 2026
1 check failed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@SetraTheXX SetraTheXX deleted the feat/run-worktrees-plan branch May 29, 2026 02:05
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.

2 participants