InsightsAgentic coding

Agentic coding in teams: speed needs guardrails.

Coding agents read the repository, change files, run commands and open pull requests. According to DORA, the greatest returns come not from the tool but from the system around it. For coding agents that means: what the agent is told, what it has to check and what it must not do. The setup in one picture, checked against the documentation of Anthropic and GitHub and against DORA, METR and OWASP.

30 minutes · remote · Ludwig Oswald, Munich

For
CTOs, engineering leads, platform and development teams
As of
16 Nov 2026
Sources
Anthropic, GitHub, AGENTS.md, Agent Skills, DORA, METR, OWASP
By
Ludwig Oswald, Cloud & Solution Architect
01 In short

The answer in three points.

  1. A coding agent does not just suggest, it acts. What it cannot work out from the code sits in an instruction file and in skills. That is guidance the model decides on, not enforcement.
  2. Reliability comes from two gates and the checks between them: before building the definition of ready, afterwards the definition of done, in between tests, types, linters, security scans, your own rules as checks and a review loop. The same checks run again in the pipeline, outside the agent session, and a human decides.
  3. More speed is not guaranteed. The DevOps Research and Assessment programme (DORA) sees more instability alongside more AI use, and METR cannot reliably put a number on the gain for 2026. Measure before and after.
02 Diagram

What the agent is told, what it checks, what it must not do.

On the left what the agent is given. In the middle its loop: ready check and plan, change code, verify with a review loop. On the right the way into the main branch with the definition of done. Dashed boxes are guidance the model decides on; boxes with an orange border are enforced on every run.

Agentic coding in a team
Agentic coding in a teamThree columns. On the left, dashed, what the agent is told: the ticket with testable acceptance criteria that starts the run; the instruction file, for example AGENTS.md or CLAUDE.md, with build, tests, conventions and when to stop and ask, read on every run; skills with team procedures, such as a release, loaded on demand; team rules from architecture decisions, checked where possible. In the middle the agent loop in a sandbox: 1. Plan and ready check: the ticket is checked against the definition of ready; if an item fails, nothing is built; specialist roles join only if the story touches their area. 2. Change code, that is edit files and run commands. 3. Verify with tests, types, linter and rule checks plus a review loop of code, security and QA review; a stop hook sends the agent back while a check fails, up to a configurable limit. If a check fails, the errors go back to step 2. Below, a pointer to the roles as subagents in the second diagram. On the right the team gate in the pipeline: 4. Pull request, the agent pushes to a single work branch and gives evidence for each acceptance criterion. 5. Required checks in CI, the same checks again outside the agent session. 6. Definition of done: QA, security, architecture, DevOps and documentation check; acceptance criteria are ticked only with evidence. 7. Human decision: review and merge into the protected main branch, not by the requester, plus infrastructure apply and the status Done. At the bottom the limits for every run: least privilege, writes only in the workspace, allowed domains only, no secrets in the context, ask before commands that cannot be undone, such as an infrastructure apply, log every tool call. Enforced by command hooks, deny and ask rules, managed settings, sandbox, branch protection and required checks. Measure before and after: throughput and instability following DORA.WHAT THE AGENT IS TOLDAGENT LOOP · SANDBOXTEAM GATE · PIPELINETickettestable acceptance criteriaInstruction fileAGENTS.md · CLAUDE.mdbuild, test, conventionswhen to stop and askSkillsteam procedures, e.g. a releaseTeam rules (ADRs)decisions written down,checked where possible1Plan and ready checkDefinition of Ready: fail = stopspecialists only if in scope2Change codeedit files, run commands3Verify and review looptests · types · lint · rule checkscode, security and QA reviewstop hook: back to work while checks failstartevery runon demandas checksfailroles as subagents, see the second diagram:requirements, QA, architecture, security, …4Pull requestagent pushes to a single work branchwith evidence per acceptance criterion5Required checks in CIsame checks again, outside the agent session6Definition of DoneQA, security, architecture, DevOps, docsACs ticked only with evidence7Human decisionreview and merge to protected mainnot the requester · infra apply · DonepassLIMITS FOR EVERY RUNleast privilege · writes only in the workspace · allowed domains only · no secrets in the contextask before commands that cannot be undone, such as an infrastructure apply · log every tool callENFORCED BYcommand hooks · deny and ask rules · managed settings · sandbox · branch protection · required checksguidance: the model decidesenforced on every runfeedback to the agentmeasure before and after: throughput and instability (DORA)
Schematic. If a check in the pipeline fails or the review asks for changes, the pull request goes back to the agent. GitHub Copilot enforces the single work branch by default; elsewhere git permissions and branch protection do. Branch protection applies to admins only with the option “Do not allow bypassing the above settings”. In Claude Code the sandbox is off by default and covers shell commands only. The examples come from Claude Code and GitHub Copilot; many other tools offer similar features.

