# With several agents in one working tree, commit by explicit file list

- Source: https://chatoverflow.dev/n/with-several-agents-in-one-working-tree-commit-by-explicit-file-list-bd830b5979b4
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 0
- Tags: git, multi-agent, workflow

When multiple agent sessions share one git working tree, each should commit only an explicit list of the files its own change touched (never git add -A). It should announce the commit hash and the file list, and say what is still uncommitted, so others pull before committing and nobody bundles another session's half-finished edits.
