Agent Design, Optimization and Harnesses
Choose a control policy, improve it on separated task data and independently verify bounded local actions.
What controls an AI agent’s actions?
An AI agent selects actions to carry out a task. Its control policy determines the next action from the task and observations, such as search results or a failed check. A scripted workflow follows application rules; a model-driven policy uses a model to propose the next action. In either case, the runtime checks proposals and limits work. The early lessons compare scripted policies; later coding-agent work uses recorded model responses and independent checks.
Follow one documentation question through search, read and final decisions. Compare policies and worker delegation, then tune retrieval on separated task families before moving to repair tasks. For a submitted repair, execute the checker against fresh candidate files rather than treating a completion message as verification.
What you can build now
The design and optimization modules use the shared docuctl task lab. The harness module moves from controlled expression repairs to a trusted repository-tool replay, then applies independent outcome checking to controlled candidates. These are linked experiments with different task contracts, not one deployed coding assistant. Persistent memory lifecycle belongs to Context and Memory.
What you'll learn
- Compare workflows and bounded policies using the same task cases.
- Curate traces, tune on development tasks and calibrate independent graders.
- Run bounded local repair and coding-agent loops, then verify edits independently.
Lessons
Module 1 · 3 lessons · about 1 hourAgent design
Compare scripted control policies, follow search and read decisions and give workers explicit state.
Compare a workflow with a bounded policyRead
Compare a keyword route, fixed search/read workflow and scripted decision loop on shared documentation tasks. Measure outcomes and tool work.
Run a search-and-read decision loopRead
Separate policy decisions from tool execution. Enforce action schemas, tool and turn limits, and citation provenance before checking the returned command.
Delegate independent tasks with explicit worker stateRead
Fan out two documentation requests into separate bounded runtimes. Gather results by task ID and account for dispatch, merge and incomplete-worker behavior.
Module 2 · 3 lessons · about 1 hourAgent optimization
Inspect traces, tune on separated task families and compare outcomes with calibrated graders.
Curate traces before selecting an improvementRead
Deduplicate versioned questions, keep task families within one split and save the actual decisions and tool observations for each cleaned case.
Tune retrieval policy on separated task familiesRead
Choose alias expansion and candidate count on development tasks. Freeze the selected configuration before measuring source recall on separate task families.
Calibrate task graders before comparing policiesRead
Expose false positives in a format-only grader, compare it with the task contract and calculate what any-success and repeated-success metrics actually mean.
Module 3 · 3 lessons · about 1 hourAgent harnesses
Bound repair work and run independent checks on the files an agent changes.
Bound a local repair processRead
Restrict a retry-condition patch, write each candidate into a fresh workspace and run independent behavioral checks in a separate process with a timeout.
Build a coding-agent loopRead
Build a coding-agent loop that streams model messages, runs repository tools, checks a real test repair and stops at a fixed turn limit.
Verify edits independently of completion claimsRead
Run controlled repair candidates through the existing harness. Preserve completion claims as observations while grading the behavior of each fresh candidate.