Roles along a story.

Rows are roles, columns are the phases of a story, from the definition of ready to the human decision. A filled dot means an agent drafts or checks. An empty one means a human decides.

Roles along a story
Roles along a storyA table with six phases: 1. Ready, check against the definition of ready; if an item fails, nothing is built. 2. Specialists, only if the story touches their area. 3. Build, tests before code. 4. Review loop, findings of medium severity or higher go back to build. 5. Done, check against the definition of done with evidence. 6. Human, decides. Roles and their tasks: Requirements checks story, links and acceptance criteria in phase 1. QA checks in phase 1 that the acceptance criteria are testable, in phase 4 the tests against the criteria and in phase 5 the criteria with evidence. Architecture checks modules and architecture decisions in phase 1, sketches the design in phase 2 and checks in phase 5 if the design changed. Security checks data and authorisation in phase 1, new APIs and personal data in phase 2, runs a security review in phase 4 and checks in phase 5 that the risks are closed. Legal checks data protection and consent in phase 1. UI/UX checks in phase 1 that the screen exists and delivers design and showcase in phase 2. Planning sets sequence and plan in phase 1. Coding builds app, API and data in phase 3 and fixes findings in phase 4. DevOps checks infrastructure in phase 2, builds CI, infrastructure as code and the plan in phase 3, fixes findings in phase 4 and checks the infrastructure in phase 5. Code review checks the diff in phases 4 and 5. Documentation updates docs and links in phase 5. The product owner approves the story in phase 1 and decides on merge, apply and Done in phase 6. Agents draft or check, a human decides. A human gives the legal sign-off before launch.1ReadyDoR · fail = stop2Specialistsonly if in scope3Buildtests before code4Review loopfixes ≥ medium5DoneDoD check · evidence6HumandecidesROLEphase of a storyRequirementsstory, links, ACsQAtestable ACstests vs ACsACs with evidenceArchitecturemodules, ADRsdesign sketchif design changedSecuritydata, authznew API, PIIsecurity reviewrisks closedLegalGDPR, consentUI/UXscreen existsdesign, showcasePlanningsequence, planCodingapp, API, datafixesDevOpsinfra in scopeCI, IaC, planfixesinfra checksCode reviewdiff reviewdiff reviewDocumentationdocs, linksProduct ownerapproves storymerge, apply, Donefindings back to buildagent drafts or checkshuman decideslegal sign-off before launch
Schematic. Specialist roles such as legal, UI/UX or DevOps run only if the story touches their area. Each role is an agent of its own with its own context and the tools of its task.
03 Building blocks

Seven building blocks, and what they are for.

Definition of ready and plan

Before anything is built, roles for requirements, quality and architecture check the ticket against the definition of ready: goal, linked requirements, testable acceptance criteria, place in the architecture, data protection, screen reference, dependencies and test scope. If an item fails, nothing is built. A human approves the story, and for larger changes the plan too; in Claude Code’s plan mode the agent changes nothing until then.

  • Definition of ready
  • Acceptance criteria
  • Plan mode

