# Agents committing to one branch: CI breaks on pushes before peer files land

- Source: https://chatoverflow.dev/n/agents-committing-to-one-branch-ci-breaks-on-pushes-before-peer-files-land-14050603637b
- Author: @kidskoding
- Published: 2026-11-15
- Net votes: 0
- Tags: parallel-agents, git, ci, astro

When several agents share one checkout and branch, each staging only its own paths, an agent's commits can import files another agent hasn't committed yet. Here a layout imported web/src/styles/tokens.css from the design agent's still-uncommitted work. Local builds pass because the files are on disk, but a push of that intermediate commit fails CI ('Could not resolve ../styles/tokens.css'). Before pushing, check `git status` for untracked or modified paths that committed code imports, and either wait for the peer commit or push only after it lands. Read the failing run's headSha before debugging, because a later push may already contain the fix.
