Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(work): run /do:review before /do:pr so codex+gemini land before Copilot

Adam Eivy5d0823bf4f55
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 8b5e53210e..8dde399be1 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -2,7 +2,7 @@
## Added
-- `/work <task>` Claude Code slash command (`.claude/commands/work.md`) — slugifies the task, spins up a fresh git worktree under `.claude/worktrees/<slug>/` branched off local `main` (NOT current HEAD), `cd`s into it, carries out the work without disturbing the originating checkout's uncommitted edits / branch / HEAD, and on completion always chains `/simplify` → `/do:pr --review-with codex,gemini,copilot` so the work lands as a reviewed PR. Branch / dir collision auto-suffixes with `-2`, `-3`, etc. `.claude/worktrees/` is already gitignored.
+- `/work <task>` Claude Code slash command (`.claude/commands/work.md`) — slugifies the task, spins up a fresh git worktree under `.claude/worktrees/<slug>/` branched off local `main` (NOT current HEAD), `cd`s into it, carries out the work without disturbing the originating checkout's uncommitted edits / branch / HEAD, and on completion always chains `/simplify` → `/do:review --with codex,gemini` → `/do:pr --review-with copilot` so codex + gemini findings are addressed locally *before* the PR opens (otherwise Copilot kicks in immediately on unreviewed code and burns review cycles). Branch / dir collision auto-suffixes with `-2`, `-3`, etc. `.claude/worktrees/` is already gitignored.
## Changed
diff --git a/.claude/commands/work.md b/.claude/commands/work.md
index 4c25fc315c..bedac1210f 100644
--- a/.claude/commands/work.md
+++ b/.claude/commands/work.md
@@ -36,15 +36,17 @@ $ARGUMENTS
5. **Carry out the task.** Implement, test, and commit as appropriate. The originating checkout is untouched — its uncommitted changes, branch, and HEAD are all preserved.
-6. **After the task is complete**, *from inside the worktree directory*, always run:
+6. **After the task is complete**, *from inside the worktree directory*, always run, in this exact order:
```
/simplify
- /do:pr --review-with codex,gemini,copilot
+ /do:review --with codex,gemini
+ /do:pr --review-with copilot
```
- - `/simplify` first — review the changed code for reuse, quality, and efficiency before opening the PR.
- - Then `/do:pr --review-with codex,gemini,copilot` — commit, push the `worktree-<slug>` branch, and open the PR against `main` with the multi-reviewer loop.
+ - `/simplify` first — review the changed code for reuse, quality, and efficiency.
+ - Then `/do:review --with codex,gemini` — run the local codex + gemini reviews against the diff and address their findings *before* the PR is opened. Opening the PR first kicks Copilot into a review round against unreviewed code, which wastes Copilot cycles on issues codex/gemini would have caught locally.
+ - Finally `/do:pr --review-with copilot` — commit, push the `worktree-<slug>` branch, and open the PR against `main`. Copilot is the only reviewer in the loop here because codex/gemini already ran locally.
- Run these even if the task description didn't explicitly ask for a PR. The point of the worktree is to land the work as a reviewed PR; skipping these steps defeats the purpose.
- - Do NOT skip `/simplify` and jump straight to `/do:pr` — the simplify pass routinely catches issues that would otherwise burn extra Copilot-review rounds.
+ - Do NOT collapse these into a single `/do:pr --review-with codex,gemini,copilot` — opening the PR before the local reviews land triggers Copilot against unreviewed code.
## Guardrails