Anthropic, Claude Code best practices, read 16 Nov 2026 · Anthropic, Claude Code permission modes, read 16 Nov 2026

Instruction file

A short file in the repository tells the agent how the project is built, tested and checked, and where the code is misleading. AGENTS.md is an open format for this that many agents read, GitHub Copilot among them. Claude Code reads CLAUDE.md and can use AGENTS.md. Anthropic recommends fewer than 200 lines and only what the agent cannot work out from the code. That includes when it stops and asks instead of guessing.

  • AGENTS.md
  • CLAUDE.md

AGENTS.md, read 16 Nov 2026 · Anthropic, Claude Code memory, read 16 Nov 2026 · Anthropic, Claude Code best practices, read 16 Nov 2026

Skills for team procedures

How your team cuts a release or creates a migration sits ready as a skill: a folder with a SKILL.md file, with scripts and templates if needed. The agent first sees only name and description and loads the rest when the task calls for it. Agent Skills are an open standard that Claude Code and GitHub Copilot support. In Claude Code you can set a skill with side effects, such as a release, to start only on command.

  • SKILL.md
  • Agent Skills

Agent Skills, read 16 Nov 2026 · Anthropic, Claude Code skills, read 16 Nov 2026 · GitHub, Agent skills, read 16 Nov 2026

Roles along the story

Each role is an agent of its own with its own context, its own instructions and, if configured, only the tools of its task: requirements, quality, architecture, security, legal, UI/UX, planning, coding, DevOps, code review and documentation. Specialist roles join only if the story touches their area, for example legal for personal data or DevOps for infrastructure. Agents draft and check, the product owner decides.

  • Subagents
  • Specialist roles
  • Product owner

Anthropic, Claude Code subagents, read 16 Nov 2026 · Anthropic, Claude Code best practices, read 16 Nov 2026

Build, verify, review loop

Tests come before the code, derived from the risks of the case; the acceptance criteria are an input, not the limit. Anthropic recommends giving the agent something that comes back pass or fail: tests, type checks, linters, security scans and your rules as checks, for example “every table has access control”. After each change, code review, security review and QA check; findings of medium severity or higher go back to coding. A hook on finishing sends the agent back to work until everything passes or a configurable limit is reached.

  • Tests first
  • Review loop
  • Stop hook

Anthropic, Claude Code best practices, read 16 Nov 2026 · Anthropic, Claude Code hooks, read 16 Nov 2026

Definition of done and approval

What “done” means is set by the definition of done: acceptance criteria met with evidence, tests and coverage green, linters and types clean, API contracts current, no new severe findings from the scans, logs on new paths, no open review findings, docs and tickets updated. Only what has evidence is ticked. The same checks run as required status checks in the pipeline; changes to tests, pipeline and instruction files need approval from a fixed team via code owners. A human decides on merge, infrastructure apply and the status Done.

  • Definition of done
  • Branch protection
  • Code owners

Scrum Guide 2020, Definition of Done, read 16 Nov 2026 · GitHub, Protected branches, read 16 Nov 2026 · GitHub, Code owners, read 16 Nov 2026 · GitHub, Review Copilot output, read 16 Nov 2026 · GitHub, Build guardrails for cloud agent, read 16 Nov 2026

Limits for every run

Least privilege, writes only in the workspace, network only to allowed domains, no secrets in the context, a confirmation before commands that cannot be undone, such as an infrastructure apply, and a log of every tool call. This is enforced through permission rules that deny or ask, hooks, the sandbox and centrally managed settings, not through the instruction file.

  • Least privilege
  • Sandbox
  • Log

Anthropic, Claude Code security, read 16 Nov 2026 · OWASP, LLM06 Excessive Agency, read 16 Nov 2026

04 Frameworks

Tools, formats and evidence.

What the setup rests on, as of 16 Nov 2026.

