How to read this page
Each practice has three parts: what it is, what the evidence says (with dates, because this moves monthly), and the CoE position. Vendor figures are labelled as vendor claims. Numbers in the CoE positions are practitioner design to calibrate in a pilot, not benchmarks.
1. Spec-driven development
What it is. Intent, requirements, design and a task list are written down before an agent writes code, then used to steer and check the work. Birgitta Böckeler (Thoughtworks, October 2025) separates three levels: spec-first (a spec written for the task, possibly thrown away), spec-anchored (the spec is kept and evolves with the code) and spec-as-source (people edit only the spec and code is regenerated).
Evidence. The tools she reviewed (Kiro, Spec Kit, Tessl) were spec-first in practice. Failure modes she saw: specs too long to review, heavy ceremony for small fixes (one bug fix became 4 user stories and 16 acceptance criteria), agents ignoring spec notes, and harder brownfield adoption. Thoughtworks placed spec-driven development in Assess (November 2025) and OpenSpec in Trial (Vol. 35, November 2026). No independent quantitative evaluation of any accelerator was found.
CoE position.
- Scale ceremony to change size: S (one-sentence diff) is a prompt plus a test; M is a short plan file; L (multi-file features, interfaces between teams, regulated changes, unattended agent runs, unclear brownfield behaviour) gets a full spec with design and tasks.
- Keep the durable parts spec-anchored: interfaces, acceptance criteria, non-functional constraints and decisions. Plans for one task can be thrown away.
- Do not adopt spec-as-source for production systems until there is evidence on maintainability.
- Make acceptance criteria executable. Reviewers review spec deltas and acceptance tests, not every generated Markdown file.
- Pick one accelerator per programme (selection guide) and measure it against a no-spec baseline before mandating it.
2. Context engineering and the harness
What it is. Curating the smallest set of high-signal context an agent needs: instruction files such as AGENTS.md, skills loaded on demand, hooks and linters that enforce rules, tools and MCP servers, sub-agents that search in a clean context. The whole set is the harness.
Evidence. An ICLR 2026 study ("Evaluating AGENTS.md", Gloaguen and others) found that context files do not generally raise task success and add more than 20% to inference cost, whether written by developers or generated; repository overviews did not help. OpenAI's harness team (February 2026, vendor report) keeps AGENTS.md to about 100 lines as "a map", with a checked docs folder as the system of record. Anthropic's guidance turns anything that must always happen into a hook (deterministic) rather than an instruction (advisory). A security note from the Cloud Security Alliance (August 2026) describes attacker text being written into AGENTS.md and then obeyed by a later agent run.
CoE position.
- AGENTS.md is hand-written, short (about 100 lines at the root, nested files only where conventions differ), limited to what the agent cannot infer, owned and reviewed like code. Start from the AGENTS.md template.
- "Must" rules go into hooks, linters and structural tests with messages the agent can act on; occasional knowledge goes into skills.
- Every harness change is evaluated against a golden task suite (section 3) and reverted if it does not move the results.
- Files a later agent will load as instructions (AGENTS.md, skills, steering files, settings) are protected: changed only through reviewed PRs.
- Long-running work keeps a task list, a progress file and commits so a fresh session can recover state.
Building blocks in depth: prompt assembly, hooks, tool design, agent memory.
3. Test-first and eval-driven work
What it is. Every agent task starts with a runnable definition of done (a failing test, acceptance test, script or screenshot comparison); where behaviour is probabilistic, eval suites take the place of fixed tests.
Evidence. Thoughtworks moved mutation testing to Adopt (November 2026) as "the most honest signal" when AI inflates code and test volume. Kent Beck's augmented-coding notes list agents deleting or disabling tests as a warning sign. Meta (vendor) reports engineers accepted 73% of mutation-guided LLM-generated tests. An agentic property-based testing study (NeurIPS 2025) found 56% of its bug reports valid.
CoE position.
- No agent task starts without a check it can run; the agent attaches evidence (test output, commands run) to the PR.
- Agents may add tests; deleting, skipping or weakening existing tests fails CI and needs a human. Bug fixes need a test that fails before and passes after.
- Quality gate for agent-written tests is mutation score on changed code, not line coverage. Add property-based tests where invariants matter (parsers, money, serialisation).
- A golden suite of 20 to 50 tasks from the team's own closed tickets runs on every change to the harness, model or tool configuration.
Evals for agents in production: evals guide and Evaluation engineering (BLD-204).
4. Agent-in-the-loop and risk-tiered review
What it is. An AI reviewer gives every PR a first pass in a fresh context; humans then review by risk tier.
Evidence. An industrial study (ICSE SEIP 2025) found 73.8% of AI review comments were acted on, but average PR closure time rose from 5h52m to 8h20m. GitHub's Octoverse 2026 (read through news coverage) reports more than 40% of PRs starting from an agent draft. CodeRabbit (a review-tool vendor) found about 1.7 times more issues in AI co-authored PRs. SLSA v1.2 (November 2025) Source Level 4 requires two trusted persons to agree to changes on protected branches.
CoE position. The governing AI-written code page sets the tiers. AI review finds issues; it never counts as an approver, and where SLSA Source Level 4 or a similar control applies it never counts as the second person. Review is managed as capacity: PR size caps, open-PR limits per reviewer, and agent parallelism set from reviewer hours, not the reverse.
5. Guardrails for AI-written code
What it is. Sandboxing, egress control, credential hygiene and CI gates around agents and their output.
Evidence. Veracode's Spring 2026 analysis reports security pass rates for generated code stuck around 55% for two years while syntax correctness is above 95%. A USENIX Security 2025 study found hallucinated package names in at least 5.2% of samples from commercial models and 21.7% from open-source models. Prompt injection into coding agents has produced real CVEs, including one where an agent could switch on its own auto-approve setting (CVE-2025-53773). The OpenSSF Security-Focused Guide for AI Code Assistant Instructions (August 2025) is the most useful instruction source.
CoE position. OS-level sandbox, default-deny egress with a package-registry allowlist, brokered short-lived credentials, agents unable to edit their own settings, hooks or CI, and no agent auto-run on untrusted issue or PR text. Put the OpenSSF rules in the instruction pack, and enforce the same rules with tools, because instructions are advisory. Details: governing AI-written code and the sandboxing guide.
6. Licence, IP and provenance
What it is. Making sure generated code can be owned, licensed and traced.
Evidence. The US Copyright Office (January 2025) and the Supreme Court's refusal to hear Thaler (March 2026) leave copyright tied to human authorship. Vendor output indemnities carry conditions (for GitHub Copilot, blocking suggestions that match public code). Open-source policies are in flux: Gentoo and NetBSD ban AI-generated contributions; QEMU banned them in 2025 and is considering disclosed use; the Apache Software Foundation recommends a Generated-by: trailer.
CoE position. Use enterprise tiers whose indemnity the client's counsel has read and switch on every condition it depends on. Every repository states its AI-contribution policy. Commits record the agent and model in a trailer, plus the reviewer and the spec or ticket, even where an upstream no longer asks for it. For code the client wants to own, keep the evidence of human design and review. Licence scanning, an SBOM per release and an AI bill of materials for the models, agents and MCP servers used.
7. Parallel and background agents
What it is. Engineers run several agent sessions at once, locally or in cloud sandboxes, each on a separate task and branch, often overnight.
Evidence. Thoughtworks Vol. 35 puts unattended overnight agentic builds in Trial, conditional on up-front specs, sandboxing, feedback sensors and a validation harness. Anthropic's internal study (December 2025) reports one engineer spending more than 70% of their time reviewing rather than writing.
CoE position. Parallelism is limited by review capacity and by the quality of the spec and the checks. Background runs need an L-size spec, a sandbox, a definition of done and a named reviewer before they start. A rotating "agent manager" duty in each pod dispatches work, watches queues and costs, and triages failed runs (operating model).
8. Honest measurement
Perceived speed-up is not evidence; outcomes are measured against a baseline with counter-metrics alongside. The evidence and the metric set are on measuring delivery honestly.
Sources
All opened on 30 November 2026.
- Böckeler, Understanding spec-driven development: Kiro, spec-kit and Tessl (2025-10-15) and Harness engineering (2026-02-17)
- Thoughtworks Technology Radar: spec-driven development, mutation testing, coding throughput as a measure of productivity
- Gloaguen and others, Evaluating AGENTS.md (ICLR 2026)
- OpenAI, Harness engineering (vendor, 2026-02-11)
- Anthropic, Effective context engineering for AI agents and Effective harnesses for long-running agents (vendor, 2025); Claude Code best practices
- Cloud Security Alliance, research note on coding-agent CI prompt injection (2026-08-07)
- Kent Beck, Augmented coding: beyond the vibes (2025-06-25)
- Maaz and others, Agentic property-based testing (NeurIPS 2025)
- Cihan and others, industrial study of automated code review (ICSE SEIP 2025)
- SLSA v1.2 source requirements (2025-11-24)
- Veracode, Spring 2026 GenAI code security; Spracklen and others, package hallucinations (USENIX Security 2025)
- OpenSSF, Security-focused guide for AI code assistant instructions
- US Copyright Office, Copyright and AI, Part 2; Apache Software Foundation, generative tooling guidance
Unverified
- GitHub Octoverse 2026 figures were read through news coverage, not the report.
- The Linux kernel's attribution-tag change (October 2026) and QEMU's proposal status were not confirmed from the projects' own pages.
- Indemnity conditions for vendors other than GitHub were not confirmed.
- All thresholds in the CoE positions (sizes, suite size, tiers) are practitioner design.