11 Tiny Coding Agent Fixes

11 Tiny Coding Agent Fixes With a Stupid Amount of Payoff

🎬 Cole Medin πŸ“… Sep 1, 2026 ⏱ 17:29
coding agents reliability hooks handoff docs validation

🎯 The Premise

11 easy-to-implement tips to make coding agents more reliable β€” no workflow scrapping, agent-agnostic, useful whether you're new or have an evolved workflow. "The best guidance comes in the form of simple tips and tricks that have a disproportionately large benefit." 0:00

πŸ”§ All 11 Tips

1
Write for the agent, not the human.

Agents need specificity and shouldn't make assumptions. Your #1 job is to reduce the number of assumptions the agent makes. Humans can interpret "keep the database code organized sensibly" β€” an agent needs "all SQL lives in the database/ folder." Be specific on file paths, numbers, and commands.

2
Your instruction files rot (rule drift).

Because you write so specifically, commands/file paths go stale as the codebase evolves. Stale rules (referencing deleted files, replaced databases, renamed folders) severely confuse the agent. 1 in 4 repos with AI rules have stale rules. Run the rules-check-drift skill to audit your rules against the codebase periodically.

3
/compact is not worth it.

Smashing a bloated conversation into a summary relies on the agent remembering what's important β†’ hallucination. Only ~10% of specific details survive the summary. Recommendation: give smaller work sets (never reach the point of needing it); if you go too far, write a handoff doc and start a new session β€” "Slash Compact is a handoff doc you have barely any visibility into."

4
Put the load-bearing rules in hooks.

Rules are probabilistic β€” an LLM isn't guaranteed to follow them. If something must happen every time (e.g. "run tests after every implementation"), make it a hook, not a rule. A hook triggers deterministically on an event (before a tool, on "done"), runs the tests, and routes failures back: "you said you're done, but go fix these." Anytime you call out a specific event or ordering in a rule, it should be a hook.

5
For context, less is more.

Too many rules hurt more than help as models get more capable. Don't tell an LLM "how to write a PR" or "don't repeat yourself" β€” it bloat. Anthropic recommends <200 lines of global rules (Cole says <300). Keep global rules to project specifics (constraints/conventions that apply always); move the rest to task-specific context files the agent reads on demand.

6
Stop liberally using sub-agents.

Fanouts / parallel agents / sub-agents cost way more tokens than you think. Cole's own /usage showed 39% of his weekly limit went to running 4+ sessions in parallel. Claude Code is "way too prone to spinning up dozens of sub-agents without you asking." Sub-agents are great for protecting context β€” just don't use them too liberally.

7
Do not escalate mid-task.

Switching to a bigger model mid-conversation (via /model) when the agent is stuck doesn't fix anything β€” the conversation is already "tainted" with biases and mistakes that carry over. LLMs develop error patterns within a single conversation (prediction machines). Instead: write a handoff doc and burn the conversation to the ground β€” fresh session, much better results.

8
Skip the coordinator / team-lead (hot take).

Elaborate frameworks with a team lead distributing work and agents messaging each other are not reliable β€” Claude left "agent teams" experimental for months for a reason. For parallel/scale work: just have your main agent describe what you want in plain English and let it delegate to background agents. "You don't need teammates, a shared task list, or a mailbox. It sounds cool β€” but it's not how you build production-grade software."

9
Never let the writer approve the work.

The writer builds up bias and assumptions β€” it'll say things are great when they're not. Always get a fresh set of eyes: finish in the implementation conversation (run tests), then open a new conversation with a handoff doc and have it review the PR / uncommitted changes. "No bias, no assumptions β€” or at least a lot less."

10
You can over-revise.

Forcing too many iterations degrades quality β€” the agent finds "corrections" just to appease you. 85% of the time there was an earlier iteration that was far better than the last. "More iterations does not always equal better code." (Especially tempting right before a rate-limit reset.)

11
Treat validation as a system, not a step.

Don't make testing an afterthought. Before writing any code, plan the full validation harness: tools for the agent to check its own work, conventions for unit/integration tests, how you'll test after, how to look for edge cases. "Planning those things before you write the code is one of the best ways to make your coding workflows more reliable."

πŸ“š The Studies (referenced in the video)

TipFindingarXiv
1Writing for the agent (specificity)2608.20195
21 in 4 repos have stale rules2606.09090
3Only ~10% survives a compaction2608.22752
4Compaction erodes safety constraints2606.22528
5Less context beats more context (+ no AI config β†’ 2Γ— complexity)2606.10209, 2608.25241
7Escalating mid-task recovers < half the gap2608.24358
8Naming a coordinator does not improve results2608.16801
1085% had a better answer before the last iteration2607.24604
11Where agent reliability actually comes from2607.17044

πŸ”— github.com/coleam00/skills (incl. the rules-check-drift skill from tip 2)

πŸ’‘ Key Takeaways

  1. Reduce assumptions β€” write for the agent (specific paths, commands, numbers), not for a human reader.
  2. Rule drift is real β€” 1 in 4 repos have stale rules; audit them with a drift-check skill.
  3. Avoid /compact β€” 90% of detail is lost. Use smaller work sets + handoff docs instead.
  4. Hooks, not rules, for anything that must always happen (tests, deterministic checks).
  5. Less context wins β€” keep global rules <200–300 lines; the rest goes to task-specific files.
  6. Fresh sessions beat escalation and over-iteration β€” a tainted conversation can't be rescued by a bigger model; 85% of runs had an earlier iteration better than the last.
  7. Validation is a system, planned before code β€” and the writer never approves its own work.

πŸ“ Timestamp Index

0:00 Intro
1:29 1. Write for the agent, not the human
2:54 2. Instruction files rot
4:13 3. /compact is not worth it
5:33 4. Load-bearing rules in hooks
8:27 5. Less is more
9:53 6. Stop liberal sub-agents
11:19 7. Don't escalate mid-task
13:10 8. Skip the coordinator
14:27 9. Writer never approves
15:27 10. Over-revising
16:21 11. Validation as a system
☰ View all