Skip to content
echogeco
Harnesses and multi-agent workflows · The harness

Five steps, one prompt

Multiply five measured step rates into a task success rate, then cost a check and one retry per step against the wrong reports it removes.

estimateeasyExercise · 3 min · 62 of 77
On this page

An agent that runs five steps from one prompt is as reliable as the product of its steps. The estimate turns five measured percentages into a daily count of wrong reports, then prices the harness from why reliability lives in the harness that removes most of them.

The situation

A finance team's expense agent runs one system prompt over five steps per report: extract amount, date and merchant from the receipt; map the expense to a policy category; check it against the policy limits; flag possible duplicates; write the reimbursement line. Each step is one model call of about 4,000 input and 200 output tokens. On a 200-receipt golden set the steps score 97%, 95%, 93%, 98% and 96%. The agent handles 3,000 reports a day, and a person spends about 5 minutes fixing each report it gets wrong.

A proposed harness adds a code check after every step and retries a failed step once with the check's error appended, about 300 extra input tokens. Assume the checks catch every failure and a retry fails independently of the first attempt.

Course constants: P_in = $3 and P_out = $15 per million tokens.

The question

Estimate the task success rate and the wrong reports per day with and without the harness, and the daily cost of the retries; then decide whether to build it.

A strong answer · Rubric · Where answers go wrong

Write your answer first, then open