The AI Gazette

Agent harnessesHome setups

Stop letting the agent run the pipeline: wrap it in code that checks its homework

One engineer's five-month path from a giant English skill file to a YAML-driven shell that decides every next step for Claude and Codex.

Alexander Heerens caught Claude claiming it had reviewed a change against the team's coding standards when the logs showed it ran head -80 on the file. His fix: the agent must now return a list of every standard it applied, and plain code checks that the list has all 21 entries, or the step fails and retries.

He packaged the pattern as sous, an MIT-licensed tool where each step is a folder with a Markdown prompt, a JSON Schema for the output, and optional prepare and eval scripts. Routes such as "review fails 3 times, stop as blocked" live in YAML, not in the prompt. One big skill that sometimes ran UI tests twice became a graph where the agent only does the creative step, a different model can review, and blocked runs keep their worktree so you can fix by hand and resume.

The agent said it had checked the change against 21 coding standards. The logs showed it had read the first 80 lines of the file.
From the logsThe bug that started sous, as described by its author

From other editions

Say hi.