# Let Your AI Agent Do ITS OWN Harness Engineering (Here's How) <!-- ref: @content/youtube/cole-medin/let-your-ai-agent-do-its-own-harness-engineering-heres-how tags: [harness engineering, agent memory, trace analysis, human approval, system prompts, skills, guardrails, agent evaluation] version: 2 updated_at: 2026-11-24T06:12:09.127Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=TVhhmhvCovg)** # Let Your AI Agent Do ITS OWN Harness Engineering (Here's How) *Synthesized from Cole Medin, 2026-10-20.* Cole Medin, who usually teaches coding agents, applies the same "harness engineering" ideas to production agents for business automation. The video was made in collaboration with LangChain, which provided the deployment platform used in the demo. ## Core Thesis Cole argues that the harness around a model (rules, skills, subagents, tools, hooks and memory) is what makes an agent improve over time, and that production agents can be improved the same way coding agents are. Each harness part maps to a production concept, and the improvement comes from two loops: learning from human corrections in production, and reviewing traces to propose changes that a person approves. ## Key Insights - **Harness mapping.** Rules correspond to a system prompt, subagents to multi-agent delegation, MCP tools to connections, skills to workflows that replace many traditional tools, and hooks to guardrails that block or track actions. - **Markdown instead of code.** The demo agent is defined in about 30 lines of Python. Instructions live in a root instructions file, and skills live in a skills folder, both picked up automatically. - **Loop one: an inbox of uncertain answers.** When the agent signals doubt, the case goes to a team inbox. A person supplies the correct answer, which is stored as a lesson in per-user memory and in a shared core instructions file, then searched later. - **Loop two: trace-based proposals.** The platform's engine analyzes production traces and proposes a concise change to the instructions file. The owner clicks apply to activate it, and versions can be pushed or rolled back like commits. - **Demo result.** On a 14-question test set, the first version answered 4 correctly. After the lessons and the approved changes, it answered 13 correctly. The presenter says LLMs will not be perfect every time. - **Per-user privacy.** Individual user memories do not overlap, and users cannot see one another's memories, according to the presenter. ## Actionable Takeaways 1. Treat production agents like coding agents: keep rules, skills and memory in Markdown files that can be versioned. 2. Route low-confidence cases to a human inbox and store each correction as a lesson with a searchable record. 3. Review production traces regularly and approve changes to instructions rather than letting the agent edit itself. 4. Keep a versioned history of agent instructions so a bad change can be rolled back. 5. Measure with a fixed question set (the demo used 14 questions) before and after each round of changes. ## Notable Quotes > "Skills are our workflows that replace many traditional tools." — Cole Medin > "Our rules for a traditional agent are the same as a system prompt." — Cole Medin > "I don't want my agent to improve on its own, because then I lose control over it" — Cole Medin --- *Related: `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code` · `@content/web/github/2026-11-25-claude-code-v2-1-332` · `@content/web/github/2026-11-24-builtin-ship-shadows-user-skill` · `@content/web/github/2026-11-17-open-artifact` · `@content/youtube/ai-jason/how-to-build-proactive-agents-self-improving-company-fully-explained`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*