Skip to content

Blog

Your agents write code faster than your pipeline can check it

Small agent tasks send every change through the same checks again. Verification keeps pace when each check runs at the level where it is cheap and no level repeats an earlier one.

Written by

Coding agent setup

Published: 22 November 2026 7 min read

Small tasks multiply the checks

Cut the work into small tasks and a coding agent finishes each one quickly. Then every task waits for the same checks a large change would get. Ten small changes pay ten times for the build, the browser tests and the pipeline. Verification becomes the slow part, and the team begins to doubt the small tasks.

The small tasks are fine. The time goes into running every check at every step. Verification keeps pace with the coding under two rules. Each check runs at the earliest level where it is cheap enough to run every time. And a later level does not run an expensive check again once an earlier one has established its result.

Verification in a Software Factory explains what a gate can prove and where human review belongs. This article is the practical side: six levels, the checks at each one, and what the setup asks of an organization. Level 1 is my own practice, set up per project. Levels 2 to 6 are the shared setup of our repositories, with the open-source tools named so you can copy it.

Level 1: inside the agent’s loop

A developer hears a voice in their head while typing: this is not accessible, this will be slow. An agent needs that feedback from outside, while it still works on the change. Coding agents have hooks for this. They work like a Git hook, bound to the agent’s own events, such as an edited file or a finished implementation.

I described my use of them in Richard Seidl’s podcast, in the German episode Wie man Regeln und Skills baut, damit Agenten sich erinnern (opens in a new tab). When the agent changes a frontend component, a hook runs the accessibility test, and the agent reads the result before it moves on.

Soft checks sit beside the hooks: a skill that asks whether a change follows the architecture rules, or a second model that reviews the first one’s code. A hook fires on every such event, while a skill leaves the judgment to a model. Each has a weakness: an architecture test misses whatever lies outside its scenario, and a model can judge wrongly. A deterministic check also cannot read its own result. A red test stays red, and only a model can ask whether the code is wrong or the test is flaky. So I use both.

The less a person supervises the agent, the more of this feedback has to be deterministic.

Level 2: the commit checks only the staged files

The pre-commit hook reads the files in the commit and no others. It runs a secret scan (gitleaks), the formatter (Prettier), the syntax rules of two linters (ESLint and Oxlint), stylelint for the styles, and a licence check when the lockfile changed. Oxlint checks JavaScript and TypeScript, ESLint the templates and the rules Oxlint cannot run. The gate fails when both enforce the same rule on the same code.

These checks need no type information and no build. An agent commits often, so this level has to cost almost no time per commit.

Level 3: the push runs what the changed paths call for

The pre-push hook hands the pushed commits to the gate, and the gate picks its steps from the paths that changed. A code change selects the typecheck, the type-aware lint rules, a check for import cycles (dependency-cruiser) and the unit tests (Vitest). Property-based tests (fast-check) run in the same suite with a fixed seed, so the same push gets the same verdict.

A change that touches only documentation selects none of these. It gets the short steps every push gets, formatting among them. Those few run a second time because they cost little and the commit saw only its staged files. Where the gate cannot tell what a path affects, as with a configuration file or a new branch, it runs every fast step. An unclear case costs time and lets no check drop out.

Level 4: the full gate runs once per batch

Some checks need the built product: the build itself, link and crawl checks over the output, and every check that opens a browser on the rendered interface (Playwright). Each of them is marked in the repository’s configuration as belonging to the full gate only, with the reason written beside it.

They stay out of commit and push. The full gate runs them once per batch, a coherent unit of work that is committed and pushed together. No hook starts it. The rules of the repository tell the agent to chain the commit behind the gate, so a red gate ends the command before the commit.

Level 5: mutation testing and exploration run on demand

Mutation testing (Stryker) changes the code and runs the tests against each change, to see whether a test notices. It judges the tests themselves, and it is the most expensive check we have. So it runs on demand, outside the gate, the hooks and the pipeline, under a fixed time limit that stops the run. It goes through the fast unit tests, over the modules the repository lists for it.

The second run on demand explores the property-based tests further: many more generated cases than the regular suite, with a fresh seed. A failure prints the seed, and the same command replays the run with it. The library shrinks the failing input, and that input then joins the regular suite as a fixed example. The command refuses to start inside a hook, the gate or the pipeline.

Level 6: the pipeline builds and deploys

