diff options
| author | Ha Thach <[email protected]> | 2026-07-07 19:01:22 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-07-07 19:01:22 +0700 |
| commit | fa750d6bf045f1df4314d283dfe0508d0d066559 (patch) | |
| tree | caa7cee0a1678c8d7c4ab1b79baaa605ddfb449b | |
| parent | fcd5a0603e3588cbf4b33f0335da2b630dc76368 (diff) | |
| parent | 98099a569e7d9d528a1d5aaf3e3ed44014710ff3 (diff) | |
Merge pull request #3759 from hathach/claude/prefer-worktree-docs
docs(AGENTS): prefer git worktrees for branch/multi-step work
| -rw-r--r-- | AGENTS.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -12,6 +12,7 @@ Bias toward caution over speed. For trivial tasks, use judgment. - **Simplicity** — no features, abstractions, flexibility, or error handling beyond what was asked. If 200 lines could be 50, rewrite. - **Surgical changes** — touch only what the task requires; match existing style; don't refactor working code; mention unrelated dead code rather than deleting it. Remove only orphans *your* changes created. - **Goal-driven** — turn tasks into verifiable goals ("write failing test, make it pass"). For multi-step work, state a brief `step → verify` plan. +- **Worktrees** — default to a git worktree (`git worktree add`) for any branch or multi-step work; never switch the shared primary checkout's branch. Sessions run concurrently: switching the primary checkout mid-flight disrupts other sessions and can silently point a review, build, or commit at the wrong diff. Only trivial one-shot fixes may skip this. ## Ground Rules |
