(MOT-3874) feat(harness): worktree-isolated spawns + GPT-family code prompt#413
(MOT-3874) feat(harness): worktree-isolated spawns + GPT-family code prompt#413ytallo wants to merge 2 commits into
Conversation
Git worktree lifecycle for isolated sub-agent workspaces: worktree-add creates .worktrees/<name> on branch wt/<name> from the effective root's HEAD (fs_scope-aware, name-validated, requires a git work tree); worktree-remove is clean-only — uncommitted changes keep the worktree in place and are reported dirty, and the wt/<name> branch is deleted only when fully merged so unlanded child work survives for the caller to merge. Catalog grows to 13.
- spawn options gain isolation: "worktree" (dispatch path): the child gets its own git worktree via coder::worktree-add before seeding, its fs_scope root points at it, and the worktree rides the parent's call checkpoint. On child completion (including sweep-expired children, which route through the same deliver path) the harness removes the worktree clean-only and appends a disposition note to the parent's result: merge wt/<name>, inspect a dirty tree, or nothing to do. - code mode selects a per-family identity: openai/openai-codex route to prompts/code-gpt.txt (apply_patch edit discipline); openai-codex now maps to the Gpt prompt family. Both code prompts gain a delegation section (spawn + worktree isolation + merge guidance). - code_mode_policy adds harness::spawn to the native surface.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 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 |
skill-check — worker0 verified, 32 skipped (no docs/).
Four for four. Nicely done. |
|
Consolidated into #423. |
feat(shell): coder::worktree-add / coder::worktree-remove
Git worktree lifecycle for isolated sub-agent workspaces: worktree-add
creates .worktrees/ on branch wt/ from the effective root's
HEAD (fs_scope-aware, name-validated, requires a git work tree);
worktree-remove is clean-only — uncommitted changes keep the worktree
in place and are reported dirty, and the wt/ branch is deleted
only when fully merged so unlanded child work survives for the caller
to merge. Catalog grows to 13.
feat(harness): worktree-isolated spawns + GPT-family code prompt
gets its own git worktree via coder::worktree-add before seeding, its
fs_scope root points at it, and the worktree rides the parent's call
checkpoint. On child completion (including sweep-expired children,
which route through the same deliver path) the harness removes the
worktree clean-only and appends a disposition note to the parent's
result: merge wt/, inspect a dirty tree, or nothing to do.
prompts/code-gpt.txt (apply_patch edit discipline); openai-codex now
maps to the Gpt prompt family. Both code prompts gain a delegation
section (spawn + worktree isolation + merge guidance).
Refs MOT-3874