Topic 5 of 5 · 4 min read
Team norms for working with agents
Goal: Draft a short team agreement on agent use that covers permissions, labelling, review and accountability.
Write a one-page team agreement that says who may assign agents, what they may touch, how their work is labelled and who answers for the result. Without it, each person makes up their own rules, and the first incident is also the first time the team discusses them.
Check yourself · 1 of 3
Which statement belongs in a team agreement on agents?
Why it matters
Agents act with real permissions: they push branches, run commands and can read the repository. Teams differ on what they are comfortable with, so the question is not "is this allowed" but "have we agreed". A short written agreement also removes blame from the conversation after a mistake, because everyone knew the rule.
What the agreement covers
- Who may assign. For example: any engineer for agent-ready tickets, a lead's approval for work in shared or sensitive areas.
- What agents may touch. List the limits: no production credentials, no direct pushes to the main branch, no changes to CI, billing code or security settings without a human-written ticket. Give agents the least access that lets them do the job. Claude Code's GitHub setup, for instance, asks you to grant specific permissions to its workflow, and you should grant no more than the task needs.
- Labelling. Pull requests and commits that an agent produced say so, with the tool name and the human owner. Reviewers should know how much to trust a change.
- Review. Every agent change gets a human review before merge, by someone other than the person who assigned it when the change is sensitive.
- Accountability. The human who assigned the task and the human who approved it answer for the result. "The agent did it" is not an explanation.
- Data. What may go into prompts and issues. Customer data and secrets stay out.
- Review date. Revisit the agreement after a month. The tools change quickly.
Before and after
Before: "Use agents sensibly." Nobody knows whether it covers database migrations.
After: "Agents may not edit files under /migrations or /infra. Any agent pull request is labelled agent and names its owner. The owner and one other engineer approve before merge."
What goes wrong
- A norm nobody can check. "Be careful" cannot be followed or enforced. Write rules a person can tell were kept.
- Blaming the agent. Responsibility drifts to nobody, and the same mistake repeats.
- A rule set that never changes. Tools gain permissions and features. A stale agreement either blocks useful work or misses new risk.
Examples
A short team agreement
Agents at Northwind Logistics, v1 (review 2027-01-15)
1. Any engineer may assign an agent-ready ticket.
2. Agents never touch /migrations, /infra or CI files.
3. Agent PRs carry the label agent and name the owner.
4. Two approvals for any agent change to shared code.
5. No customer data or secrets in prompts or issues.
6. The owner answers for the change, including after merge.
An incident under a clear rule
An agent edited a CI file and a deploy step was skipped for a day. Under the agreement the rule was already clear, so the discussion was about why the pull request was approved, not about whether agents may touch CI. The team added a path-based check that blocks agent changes to that folder.
Key points
- A team agreement on agents should cover who assigns, what agents may touch, labelling, review, accountability and data.
- Give agents the least access that lets them finish the task, and keep production credentials and the main branch out of reach.
- Label agent-made pull requests with the tool and its human owner so reviewers know what they are reading.
- The people who assigned and approved the work answer for the result; the agent is never the accountable party.
- Write rules that a person can check, and revisit them on a set date because tools change.
Common mistakes
- Writing vague norms such as "use agents responsibly" that cannot be checked.
- Giving agents broad repository or credential access because it is easier to set up.
- Leaving agent-made changes unlabelled, so reviewers cannot tell what they are reading.
- Treating the agreement as finished and never reviewing it.
Check yourself · 2 of 3
A pull request written by an agent turns out to contain a bug. Who answers for it under a sound team agreement?
Check yourself · 3 of 3
Why should agent-made pull requests be labelled?
Practice items, not counted towards your mastery.
Start here
- About GitHub Copilot cloud agent (opens in a new tab)DocsFree
How an agent is assigned an issue, works in its own branch and opens a pull request for human review.
- Agent platform (Linear Docs) (opens in a new tab)DocsFree
How agents appear in a tracker as assignable users with their own status, next to a human owner.
- Claude Code GitHub Actions (opens in a new tab)DocsFree
How an agent is triggered from issues and pull requests and what permissions its workflow needs.