Selected work

04 / Agentic AI

Agents never push: guardrails for AI coding agents

A supervised multi-agent workflow that takes a ticket to reviewed, merge-ready pull requests, with human gates at every publication.

In use, about 1 monthClaude CodeOpenAI CodexAgentsGuardrails

01The problem

Fixing a ticket across several repositories means reading code, reproducing the bug, changing multiple services and proving the fix. AI agents can speed that up, but unsupervised agents push unreviewed code. I wanted the speed without giving up review.

Flow diagram of the agent loop: ticket, lead agent, planner, human approves the plan, builders, gates, cross-vendor review, human sign-off.
Illustration, not a screenshot. Numbers and labels only, no internal systems.

02What I did

  1. Designed roles: one AI lead routes work to a planner, per-repo builders (each in an isolated git worktree), a cross-vendor reviewer (OpenAI Codex reviewing Claude's code) and a runner.
  2. Guardrails by design: agents cannot push or open pull requests. A PR opens only after an approving agent review and my sign-off.
  3. Every change runs tests, gitleaks and Trivy and writes a receipt. Loop limits escalate to a human. Fixes are deployed to a DEV tenant and proven with a ticket-named integration test.
  4. Supporting pieces: a domain knowledge base of 29 files as agent memory, 18 custom skills and a React dashboard with a live agent view and ticket state.
  5. Generalized the idea into AgentLoop, a project-agnostic version with per-project plugins and a test that forbids project-specific text in the core.

03Result

  • About 42 tickets worked over roughly 440 sessions. 13 pull requests opened by the pipeline itself, 2 merged and the rest reviewed and ready to merge.
  • Quality gates rejected 117 of 156 agent attempts, retries included, before human review.
  • A replay benchmark cut token cost by 48% (93% on the fix step), to about $1 per ticket.