Episode Summary
Executive Summary: This episode explains how to “steer” AI agents by placing instructions in the right layer: always-on files for stable context, scoped rules and skills for task-specific guidance, sub-agents for isolated work, hooks for deterministic enforcement, and system-prompt modifications for blunt global changes. It generalizes Claude Code’s approach to broader standards like agents.md and argues that human-authored instruction files materially improve reliability and reduce bugs.
Main Topics: Instruction hierarchy for AI agents: The host frames agent control as choosing where instructions live so they remain cheap to carry, durable across long sessions, and appropriately authoritative. Always-on project files: claw.md and agents.md: Root-level markdown files load at session start and persist through compaction, making them suitable for always-relevant project facts, conventions, and contribution guidance. Scoped rules and skills: Rules load only when relevant paths are touched, while skills defer full procedural content until invoked, reducing context bloat for specialized workflows. Sub-agents as context isolation: Sub-agents run side tasks in fresh contexts, keeping intermediate work out of the main conversation and scaling to orchestrated multi-agent workflows. Hooks as deterministic guardrails: Hooks execute code on lifecycle events and are contrasted with instructions as guarantees rather than probabilities, making them the right choice for must-run or must-block actions. Cross-platform standardization and empirical evidence: The episode extends the taxonomy beyond Claude to agents.md, OpenAI, Google, Cursor, Copilot, and others, citing research that human-written instructions improve outcomes and reduce bugs.
Key Arguments: Instructions should be placed where their persistence matches their relevance: global facts in always-on files, procedures in skills, and narrow constraints in scoped rules. Long sessions cause compaction, so instructions that are only spoken earlier can disappear from an agent’s effective memory. Sub-agents improve reliability by preventing intermediate reasoning and outputs from polluting the main context window. Hooks are the proper mechanism for hard requirements because code provides deterministic enforcement, whereas prompts only bias behavior probabilistically. Output styles and system-prompt appends are the most powerful but blunt mechanisms; they can override default behavior and should be used carefully. agents.md has become an emerging cross-vendor standard for repository-level instructions, increasingly serving as a single source of truth across tools. A Zurich study found that developer-written instruction files improve success and reduce bugs, while LLM-generated instruction files can hurt success and raise cost. Steering files should be treated like code: owned, reviewed, and pruned to avoid instruction dilution.
Data Points: Number of instruction methods in Claude Code taxonomy: 7 - The episode categorizes seven ways to deliver instructions to Claude Code. Compaction effect: Instructions can be squeezed out over long sessions - Explained as the reason early prompts may stop being followed later in marathon conversations. Recommended length for claw.md: Under 200 lines - Advice for keeping root-level always-on instructions concise. Sub-agent nesting depth: Up to 5 levels deep - Sub-agents can nest for more complex workflows. Academic study sample: 138 real-world repositories - ETEHA Zurich researchers evaluated instruction files across repositories. Task success improvement: About 4% - Developer-written instruction files modestly improved agent task success rates. Bug reduction: 35% to 55% - Developer-written instruction files reduced agent-introduced bugs. Inference cost change with LLM-generated instructions: Over 20% increase - LLM-generated instruction files increased inference costs. Repository adoption: Upwards of 60,000 repositories - agents.md adoption across monorepos and projects. Concurrent agents: Tens to hundreds - Orchestrated workflows can coordinate large numbers of background agents.
Pivotal Quotes: "An instruction is a probability while a hook is a guarantee." — John Crohn: Core distinction used to explain why deterministic code is needed for must-have behavior. "You can't delegate the steering wheel to the thing being steered." — John Crohn: Explains why human judgment should write the instruction files rather than relying on the model itself. "Global instructions should be few and short, and everything else should be scoped to load only where it's relevant." — John Crohn: Summarizes the practical rule for organizing agent instructions across tools.
Implications: Teams should design agent instruction layers intentionally: keep global guidance minimal, push procedures into scoped mechanisms, use hooks for enforcement, and treat instruction files as maintained code. The broader trend is toward interoperable standards like agents.md.
About Super Data Science: ML & AI Podcast with Jon Krohn
View all episodes from Super Data Science: ML & AI Podcast with Jon Krohn