Field guides
How I build, written down.
These field guides distil primary sources and patterns I apply in my own agent tooling into tables, rules of thumb and decision gates. They are maintained in the open at github.com/davidtandoh/playbooks.
- CI for agentic engineeringCoding agents iterate fast and open many small pull requests. If every tentative edit starts a hosted pipeline, continuous integration (CI) cost and queue time grow with agent retries instead of with…agentsRead the field guide
- Testing in agentic engineeringCoding agents make tests cheap to write and expensive to keep.agentsRead the field guide
- Contextual RetrievalTraditional retrieval-augmented generation (RAG) splits a document into chunks. A chunk can then say "the company" or "the previous quarter" without naming the company or period.agentsRead the field guide
- Building Reliable AgentsEverything between a demo agent and one you'd run in production: observability, token economics, reliability engineering, security, and the blind spots that bite at scale.agentsreliabilityobservabilityevalssecurityRead the field guide
- Building AI AgentsA practical, opinionated guide for going from "I want an agent" to a system that ships real output without someone shepherding every step.agentsreact-loopmulti-agentorchestrationRead the field guide
Agentic SRE
- Autonomy and approval gatesDecide how much an agent may do without a human, one action type at a time. Agents earn a higher level with evidence and lose it automatically when risk rises.agentic-sreRead the field guide
- Blast radius for agent toolsLimit the damage an agent's tools can do before the agent uses them. Put the limits in deterministic code downstream of the model, not in the prompt.agentic-sreRead the field guide
- Drift and silent quality decaySample production regularly, grade it with calibrated judges, and watch the distributions that move when inputs, models, tools, or judges change.agentic-sreRead the field guide
- Incident response for agent systemsMitigate first, keep a human as incident commander, and let agents do the searching. Separate read-only investigation from every action that changes state.agentic-sreRead the field guide
- Launch review for agentic productsReview reliability before you build and again before you launch. The review pulls the other practice pages into one sign-off.agentic-sreRead the field guide
- Observability: SLIs from tracesCompute agent service level indicators (SLIs) from OpenTelemetry (OTel) traces. Aggregate task metrics by task identity and session metrics by session identity.agentic-sreRead the field guide
- Postmortems for agent incidentsRun blameless postmortems where contributing factors include prompts, models, tools, envelopes, and approval gates. Every postmortem adds a regression eval case.agentic-sreRead the field guide
- Eval-gated releases and canariesShip prompt, model, skill, tool-schema, and harness changes as versioned releases. Gate each one on evals per slice against a known-good baseline, then canary it against live SLIs.agentic-sreRead the field guide
- SLOs and error budgets for agentsMeasure agent reliability as a profile of binary, outcome-verified indicators. Set targets per consequence tier and alert on burn rate over two windows.agentic-sreRead the field guide
Engineering standards
- Code style and static analysis: enforce the rules earlyStyle and type defects should reach the author before expensive review.engineering-standardsRead the field guide
- Data-intensive systems: choose guarantees before topologyData services fail when their parts disagree about which value is current, which write succeeded, or which records a computation included.engineering-standardsRead the field guide
- Domain-driven design: model rules, ownership, and consistencyUse domain-driven design (DDD) where changing business rules and conflicting meanings make software hard to change safely. Start with language and ownership.engineering-standardsRead the field guide
- Performance and memory: budgets before buildingWrite the resource budget before the implementation. Measure the hot path, choose data structures for the access pattern, keep memory bounded, and make the repository's gate reject regressions.engineering-standardsRead the field guide
- Secure and reliable systems: make the safe path the defaultA failed dependency and a compromised dependency can expose the same weak boundary.engineering-standardsRead the field guide
- API design: one default per question, enforced by a linterDesign HTTP APIs contract-first. Keep one default answer for each recurring design question, and let a linter and a breaking-change check enforce those answers, so that neither a reviewer nor a codin…engineering-standardsRead the field guide