01

Anthropic, Claude Code

The documentation separates two kinds of rules: instructions in CLAUDE.md, a prompt or a skill, which the model decides on, and command hooks, deny rules and managed settings, which Claude Code enforces on every run. According to Anthropic, whatever must hold without exception belongs in the second group.

Anthropic, Claude Code best practices, read 16 Nov 2026

02

GitHub Copilot

The cloud agent pushes to a single branch only, is subject to branch protection and required checks, and can neither approve nor merge its pull requests; whoever requested the work cannot approve it. By default, workflows on its changes run only after a human with write access has reviewed the code and approved them. It reads instructions from AGENTS.md among others, and it supports skills and hooks.

GitHub, Copilot risks and mitigations, read 16 Nov 2026 · GitHub, Hooks, read 16 Nov 2026 · GitHub, Repository instructions, read 16 Nov 2026

03

Open formats

According to its project page, AGENTS.md is used by over 60,000 open-source projects and read by many agents. Agent Skills describe capabilities as a folder with SKILL.md and, if needed, scripts and templates. Both make instructions and procedures portable between tools.

AGENTS.md, read 16 Nov 2026 · Agent Skills, read 16 Nov 2026

04

DORA 2025

Survey with 4,867 respondents: 90% use AI at work. Higher AI use goes along with higher throughput and higher instability. DORA reads AI as an amplifier that magnifies an organisation’s existing strengths and weaknesses. These are self-reports and comparisons between people, not measured effects.

DORA, State of AI-assisted Software Development 2025, read 16 Nov 2026 · DORA, report 2025 (PDF), read 16 Nov 2026

05

METR

In a randomised study in early 2025, 16 experienced open-source developers took 19% longer with AI tools but believed they had been 20% faster. In February 2026 METR writes that AI likely speeds developers up more in early 2026 than in early 2025; because of selection effects, however, the new data are only very weak evidence of the size of this increase.

METR, study July 2025, read 16 Nov 2026 · METR, update February 2026, read 16 Nov 2026

06

OWASP

For LLM applications OWASP names prompt injection (LLM01) and excessive agency (LLM06), for agentic applications tool misuse and exploitation (ASI02) and unexpected code execution (ASI05). Counter-measures include least privilege, sandboxes with network allowlists and human approvals; logs limit the damage.

OWASP, LLM01 Prompt Injection, read 16 Nov 2026 · OWASP, LLM06 Excessive Agency, read 16 Nov 2026 · OWASP, Top 10 for Agentic Applications 2026, read 16 Nov 2026

As of 16 Nov 2026. Tool features and defaults change often; the documentation of your version is what counts.

05 What we do not claim

Four common assumptions, checked.

01

“The agent follows what is in the instruction file.”

According to Anthropic, the model usually follows such instructions, but without a guarantee. Whatever must always hold belongs in a hook, a deny rule, a managed setting or the pipeline.

Anthropic, Claude Code best practices, read 16 Nov 2026

02

“Green tests mean done.”

In METR tasks, the newest models of 2025, such as o3, tried, often successfully, to get better scores by changing tests or scoring code instead of solving the task. That is why a human looks at changes to tests.

METR, reward hacking, June 2025, read 16 Nov 2026

03

“Agents make every team faster.”

Besides more throughput, DORA finds more instability, and the developers in the METR study clearly overestimated their speed.

DORA, report 2025, read 16 Nov 2026 · METR, study July 2025, read 16 Nov 2026

04

“A second agent as reviewer is enough.”

A fresh reviewing agent helps because it does not know the reasoning of the first. GitHub writes, however, that Copilot code review may not identify all problems either, and calls it a supplement to human review, not a replacement.

Anthropic, Claude Code best practices, read 16 Nov 2026 · GitHub, Copilot application card, read 16 Nov 2026

06 Questions

Questions about agentic coding in teams.

Which tool should we choose?

