Master the art of directing AI agents with precision and intention.
Why Prompting Matters
The difference between a mediocre agent session and a brilliant one often comes down to how you direct the agent. This lesson dissects the patterns that make prompts effective, drawn from real-world workflows that consistently produce excellent results.
Intensity Calibration
Signal how much attention to allocate
Scope Control
Expand or contract the search space
Metacognition
Force self-verification and reflection
Context Anchoring
Ground behavior in stable references
Pattern 1: Intensity Calibration
AI models allocate "compute" based on perceived task importance. Stacked modifiers signal that this task deserves maximum attention:
"super carefully"→Elevates attention above baseline"super careful, methodical, and critical"→Triple-stacking for maximum precision"systematically and meticulously and intelligently"→Emphasizes both process and quality# Low intensity (default behavior)"Check the code for bugs"# High intensity (elevated attention)"Do a super careful, methodical, and critical checkwith fresh eyes to find any obvious bugs, problems,errors, issues, silly mistakes, etc. and thensystematically and meticulously and intelligentlycorrect them."
Pattern 2: Scope Control
Models tend to take shortcuts. Explicit scope directives push against premature narrowing:
↔ Breadth
- "take ALL of that"
- "Don't restrict yourself"
- "cast a wider net"
- "comprehensive and granular"
↓ Depth
- "go super deep"
- "deeply investigate and understand"
- "trace their functionality and execution flows"
- "first-principle analysis"
# Avoiding narrow focus"Don't restrict yourself to the latest commits,cast a wider net and go super deep!"# Comprehensive coverage"Take ALL of that and elaborate on it more,then create a comprehensive and granular set..."# Depth with breadth"Randomly explore the code files in this project,choosing code files to deeply investigate and understandand trace their functionality and execution flowsthrough the related code files which they importor which they are imported by."
Pattern 3: Forcing Self-Verification
Questions trigger metacognition—forcing the model to evaluate its own output before finalizing:
"Are you sure it makes sense?"
→ Basic sanity check
"Is it optimal?"
→ Pushes beyond 'good enough'
"Could we change anything to make the system work better for users?"
→ User-centric optimization
"Check over each bead super carefully"
→ Item-by-item review
# The Plan Review Pattern"Check over each bead super carefully—are you sure it makes sense?Is it optimal?Could we change anything to make the system work better?If so, revise the beads.It's a lot easier and faster to operate in 'plan space'before we start implementing these things!"
Pattern 4: The Fresh Eyes Technique
Psychological reset techniques help agents approach code without prior assumptions or confirmation bias:
Explicit Reset
with "fresh eyes"↳ Signals to discard prior assumptions
Random Exploration
"randomly explore the code files"↳ Avoids tunnel vision on expected locations
Peer Framing
"reviewing code written by your fellow agents"↳ Creates psychological distance from own work
# The Fresh Eyes Code Review"I want you to carefully read over all of the new codeyou just wrote and other existing code you just modifiedwith 'fresh eyes' looking super carefully for any obviousbugs, errors, problems, issues, confusion, etc.Carefully fix anything you uncover."# Peer Review Framing"Turn your attention to reviewing the code written byyour fellow agents and checking for any issues, bugs,errors, problems, inefficiencies, security problems,reliability issues, etc. and carefully diagnose theirunderlying root causes using first-principle analysis."
Pattern 5: Temporal Awareness
Great prompts consider future contexts—the agent that will continue this work, the human who will review it, the "future self" who needs to understand it:
# Self-Documenting Output"Create a comprehensive set of beads with detailed commentsso that the whole thing is totally self-contained andself-documenting (including relevant background,reasoning/justification, considerations, etc.—anything we'd want our 'future self' to know aboutthe goals and intentions and thought process and how itserves the over-arching goals of the project)."
Pattern 6: Context Anchoring
Stable reference documents (like AGENTS.md) serve as behavioral anchors. Re-reading them is especially critical after context compaction.
# The Post-Compaction Refresh"Reread AGENTS.md so it's still fresh in your mind.Use ultrathink."
1. Context decay: Rules lose salience as more content is added
2. Summarization loss: Compaction may miss nuances
3. Drift prevention: Periodic grounding prevents behavioral divergence
4. Fresh frame: Re-reading establishes correct operating context
# Grounding Throughout Work"Be sure to comply with ALL rules in AGENTS.md andensure that any code you write or revise conforms tothe best practice guides referenced in the AGENTS.md file."# Making Rules Explicit"You may NOT delete any file or directory unless Iexplicitly give the exact command in this session."
Pattern 7: First Principles Analysis
Push for deep understanding over surface-level pattern matching:
# Root Cause Emphasis"Carefully diagnose their underlying root causesusing first-principle analysis and then fix orrevise them if necessary."# Context Before Action"Once you understand the purpose of the code inthe larger context of the workflows, I want youto do a super careful, methodical check..."
Putting It All Together
Here's a real prompt that combines multiple patterns:
"Reread AGENTS.md so it's still fresh in your mind.Use ultrathink.I want you to sort of randomly explore the code filesin this project, choosing code files to deeply investigateand understand and trace their functionality and executionflows through the related code files which they import orwhich they are imported by.Once you understand the purpose of the code in the largercontext of the workflows, I want you to do a super careful,methodical, and critical check with 'fresh eyes' to findany obvious bugs, problems, errors, issues, silly mistakes,etc. and then systematically and meticulously andintelligently correct them.Be sure to comply with ALL rules in AGENTS.md and ensurethat any code you write or revise conforms to the bestpractice guides referenced in the AGENTS.md file."
Pattern Analysis
"Reread AGENTS.md...""Use ultrathink""randomly explore""deeply investigate and understand""trace their functionality""Once you understand...larger context""super careful, methodical, and critical""with "fresh eyes"""any obvious bugs, problems, errors, issues...""systematically and meticulously and intelligently""comply with ALL rules"Quick Reference
Intensity
Tasks requiring maximum precision
super carefully, methodical, use ultrathink
Scope Expansion
Avoiding narrow focus or shortcuts
take ALL, cast wider net, comprehensive
Self-Verification
Before implementing or finalizing
are you sure?, is it optimal?, revise if needed
Fresh Eyes
Code review, finding missed issues
fresh eyes, fellow agents, randomly explore
Temporal
Creating persistent artifacts
future self, self-documenting, self-contained
Anchoring
After compaction or drift risk
reread AGENTS.md, comply with ALL rules
First Principles
Debugging or understanding complex code
root causes, first-principle, larger context