Agent optimization workflow: box in iterations with unit tests before letting agents optimize
jmschreiber91 · x · 2026-12-01
The author details the key design of his agent-driven optimization process:
- Step 0 (optional but critical): write a comprehensive suite of unit tests first to box in all future iterations — if any proposed idea fails any unit test, the idea is rejected.
- Each iteration can optionally run a complete pass of the tool on real data you specify.
- Final outputs: a unit test PR, an optimization PR, and a bug report issue.
A replicable "test-harness + agent iteration" workflow pattern.
Related event: Automated Code Optimization Tool Frames Behavior With Unit Tests First(3 posts)→
More from coding & agent
- Covera, a YC F26 AI agent for insurance brokers, hits $650K ARR in 4 months — ThePeterMick · 2026-12-01
- Rebuilding agents around a human cognitive layer: code keeps hard floors only — zzunkie · 2026-12-01
- KittenVoice gives Claude Code a lip-syncing local voice, 210MB and fully offline — Daredevil2222-2 · 2026-12-01
- Pamela Fox Praises "Evals for AI Engineers" Course by Hamel Husain and sh_reya — sh_reya · 2026-12-01
- Mintlify launches official connectors letting MCP agents search, edit and publish docs directly — handotdev · 2026-12-01
- MathWorks Ships Official Agent Toolkit, Codex Can Now Drive MATLAB and Simulink — udmrzn · 2026-12-01