@dunik_7: the difference between a $4 agent run and a $0.40 one comes down to a single idea: the heuristic. lecture 6 of Stanford…
Summary
This Twitter thread highlights Stanford CS221 lecture 6 on heuristics, explaining how A* search improves agent efficiency by using heuristics to guide decision-making. Key takeaways include building heuristics by relaxing problems, the danger of bad heuristics, and the optimality of A* with the right estimate.
View Cached Full Text
Cached at: 05/23/26, 06:14 PM
the difference between a $4 agent run and a $0.40 one comes down to a single idea: the heuristic.
lecture 6 of Stanford CS221 is Percy Liang on how search gets smart - A* and the heuristics that tell an agent “you’re getting warmer” before it wastes a thousand steps finding out.
80 minutes. three things click after this one:
/ how you build a heuristic from scratch - you relax the problem until it’s easy, then measure from there
/ why a bad heuristic is worse than none - it confidently marches the agent the wrong way
/ why A* with the right estimate is provably optimal, and your “just try harder” prompt is not
same $90K Stanford sequence. lecture 6 of ~20. free.
the next 10x in agents won’t come from a bigger model. it’ll come from a better guess at how far the goal is.
the CEO of Obsidian spent almost 3 hours on camera explaining why your “second brain” doesn’t actually work yet.
the core idea: file over app. your notes outlive the app you take them in.
if they don’t you don’t own them. you’re renting them.
Steph Ango is handing you the deed.
Similar Articles
@gneubig: "The Math Behind the Cost of AI Agents" Nice, clear, tutorial by Vasco Schiavo at @OpenHandsDev on why agents can be ex…
A tutorial by Vasco Schiavo explaining the math behind the cost of AI agents, focusing on why agents can be expensive and the importance of prompt caching.
The most expensive part of running AI agents isn't the tokens. It's the time figuring out why they did something.
Building AI agents reveals that the major cost is debugging—spending weeks chasing issues like upstream API changes—not just token or model inference costs.
my agent bill went from $200 a week to $40 when I stopped running Opus on every subtask
A developer shares how they reduced their AI agent's weekly cost from $200 to $40 by routing simple subtasks to cheaper models like DeepSeek V4 Pro and Tencent Hunyuan while keeping complex reasoning on Opus 4.7, achieving comparable output quality for most work.
A developer shares insights on how to maximize AI agent capabilities, arguing that simpler setups and understanding core principles are more effective than complex harnesses and libraries.
A developer shares insights on how to maximize AI agent capabilities, arguing that simpler setups and understanding core principles are more effective than complex harnesses and libraries.
If your agent learned anything, why does Run 10 cost the same as Run 1?
Critique of AI agent token consumption; proposes Return on Token Investment (ROTI) as a metric for efficiency, noting that most agents do not reduce token usage over time.