The pipeline runs none of the checks from levels 2 to 5 again. It builds once more, because it has to produce the artifact that ships, and deploys it. It adds one test that has no earlier place: a smoke test in a browser against that artifact.

A local hook is an agreement and enforces nothing on the server. Git lets anyone skip it with --no-verify, and an edit in the web interface or a merge on the server never meets it. Our setup fits a small team: every change is pushed from a checkout where installing the dependencies has switched the hooks on, and the rules of each repository forbid skipping them.

A team with pull requests, required status checks or outside contributors should keep the push-level steps and the full gate in the pipeline. The earlier levels still pay off there, because the pipeline then confirms a result and rarely finds a new one.

What this asks of the organization

Levels drift apart when every repository builds its own. Ours share one gate: a package that each repository installs at a pinned version, with the hooks, the linter configuration and the step selection inside. A fix to a check reaches every repository with the next version.

Exceptions exist, and each one is written into the repository’s configuration with its reason. An exception without a reason fails the gate, and so does one that no longer matches anything. One of our repositories leaves the gate out of its push hook. Several agents work in the same working tree there, the gate reads that tree, and one agent’s unfinished file would turn another agent’s push red. Each agent starts the gate itself before a code commit and reads a red result to see whose file caused it.

The gate also needs an owner. Someone has to see when the same kind of bug slips through several times, and then add the missing check or move an existing one to an earlier level. Agents produce changes quickly, so a missing check shows quickly as well.

Where to start

List every check your team runs today. Beside each one, write the earliest level at which it could run and every level at which it runs now. A check that appears at two levels is time you can take back. A check that runs only in the pipeline and needs no build belongs at the commit or the push.

The agent then learns of a formatting error at the commit and of a broken type at the push, while it still has the change in front of it. Your reviewers get a batch only after it has passed everything a machine can check.

Sources and limits

  • Practitioner account richard-seidl.com

    Richard Seidl, Software Testing podcast: Wie man Regeln und Skills baut, damit Agenten sich erinnern (opens in a new tab)

    Method and limits
    Method
    Podcast conversation in German between Richard Seidl and Benedikt Stemmildt about Git hooks, agent hooks, the test pyramid and deterministic and non-deterministic feedback.
    Limits
    The author of this article describing his own practice in conversation. No measurement and no comparison with other setups.

    2026-09-22 | Verified: 2026-11-22

  • Industry report git-scm.com

    Git: githooks (opens in a new tab)

    Method and limits
    Method
    The Git project's reference manual for hooks, here for pre-commit, pre-push, core.hooksPath and the --no-verify option.
    Limits
    Reference documentation. It describes what a hook can do and says nothing about which checks belong in one.

    2026-04-20 | Verified: 2026-11-22

  • Industry report stryker-mutator.io

    Stryker Mutator: Introduction (opens in a new tab)

    Method and limits
    Method
    The open-source project's own description of mutation testing: it changes the code, runs the unit tests against each change and reports which changes the tests caught.
    Limits
    Project documentation without a publication date on the page. It explains the technique and measures no effect on delivery.

    2026 | Verified: 2026-11-22

  • Industry report fast-check.dev

    fast-check: Why property-based testing? (opens in a new tab)

    Method and limits
    Method
    The open-source project's own description of property-based testing: generated inputs, a seed that reproduces a failed run, and shrinking of the failing input.
    Limits
    Project documentation that argues for its own technique. No independent comparison with example-based tests.

    2026-02-07 | Verified: 2026-11-22

  1. Verification in a Software Factory When generating code gets cheap, a Factory's throughput depends on how well the system can establish that a change is acceptable, safe, and worth shipping. 3 min read
  2. Why faster coding does not guarantee faster delivery Productivity research measures task time, perceived savings, pull requests, and production flow, each in its own way. Read side by side, the measures show where the constraint moves. 5 min read
  3. Generic coding agents hit a limit, custom agents go past it Claude Code, Cursor and Gemini CLI are built for the average codebase. Teams that scale with agents move from better agents to more agents to custom agents built for their own domain. 3 min readShort post

All 15 posts on Coding agent setup

ClientsClient work

Test the constraint in your system

The Factory Readiness Assessment connects this research to your value stream, your data, and the next decision.

Training on this topic: Agentic Engineering for Developers and QA
See the assessment

Want to check one team first? The self-check: twelve yes or no questions, three minutes, instant result, no account. Take the self-check