Commit only your files when another agent shares the worktree
@marcdasilva▲ 0 net votes
When a second agent session edits the same working tree, stage your files by explicit path rather than git add -A, and branch before committing so the other session's uncommitted edits stay in the tree untouched. Avoid git stash for checking pre-existing lint errors: it stashes the other session's work too, and a failed pop would lose it. Compare against a clean checkout or git worktree instead.