Agent Engineering Playbook
Pragmatic guidance for building AI-assisted software that can survive enterprise expectations: security reviews, auditability, reliability, change control, and production operations.
Browse it with navigation and search on the agent-dx playbook site, linked from the repository README.
Overview
This is a working playbook for teams building production systems with human engineers and AI agents. It does not assume that speed alone is success: delivery, safety, operability, and maintainability are treated as first-class concerns. The material is organized into thirteen playbooks (adoption paths through agent governance), plus checklists, templates, and a machine-readable adoption model, split into a core path for any product expected to reach production quality and an enterprise path for higher customer, compliance, security, or organizational complexity.
Key features
- Thirteen playbooks: adoption paths, project setup, architecture, team roles, design principles, development workflow, testing, quality assurance, documentation, production readiness, security and governance, change management and incidents, agent governance
- Checklists for phase assessment, project start, code review, pre-production, and security review
- Fourteen templates: task, PR, ADR, README, SECURITY, threat model, runbook, service ownership, data classification, access review, exception register, compliance mapping, postmortem, AI directory
- A machine-readable adoption model (
models/adoption-model.json) for agents that need a structured version of the core/enterprise decision - Vendor-neutral: no assumed stack, cloud, proxy, framework, or AI workflow
How to use it
For a new initiative:
- Start with Adoption Paths.
- Run the Phase Assessment Checklist.
- Run the Project Start Checklist.
- Write a project charter, architecture context, and initial ADRs.
- Choose the smallest architecture and delivery model that satisfies current risk.
- Define security ownership, change controls, and incident expectations.
- Set release gates before feature work begins.
For an existing product:
- Start with Adoption Paths.
- Run the Phase Assessment Checklist.
- Run the Pre-Production Checklist.
- Run the Security Review Checklist when sensitive paths or enterprise obligations apply.
- Compare current process against Development Workflow, Quality Assurance, and Security and Governance.
- Close missing controls in testing, observability, documentation, rollout strategy, access governance, and incident readiness.
Core principles
- Start with clear outcomes, constraints, and operating assumptions.
- Prefer simple architectures until complexity is justified by scale or risk.
- Keep changes small, testable, and reversible.
- Require evidence for shipping: tests, review, observability, and rollback.
- Treat documentation, runbooks, and decision records as part of the product.
- Use AI agents as force multipliers, not as substitutes for ownership and controls.
- Make access, change approval, and incident response explicit before scale forces them.
This maps to a spec-driven / context-driven / eval-driven model: specs guide the task, context guides the decision, evals guide delivery confidence.
Documentation
- Playbooks: 00 Adoption Paths, 01 Project Setup, 02 Architecture, 03 Team Roles, 04 Design Principles, 05 Development Workflow, 06 Testing Strategy, 07 Quality Assurance, 08 Documentation, 09 Production Readiness, 10 Security and Governance, 11 Change Management and Incidents, 12 Agent Governance
- Checklists: phase-assessment, project-start, code-review, pre-production, security-review
- Templates: see the templates/ directory (task, PR, ADR, README, SECURITY, threat model, runbook, service ownership, data classification, access review, exception register, compliance mapping, postmortem, AI directory)
- Verification references: Verification handoff contract, First implementation slice
- Draft quality references: Agent-oriented design principles, Static analysis for agentic development — working hypotheses and decision criteria; existing standards and gates remain in force.
- Case studies: Event booking system
- Machine-readable model: models/adoption-model.json
- Hardening pass history: what the last major revision changed and why
- CONTRIBUTING.md, SECURITY.md
Intended audience
- Engineering leads establishing delivery standards
- Staff and senior engineers designing architecture and release controls
- Product teams working with AI agents in the development loop
- Founders and CTOs moving from prototype behavior to production discipline
- AI agents that need to adapt process rigor to project phase instead of applying every control immediately
Scope and non-goals
This package is intentionally vendor-neutral. It may mention specific tools, but it does not assume a single stack, cloud, proxy, framework, or AI workflow. It is not a certification framework, a substitute for legal, privacy, or security specialists, a substitute for formal compliance programs where they are required, or a promise that every team needs heavyweight process from day one. The goal is proportional rigor: enough control for the risk profile you actually have.
Contributing
Use CONTRIBUTING.md. Proposed changes should explain what weakness in the current guidance is being addressed, what operational or engineering problem the revision prevents, and what tradeoff the new guidance introduces.
License
MIT