We first published this guide in February 2025, when the question was how to hand our standards to an AI code generator. Coding agents now read those standards from the repository on every task, so we have rewritten it from the beginning.

Writing code is no longer the hard part

Build a microservice. Create a React component. Design an API. Each request hides decisions about architecture, security, performance and maintenance, and without a written standard each team settles them its own way. In an implementation blueprint, an organization writes those decisions down once, from how it handles errors and structures its logs to how it checks access, meets accessibility standards and releases safely.

In the first version of this guide we suggested carrying the blueprint in the prompt. Our example asked an AI assistant for a profile form and pasted in six sections of specifications. That could serve one request, as long as whoever wrote the prompt remembered every standard.

Since then, agents have taken on much of the writing. GitHub reports that more than 40% of pull requests on its platform began as an agent’s first draft in September 2026, up from 17% in March. Software has not shipped faster in proportion. In a Harvard working paper built on GitHub and Jira records from 655 firms, Fiona Chen and James Stratton studied what happened when firms added coding agents to the assistants they already used. Pull requests opened rose by 36%, while resolved issues rose by about 14%, an effect only borderline significant.

The authors trace much of the gap to code review. After agents arrived, the time from submitting code for review to its approval rose by 56%. Changes waited longer for a reviewer, spent longer in review and drew 39% more comments each. The authors read the wait as a shortage of review capacity and the extra comments as a fall in the quality of code reaching review. Bug reports did not rise, and we take that to mean reviewers caught the extra problems before release. Looking ahead, the authors project that if review productivity stays where it is while models improve, output levels off at about 58% above its level before AI, and further gains in coding only add to the backlog of unreviewed code.

Review runs on knowledge of the code. In 83% of the reviews in the Harvard data, the reviewer had already committed code or opened a pull request in that codebase, against 17% if reviews had been assigned at random. Reviewers familiar with a codebase know the standards a change should meet and the reasons for them, as well as what the code already does. The first can be written into a blueprint, and the harness can supply much of the second, so that whoever writes the code starts from the same standard and reviewers can spend their attention on what only they can judge.

The blueprint lives in the harness

A model knows programming in general. It doesn’t know your organization’s specific conventions, architectural decisions or security rules, or the reasons behind them. Coding agents now read those from the repository on every task. Claude Code, Codex, Cursor and GitHub Copilot load project instructions from AGENTS.md (an open format now stewarded by the Linux Foundation’s Agentic AI Foundation), CLAUDE.md or their own rules files. Agent Skills hold procedures that an agent loads when a task needs one, and hooks run checks at fixed points, such as after a file is edited or before a commit. Together these make up the coding harness, and the harness is where the blueprint now lives. With the method in the harness, a prompt only has to state the outcome.

Guidance on how to use AI lags behind. In Stack Overflow’s 2026 Developer Survey, only 24% of respondents said their organization publishes approved tools or an official AI policy or guidance. Practitioners are further ahead. Thoughtworks’ November 2026 Technology Radar lists harness engineering at scale among its four themes and treats the instructions, context, checks and guardrails around agents as a discipline of its own, maintained like the rest of the code. When we first published this guide, we predicted that the engineers who thrive would be the ones who can say what good code means in their own context. The harness is where they now write it down.

Short prompts for everyday work

We build our own website this way. Claude Code and Codex work from the same instructions, kept as identical CLAUDE.md and AGENTS.md files, and a check fails if the two copies drift apart. Seventeen skills cover the recurring jobs, from starting the site locally and deploying it to writing articles, posting vacancies, changing the font and reviewing a change. Every new session, whichever agent runs it, starts from the same procedures, and hooks and tests enforce many rules mechanically.

So our requests stay short, and the harness supplies the rest:

What we ask What the harness adds
“Deploy” The deploy skill checks for work that hasn’t been committed, then releases to the staging site. Production needs its own explicit request and a confirmation.
“Update this article” The update skill works on the staging site first, keeps the article’s URL and original date, and regenerates the site’s llms.txt files.
“Switch the font to Inter” The font skill fetches the files and licence, measures the new face on the site’s own copy, and updates every check and document that names the font.
An edit to a stylesheet A hook checks the file’s colours, spacing and type against the design tokens and hands a raw value back to the agent in the same step.
A commit A hook refuses it until validation passes and the message records the review and, for a change visitors will see, the pages that were tested.

