Harness engineering is the most f*cking DANGEROUS thing to understand and nobody is learning it like this
researchers broke down Claude Code, Codex, and 9 more AI agents to reveal how coding agents are actually built
the paper maps the systems into 7 parts - and includes a 90-line starter harness you can study and adapt.
here's the blueprint ↓
step 1 → build the agent loop. send the task to the model, execute its actions, return the results, and repeat until it finishes or hits a limit
step 2 → connect the model. assemble the instructions and handle the provider's response and tool-call format
step 3 → give it tools. start with what the task needs: search files, read code, edit files and run commands
step 4 → manage context. load relevant project instructions, keep useful results, and compact history when it gets too long
step 5 → define permissions. decide what runs automatically, what needs approval, and what should be blocked or sandboxed
step 6 → add orchestration when the work needs it. a single agent can start simple; sub-agents can split and coordinate independent tasks
step 7 → make it extensible. hooks, skills and plugins let you add behavior without rebuilding the whole runtime
one finding: in the 11 systems studied, the authors found no general-purpose agent framework imported in the agent runtime and no vector-based code retrieval
the practical part is section 16: 18 design recommendations and a starter implementation. the 90-line scaffold is illustrative and omits a sandbox, so it needs more work before real deployment
save this, then read the full guide for Opus 5.5 Harness Engineering ↓
引用帖 @beamnxw: Stop letting unfinished Opus 5.5 runs eat your budget
Set up the harness before your next long task
Save progress, verify results, reuse the workflow
The full 7-layer setup below ↓ x.com/i/article/2107503162273792000
Stop letting unfinished Opus 5.5 runs eat your budget
Set up the harness before your next long task
Save progress, verify results, reuse the workflow
The full 7-layer setup below ↓ x.com/i/article/2107503162273792000
