# 11 More Tiny Coding Agent Fixes With A Stupid Amount Of Payoff (Learn These Now)
<!--
ref: @content/youtube/cole-medin/11-more-tiny-coding-agent-fixes-with-a-stupid-amount-of-payoff-learn-these-now
tags: [coding agents, AI layer, skills, hooks, rules, context management, subagents, testing, planning]
version: 2
updated_at: 2026-11-24T07:01:02.441Z
-->

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

# 11 More Tiny Coding Agent Fixes With A Stupid Amount Of Payoff (Learn These Now)

*Synthesized from Cole Medin, 2026-11-10.*

Cole Medin presents solo, listing eleven recurring problems with coding agents and a simple fix for each, implemented by editing the agent's skills, rules and hooks, which he calls the AI layer.

## Core Thesis
Cole argues that most coding-agent disappointments have simple fixes that get about 90% of the way, and that developers are now environment engineers who shape the AI layer around their agent. He says each fix should be tailored by describing the problem to the agent and having it propose changes to its own skills, rules or hooks.

## Key Insights
- **Premature "done".** Ask the agent to play devil's advocate in the same session, or formalize this as a separate reviewer skill run by a fresh agent with new context.
- **No proof.** Require evidence such as real command output and screenshots, for example attached to the pull request body. Ask the agent to name its testing artifacts during planning.
- **Tests pass, app broken.** Add a skill that opens the real application through a browser CLI after every user-visible change and tests it the way a user would.
- **Rules ignored.** Turn "never" and "always" rules into hooks, which run code on agent events and give a guarantee. Examples he gives are blocking reads of .env files and enforcing bun over npm or node.
- **Bloated global rules.** Audit CLAUDE.md or AGENTS.md and remove rules that newer models no longer need, using a skill he built for the audit.
- **Degrading long sessions.** Ask for a handoff.md covering what was done, where difficulty arose and what was tried, then start a fresh session.
- **Losing control.** Tune the planning skill so the agent lists which decisions it will make and which it will ask the user to confirm before implementation.
- **Over-scoped changes.** Write explicit rules for concision, such as what "targeted implementation" means in each part of the codebase.
- **Subagent token burn.** Restrict subagents to explicit requests and use smaller models for helper agents.
- **Over-testing small changes.** Have the planning skill assess impact scope in advance and define validation levels, and combine this with defining what is tested.
- **Distraction.** Save side findings to a notes file, such as notice.md, rather than acting on them mid-task.

## Actionable Takeaways
1. Ask the agent for the strongest reasons its work might fail, or add a separate reviewer skill.
2. Require evidence of each claim, such as command output or screenshots, and name the test artifacts during planning.
3. Move every hard "never" or "always" rule into a hook.
4. Audit global rules periodically and keep only what the current model needs.
5. Start a fresh session with a handoff file once a conversation grows long or mistakes start repeating.
6. Set subagents and testing depth explicitly in the planning skill.

## Notable Quotes
> "Agents are good at finding gaps when asked to do so." — Cole Medin

> "Validation is what agents do worst, even if done in a separate session." — Cole Medin

> "Coding agents suffer from attention deficit disorder just like humans." — 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/web/github/2026-11-24-builtin-ship-shadows-user-skill`*

---

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