Commit 53d1da9
AGENTS.md §10.5: warn against git stash in the shared working tree
git stash operates unconditionally on the entire working tree, unlike
git checkout -- <path> which can at least be scoped. Used it briefly
during my own debugging (comparing a pre/post-fix compile result) while
several batch agents had concurrent uncommitted work in flight, and a
different lib's NOTES.md write went missing afterward -- plausible but
not conclusively proven as the stash's fault, which is itself the
lesson: documented as a hard "never do this" rule rather than a
case-by-case judgment call, with git show <rev>:<path> as the safe
read-only alternative.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VyQCUoTo1Z93Py9aVFHQi11 parent 74edff7 commit 53d1da9
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2440 | 2440 | | |
2441 | 2441 | | |
2442 | 2442 | | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
2443 | 2465 | | |
2444 | 2466 | | |
2445 | 2467 | | |
| |||
0 commit comments