Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

docs: passing on the worktree is enough to merge into dev

leepokaid48d58c27d7d
diff --git a/docs/guides/clean-code.md b/docs/guides/clean-code.md
index f02faeac..a19be100 100644
--- a/docs/guides/clean-code.md
+++ b/docs/guides/clean-code.md
@@ -56,6 +56,6 @@ $after-change change="Fix desktop reconnect; walk disconnect and reconnect" base
The skill lives in `.agents/skills/after-change`, the repository skill location supported by [Codex](https://learn.chatgpt.com/docs/build-skills#where-codex-loads-local-skills). If it is missing from the current session's skill list, ask Codex to read that `SKILL.md` directly, or restart Codex to refresh discovery. This is a skill-driven workflow, not a Claude JavaScript runner or an automatic hook. Keep the two implementations aligned when changing this procedure.
-Once it's green, the change is committed, merged into `dev` and pushed. Only after that merge is pushed are the worktree's `npm run dev` (its Electron app and sandbox host) stopped and the worktree deleted (a failed merge or push keeps both): stop it, leave the worktree, then from the main checkout `git worktree remove --force <path>`, `git branch -D <branch>` and `npm run dev -- --prune` in `apps/desktop` (deletes its sandbox, Clerk test account and iPhone simulator). Nothing started from the worktree keeps running.
+Once it's green, the change is committed, merged into `dev` and pushed. Passing on the worktree is enough, even when `dev` has moved on since: bringing in newer commits needs no second validation, only its conflicts resolved and what they touched still building. Only after that merge is pushed are the worktree's `npm run dev` (its Electron app and sandbox host) stopped and the worktree deleted (a failed merge or push keeps both): stop it, leave the worktree, then from the main checkout `git worktree remove --force <path>`, `git branch -D <branch>` and `npm run dev -- --prune` in `apps/desktop` (deletes its sandbox, Clerk test account and iPhone simulator). Nothing started from the worktree keeps running.
Agents touch only the change's own hunks, never another agent's uncommitted work. Keep refactors in `refactor` commits apart from the behavior change. The final report lists the review findings (fixed, or refuted and why), each e2e check that ran or couldn't and why, what the cleanup changed, and each refactor applied or skipped with one line why. Docs- or config-only changes skip this; a tool without subagents does the stages itself.