The prompt changes from day to day, while the written procedure and the checks stay the same, which is where the consistency comes from. We decide the outcome and review it, and the skills, hooks and checks carry the method.

Know where a harness stops. A hook covers only the commands it recognizes and can’t prove that a review took place, and no check enforces a rule nobody wrote down. Keep a person reviewing what the hooks don’t cover, and write each new rule down before you rely on it.

A build run through agents

Cutlass Shield, the agentic tool we use to investigate and validate security findings, sits at the far end. Claude Code agents carried substantial implementation, testing and review work between the decisions of the one engineer who directed it. Our account of that build has the detail.

We split the work into bounded items called morsels. There were 154 on 30 May 2026 and 196 by 25 July, as the build exposed missing work and the scope developed. Each morsel was a Markdown file naming its requirement, the files expected to change, its dependencies, its acceptance criteria, the skills to consult, known failure cases and its review history. In effect, each was the specification for one change.

Four mechanisms did different jobs. Subagents implemented the morsels, and separate subagents reviewed each one for requirements, correctness, security, test coverage and code quality. When delegated implementation failed or fragmented, the main session finished the work and sent it to the same reviewers. Skills held the procedures, such as how to write a migration or test a component. A slash command dispatched batches of work. Hooks restored a session’s context, ran lint and other checks, and updated the records.

A reviewer could approve a change, send it back or escalate it to the engineer, and the loop was bounded at three review cycles so that an agent couldn’t keep revising a misunderstanding. Morsel files, decision records and a journal held the state, so a new session could resume where the last one stopped.

Some defects still needed a person. A console change once passed its checks and six reviewer approvals with primary button labels that were effectively invisible; the engineer directing the build caught it by looking at the running screen. A later review found a capability check that counted recalled vulnerabilities from the number that had been seeded, so it could report success without measuring anything. Its replacement records NO_MEASUREMENT when no qualifying run exists.

When the reconciliation on 25 July marked 195 of 196 morsels as done, an open escalation remained, and the integration history did not establish a successful full live run. The task count could not settle whether the product was ready. The requirements, the design, the escalations and each move to a new phase stayed with the engineer.

What goes into a blueprint

A short map, with the detail behind it

Keep the file every agent reads on every task short. The Radar lists agent instruction bloat under Caution, because models overlook rules buried in long, contradictory files. It moved progressive context disclosure, which gives the agent the essentials first and loads the rest when a task needs it, to Adopt. An ETH Zurich study, revised in September 2026, found that context files did not generally improve agents’ success, whether developers or a model wrote them, and raised inference costs by over 20%.

LayerWhat it holdsWhen the agent uses it
The map (AGENTS.md or CLAUDE.md)Commands that build and verify the code, where each convention lives, and what agents must not touchEvery task
SkillsProcedures for recurring work: a migration, a form, a release, a reviewWhen the task calls for one
Reference codeOne working, tested example of each important patternWhen building something similar
Hooks and checksLinters, type checks, tests, architecture rulesOn every change, automatically
Application knowledgeWhere behaviour lives, what depends on it, what a change could affect, read from the codeWhen a change touches existing code

Checks for whatever a machine can check

The Radar’s first advice on instruction bloat is to “convert any instructions you can into deterministic hooks or checks.” Birgitta Böckeler’s account of harness engineering calls the two halves guides and sensors. Guides, such as instruction files, skills and reference documentation, steer the agent before it acts. Sensors, such as tests, linters, type checks and AI review, check its work afterwards. Guides alone never confirm that a rule was followed, and sensors alone let the same mistake recur. As our account of building Cutlass Shield puts it, a written instruction to follow the logging convention and a check for prohibited logging calls “contribute in different ways.”

Write each check’s message for the agent, saying what to do instead, because the agent reads it and acts on it. Then test the checks themselves. Some of the hooks in that build let work continue when they couldn’t read their input, and a deterministic script repeats a faulty rule as faithfully as a correct one.

Working examples

In November 2026 Thoughtworks moved anchoring coding agents to a reference application to Trial. Its entry describes teams that keep their templates lean and structural and move the platform rules that keep changing into one up-to-date source, which agents query as they work. That way the templates don’t fall behind, a problem the entry calls “application template decay”. Keep one well-built, tested example of each important pattern and point the blueprint at it. Keep the conventions that change in one place the agent reads during the task.

