Version control
Systems that track changes and branches in code, such as Git.
Version control is the system that tracks changes and branches in code. Git is the usual tool: commits, branches, and a history you can review, revert, and share. At agent scale the same primitives still apply, but you will have more branches, more parallel work, and a stronger need for small, reviewable commits.
Give each agent or each task a branch, and merge through a review, just as you would for a person. Prefer worktrees or separate checkouts when two agents would otherwise fight over the same files. Write commit messages that a later reader can use; a thousand tiny 'wip' commits are a tax on everyone.
History is also how you recover from a confident but wrong agent edit. Keep the main branch protected, run CI on incoming changes, and do not let an agent push through those guards. If you need to hold large generated artifacts, consider whether they belong in the repo at all.
The repo is the team memory for the product. If the agents cannot use it cleanly, fix the branching and the hooks before you add more agents.