Layers
Context Management
Context Maps: Lightweight repository maps (such as an AGENTS file) that teach the agent how code is structured and where to look next without loading outdated, verbose documentation.
Persistent Memory: Disk-based markdown plans and task lists that record progress, failures, and next steps across loop iterations so the agent retains state across runs.
Modular Skills: Specialized workflows and scripts stored on disk (SKILL.md files) that load via progressive disclosure (discovery -> activation -> execution) only when requested, preventing context window.
Deterministic Guardrails
Hard Gates: Compilers, type checkers, fixed unit test suites, linters, static analysis tools (SAST), dependency scanners, and secret scanners
Enforcement & Safety Nets: Using Git hooks to prevent the agent from modifying test suites or config files, requiring new tests to fail before implementation code is written, pinning lockfiles to stop malicious package squatting, and setting strict retry limits before escalating to human engineers
Semantic and Multimodal Review
Decoupled Critic Agents: An independent reviewer agent (e.g., Gemini) evaluates code diffs against team standards in a fresh, unbiased context window rather than letting the coding agent grade its own output
Automated Visual & Multimodal QA: Spinning up app instances in headless browsers to capture screenshots or screen recordings, using multimodal models to spot layout overlapping or visual bugs automatically
Interactive Code Review Formats: Converting pull requests into visual architecture graphs, walkthrough videos, or audio briefs for human reviewers
Agent System Evaluation
Pattern 1: Tool Use Evaluation: Measures whether the agent selects the correct tool, passes valid parameters, and calls tools in the proper sequence using mock interfaces
Pattern 2: Outcome & Trajectory Evaluation: Handles non-determinism by evaluating semantic similarity of final responses and using step-by-step trace evaluation (or LLM-as-a-judge)
Pattern 3: Multi-Turn Conversation Evaluation: Tests state preservation, context tracking, and memory retention across back-and-forth interactions
Pattern 4: Workflow & Multi-Agent Evaluation: Verifies data passing between function/agent nodes and validates delegation between specialist agents in end-to-end system flows
Agent Types
- Specifier: Turns a document into gherkin acceptance criteria and QA procedure
- Coder: Implementation and unit tests
- Cleaner: Runs CRAP analysis and tidies the mess
- Hardener: Runs mutation testing
- QA: Turns QA document into an executable script
References
https://www.youtube.com/watch?v=BKVDdL1InsA&pp=ygUQZ29vZ2xlIGFpIGNvZGluZw%3D%3D