A specification for each change

The blueprint applies to every change, and each change still needs its own specification. Spec-driven tools such as GitHub Spec Kit, Kiro and OpenSpec have the agent write a specification, a plan and a list of tasks for people to review before any code is written. Spec Kit creates a constitution once per project, and Kiro keeps steering files. Both are blueprints under another name. The specification is also what a reviewer checks the change against.

Knowledge of the application

A blueprint describes how to build. It can’t list everything the code already does, such as where a behaviour is implemented, which callers depend on it and what a change could break, so it points agents and reviewers to where that knowledge lives. That knowledge decides whether a change that passes its tests also fits the system, and review depends on it. In the Harvard data, after agents arrived, the time to merge rose by 70% in the third of firms with the most repositories, against 25% in the third with the fewest. The authors suggest reviewers are harder to move onto unfamiliar code in such firms.

Our engineers and agents get that knowledge from Cutlass Loom, part of our Agentic Toolkit. It indexes the structure and contents of the code, checks evidence before it states a fact, and serves what it finds to coding agents through MCP while they plan, build, test and review. Each answer cites its source and the revision it describes, and a search that finds nothing says what it covered, so nobody mistakes an incomplete search for proof that something is absent. Building Context from Code explains how it works.

Reasons as well as rules

An agent applies a rule better when it knows the reason. “Sign tokens with RS256” gets RS256. A blueprint that also explains why, so that the services verifying tokens hold only a public key and can’t mint tokens of their own, lets the agent handle a case the rule didn’t foresee. The same reasoning leads to the most important rule for verifying a token, which is to accept only the algorithm you expect.

The areas it covers

Two areas have grown since 2025. AI features now need standards of their own, and delivery has taken on supply-chain rules that the European Union has written into law.

AreaWhat the blueprint setsHow the harness enforces it
Front endState management, performance budgets, accessibility to WCAG 2.2 AA, design-system components and tokens, error boundariesToken checks on every edit, automated accessibility tests, performance budgets in CI
ServicesAPI contracts, error handling and logging, authentication and authorization, rate limits, caching, health checks, OpenTelemetry tracingContract tests, lint rules for logging, architecture tests
DataAccess patterns, transactions, query rules, migrations, backup and recovery, handling of personal dataForward-and-reverse migration checks, schema review
IntegrationsClient patterns, retries, circuit breakers, events and queuesContract tests and failure-injection tests
AI features and agentsVersioned prompts, models and tools; structured outputs; evaluations; guardrails that hold across a session; defences against prompt injection; sandboxed, least-privilege agents; cost and latency budgetsEvaluations in CI, schema validation, sandbox policies
DeliveryMinimal pinned images, non-root containers, dependency and secret scanning, actions pinned to commit SHAs, required checks, SBOMs and signed provenance, progressive delivery and rollbackBranch protection, CI gates, SBOM generation

React’s compiler now handles most memoization, so a front-end blueprint sets performance budgets and asks for a measurement before anyone optimizes by hand. In the European Union, the Cyber Resilience Act has required manufacturers to report actively exploited vulnerabilities since 11 September 2026, and will require a software bill of materials from December 2027.

Securing the harness

In Veracode’s 2026 GenAI Code Security Report, generated code passed security tests only about 56% of the time. Security requirements belong in the blueprint, and security scanners belong in the agent’s loop.

The harness is a target too, because agents trust what they read. The Cloud Security Alliance documents 1,184 malicious skills published to a public registry in 2026 and an audit that found security flaws in nearly 37% of almost 4,000 skills. It also describes a worm that planted agent configuration files in a Microsoft repository, after which GitHub disabled 73 Microsoft repositories. Its recommendations translate into blueprint rules:

  • Review instruction files, skills and agent settings as carefully as code, and scan them for hidden characters.
  • Keep an approved list of skills and MCP servers, with their versions pinned.
  • Give each agent the least privilege its task needs.
  • Keep credentials out of anything an agent can read, and pin third-party CI actions to commit SHAs.

People still need to understand the code

Review depends on engineers who understand code they didn’t write. A blueprint helps junior engineers become those reviewers, because it records the reason behind each standard, but their habits decide whether they learn. In Anthropic’s January 2026 trial, developers learning an unfamiliar library with AI scored about 17% lower on what they had learned, with no significant gain in speed, though those who used it to understand the code kept more. In a mid-2026 BairesDev survey, only 16% of senior developers said juniors fully understand the AI-generated code they submit, while 85% of juniors said AI had improved their understanding of software development.

