# 11 Tiny Coding Agent Fixes With A Stupid Amount Of Payoff
<!--
ref: @content/youtube/cole-medin/11-tiny-coding-agent-fixes-with-a-stupid-amount-of-payoff
tags: [coding agents, agent instructions, rule drift, context management, hooks, subagents, usage limits, validation]
version: 2
updated_at: 2026-11-24T05:24:49.652Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=UbylWXukvR8)**

# 11 Tiny Coding Agent Fixes With A Stupid Amount Of Payoff

*Synthesized from Cole Medin, 2026-09-01.*

Cole Medin presents solo, walking through eleven small workflow habits for making coding agents more reliable. He says the tips apply to any coding agent and uses Claude Code for the demonstrations.

## Core Thesis
Cole argues that most of the reliability gain from coding agents comes from small workflow habits rather than new tooling. Each tip either removes an assumption the agent would otherwise make, keeps the context window lean, or moves a must-happen step out of prose instructions and into a mechanism that always runs.

## Key Insights
- **Write for the agent, not the person.** Instructions should name exact file paths, folders, numbers and commands, because a human fills gaps that an agent will not. Cole calls outdated rules "rule drift" and suggests a periodic audit that checks rules against the codebase.
- **Avoid /compact.** Compaction is summarised by the model and loses detail; Cole cites research suggesting only about 10% of specific details survive. He prefers smaller task loads, or a state document and a fresh session.
- **Move critical rules into hooks.** Rules are probabilistic. A hook fires on a specific event, such as when the agent finishes, so tests run every time and failures go back to the agent.
- **Keep global rules short.** He cites Anthropic's guidance of under 200 lines and says he prefers under 300. Keep only project-wide restrictions in global rules and move task-specific material into context files the agent reads when needed.
- **Watch usage.** The `/usage` command in Claude Code shows the weekly limit. In one case he saw 39% of the weekly limit used after running more than four sessions in parallel, and he warns that Claude Code launches helper agents without being asked.
- **Do not switch models mid-task.** A derailed conversation carries its bad patterns forward, so a stronger model does not repair it. Errors breed similar errors; write a handover and start a new session.
- **No coordinator agents.** He rejects team-lead frameworks, shared task lists and mailboxes. A single main agent that delegates to background agents is more reliable, and he notes that Claude's own agent-teams feature has stayed experimental.
- **Separate implementer from reviewer.** A model tends to approve its own work, so run the review in a fresh conversation, for example by asking it to review the uncommitted changes.
- **Cap iteration.** Forcing an agent to keep editing leads it to chase errors to please the user. He cites a study in which, after 10 or 20 forced iterations, the previous version was better than the latest in 85% of cases.
- **Plan validation before code.** Define up front the tools the agent can use to check its own work, the conventions for unit and integration tests, and the edge cases it should cover.

## Actionable Takeaways
1. Put exact paths, commands and folder locations in agent rules, and audit the rules against the codebase on a schedule to catch drift.
2. Avoid /compact on long sessions. Write a short state document and start a new session.
3. Turn any must-happen step, such as running the full test suite when the agent finishes, into a hook.
4. Keep global rules well under about 300 lines and move task-specific context into separate files.
5. Check `/usage` for the weekly limit, and cap parallel sessions and helper agents when you are near it.
6. When an agent goes off track, start a new conversation with a handover rather than switching to a larger model.
7. Have a fresh conversation review the work, and stop iterating once results stop improving.
8. Write the testing plan before the first line of code.

## Notable Quotes
> "write for the agent, not the person. Agents need specifics and should not be allowed to make any assumptions." — Cole Medin

> "Give your agents smaller task loads so you never have to resort to this." — Cole Medin

> "Before you write a single line of code, you should plan a complete testing system." — Cole Medin

---

*Related: `@protocol/silent-signal-and-evidence-traps` · `@content/web/github/2026-11-26-interactive-session-misclassified-background-issue-112133` · `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code` · `@content/web/github/2026-11-25-claude-code-v2-1-332` · `@content/youtube/yifan-bth/how-to-prompt-cursor-windsurf-copilot-to-get-reliable-output`*

---

*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).*