Your environment decides: where the code lives, which contracts and data rules apply, what the team already uses. The principle is the same; the mechanisms differ. With AGENTS.md and skills, instructions and procedures stay portable between tools.

AGENTS.md, read 16 Nov 2026 · Agent Skills, read 16 Nov 2026

Where do we start?

With one team and one codebase. First a baseline for throughput and instability, for example with the DORA Quick Check. Then the definition of ready and the definition of done, the instruction file, checks inside the agent loop and required checks before merge. After a few weeks, measure again and decide what stays.

DORA, metrics guide, read 16 Nov 2026

Does every team need all roles?

No. Requirements, quality, coding and review run on every story; specialist roles such as legal, UI/UX or DevOps only if the story touches their area. More important than the number of roles are the two gates: nothing is built without the definition of ready, nothing is closed without the definition of done.

Scrum Guide 2020, Definition of Done, read 16 Nov 2026

What happens when something breaks in production?

Then a separate flow applies. First, agents check read-only what is affected, with the matching specialist roles such as architecture and security. Then a human decides: fix it now, plan it as a bug with its own definition of ready, or cut it as a new story. The root cause gets fixed, not just the trigger.

May the agent deploy on its own?

Better not directly. The way into production runs through the pipeline with its checks and approvals, and the agent gets no credentials for production. This follows the OWASP advice on least privilege.

OWASP, LLM06 Excessive Agency, read 16 Nov 2026

Read on: Agentic engineering for teams · SSDLC and security gates · IAM and AI agents

Terms in this article 15
Agent skill
A folder with a SKILL.md file and, if needed, scripts and templates that teaches an agent a procedure. The agent sees name and description right away and loads the rest when the task calls for it.
Agentic coding
Development with AI agents that work through a goal in several steps on their own: read code, plan, change files, run commands, hand in the result for review. Completion and chat only suggest.
AGENTS.mdInstruction file
An open format for a file in the repository that tells coding agents how the project is built, tested and checked. Many agents read it; Claude Code reads CLAUDE.md for this and can use AGENTS.md.
Branch protection
Rules for a branch such as the main branch. They can require pull requests with approving reviews and passed required status checks; by default they block force pushes and deletion.
Code owners
Named people or teams who are automatically requested for review when their files change. Branch protection can make their approval mandatory.
Definition of done
A formal description of when work meets the quality measures required for the product. Work that does not meet it is not done and is not released.
Definition of ready
A list a ticket has to meet before implementation starts, such as testable acceptance criteria, resolved dependencies and a defined test scope. Unlike the definition of done it is not part of the Scrum Guide; teams set it themselves.
DORA metricsDevOps Research and Assessment
Five metrics of Google Cloud’s DORA research programme for software delivery: three for throughput, two for instability. Not to be confused with the EU regulation DORA.
Hook
A command the tool runs at fixed points in the agent loop, for example before or after a tool call or when the agent wants to stop. A command hook, unlike an instruction, applies on every run.
LLMLarge Language Model
A model trained on large amounts of text that understands and generates text, for example Claude, GPT or Gemini.
Plan mode
A mode in Claude Code in which the agent reads and proposes a plan but changes nothing until a human approves the plan.
Prompt injection
A vulnerability in which inputs, direct or hidden in content such as an issue, a web page or a README, change the model’s behaviour or output in unintended ways. With agents this can lead to unintended actions.
Required status check
A check in the pipeline whose result must be successful, skipped or neutral before a pull request can be merged into a protected branch.
Reward hacking
A model reaches the measured score without solving the actual task, for example by changing tests or scoring code.
Subagent
An agent to which the main agent hands a subtask. In Claude Code it works in its own context (except as a fork), with its own instructions, its own permissions and, if configured, restricted tools.

All terms in the glossary →

07 Contact

Want your team to get faster with agents without losing quality?

In a first call we look at how your team works today and which guardrails are missing first.

I use your details only to answer your enquiry. More in the privacy policy.