Harness Engineering for Self-Improvement
- Source
- lilianweng.github.io
- Publisher
- Lilian Weng
- Author
- Lilian Weng
- Date
Context
An AI agent can improve its working method by changing the software around its model. Lilian Weng's review examines this surrounding : the machinery that selects , runs tools, preserves work and evaluates results. Weng identifies it as a practical target for improvement without requiring the model to rewrite its own learned parameters.
Persistent files illustrate the mechanism. Experiment logs and error histories can outgrow the amount of text a model can consider at once. Saving them separately lets the agent retrieve relevant evidence and inspect previous failures. That can inform changes to the workflow, whose usefulness must then be evaluated.
- Harness — The software that sends a model its context, recognizes tool calls, runs or refuses them, returns results and keeps the record.
- Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
- Record — One unit of data in a file or table, such as one supplier's quote; distinct from a line of text.
- Harness engineering — Designing the full environment and feedback system around an agent.
“an AI uses its current intelligence to improve the cognitive machinery that produces its intelligence”