Ask the agent why before accepting what it wrote, read the tests first, and review the change as if a colleague wrote it. Our article on vibe coding looks at what happens when engineers stop reading their own code.

Easing the review bottleneck

Reviewers repeat many of the same comments, about a raw colour where a design token belongs, a migration with no way back or a log line that leaks a field. We collect the review comments on GitHub pull requests and the discussion on Jira tickets, group them into patterns, and codify each pattern that recurs as a rule in the map, a procedure in a skill or a check. A check runs while the agent works and again before a commit, so the problem goes back to the agent before any reviewer sees it. On our own site, the stylesheet hook described earlier catches a raw colour as the agent edits.

AI review can take the next layer, as the separate reviewers did in the Cutlass Shield build. The Harvard authors find that adopting AI review tools has not removed the bottleneck. By July 2026, 79% of their firms had used AI in code review, yet AI wrote only 23% of review comments, and only 11% of pull requests drew any AI comment. Humans, they conclude, are “still heavily involved with review”.

Give reviewers the intent and the context before the diff. The specification says what the change is meant to do, and the application knowledge shows what it touches. A review skill brings the two together. It reads the change against its specification and the blueprint, runs what can be run, and tells the reviewer where to look. For a change that lets customers cancel an order before dispatch, its summary might read:

Matches the specification
- Cancellation is allowed until dispatch (two new tests).
- The refund is requested, and reserved stock is released
  (covered by the order service tests).

Matches the blueprint
- Error handling, logging and tests for both paths
  (lint and the test suite pass).

Take a look at
- Stock is released before the refund is confirmed.
- Nothing tells the customer when a refund fails.

The reviewer starts from two open questions instead of the whole diff. Each line that reports a match is still the skill’s claim, with its evidence beside it for the reviewer to spot-check. Our own review skill gives the agent that made the change the same kind of report from a fresh AI reviewer, with each finding graded must-fix, should-fix or note.

Human attention then goes where the risk is. Thoughtworks lists human-in-the-loop theater, in which a person approves changes they cannot realistically evaluate, under Caution, and advises teams to “reserve human review for changes a human can genuinely judge,” using risk-tiered human oversight. Our harness tiers its AI reviews the same way. A pointed fix to one page gets a light review, and a change to anything shared or sensitive gets the full one.

Measure review itself. Watch the time to approval, the comments per change and the shares of changes sent back and merged to see where review struggles. Thoughtworks cautions against coding throughput as a measure of productivity and recommends DORA metrics, with improvements tied directly to business outcomes.

Building a blueprint, upfront and over time

Some of a blueprint can be written on the first day. That part includes the commands that build and verify the code, the conventions already agreed, the boundaries agents must respect, a reference example of each pattern and a check for each rule you can state today. The rest is learned from the work, most of it in review.

On a seasoned codebase, many of the rules that matter most are written nowhere. The engineers who have spent years in the code carry them and apply them in review. When we bring this approach to one, we start from its history. We index the code with Cutlass Loom to see how it handles errors, logging and access today, and apply the same mining to years of its review comments. Once those rules are codified, they help someone new to the codebase, or an agent, contribute more like those engineers.

Review also finds rules that are wrong. In the Cutlass Shield build, a reviewer found that the logging redaction pattern didn’t match the formats of the keys it was supposed to remove, and the technical specification held the same pattern. The reviewer escalated it, and an accepted decision record superseded the faulty example, so the correction reached the specification that future work would consult as well as the code. Thoughtworks describes a feedback flywheel that brings the lessons of each session back into the team’s shared instructions and checks, and notes that it “needs to remove as well as add.” Remove rules that newer models follow without being told, rules that contradict each other and rules nobody can explain.

Most agent configuration is written once and left. In a 2026 study of 441 repositories, 73.8% of the files teams committed to configure their AI coding tools were never changed after their first commit. The same study found that agent-first repositories without committed configuration saw roughly twice the growth in cognitive complexity (53% against 27%) and 1.7 times the growth in static-analysis warnings. The study is observational, so other differences between the teams may explain part of the gap.

Test a first blueprint on one representative change. Run it through the whole loop, from the prompt to the release, and wherever something slipped through, fix the guide or the check that should have caught it.