Skip to content
PromptsBuddy
All episodes
The PromptsBuddy Podcast cover art
Season 1 · Episode 05September 1, 202621 min

Podcast episode

Context Engineering

The PromptsBuddy Podcast

Most agent failures aren't model failures — they're context failures. A coding agent spends a weekend modernizing dead code, and we unpack the skill that decides whether an agent ships: context engineering.

The PromptsBuddy Podcast

Context Engineering

Theme

0:000:00

Chapters

  1. 00:00Theme
  2. 00:07The agent's lost weekend
  3. 01:35Context engineering
  4. 02:52Where the term came from
  5. 06:33Context rot and the attention budget
  6. 10:18Four failure modes
  7. 12:24Confusion and clash
  8. 14:24Write, select, compress
  9. 16:31Isolate and the Monday move
  10. 18:18Lightning round
  11. 19:47The actual fix

Show notes

A coding agent left alone for a long weekend produced beautiful work — clean commits, tests passing — in a module the team had stopped shipping eight months earlier. It found an old architecture doc, trusted it, and organized its whole weekend around a map that no longer matched the territory.

The model wasn't the problem. It reasoned perfectly over the wrong world. Which is why the useful question stopped being "how do I get a smarter model" and became: what exactly am I letting it see?

That question is context engineering — the skill behind whether an AI agent ships, or quietly falls apart.

What we cover

  • Why prompt engineering got absorbed into context engineering (Lütke, Karpathy)
  • Context rot: why bigger windows make models worse before they hit the limit
  • The four failure modes — poisoning, distraction, confusion, clash
  • The four-move playbook: write, select, compress, isolate
  • The Monday-morning move: print the actual context your agent sees

The one line to steal

Treat context as a budget, not a bucket. Every token in the window should have to justify its rent. Same model, cleaner inputs — instantly sharper agent.

Sources mentioned

Karpathy & Lütke (June 2025) · Anthropic, Effective Context Engineering for AI Agents · LangChain / Lance Martin · Drew Breunig, How Contexts Fail · Chroma Research, Context Rot · Liu et al., Lost in the Middle · Microsoft/Salesforce multi-turn study · Cognition, Don't Build Multi-Agents

Mentioned in this episode

Prompts from this episode

FundamentalsbeginnerStaff pick

Make it ask before it answers

Four lines that stop a model guessing at what you meant. It interviews you until it can actually do the task, which turns a mediocre first answer into a usable one.

ClaudeChatGPTGemini1 vars
Open prompt
Fundamentalsbeginner

Kill the flattery

A standing instruction that removes the praise, the restating, and the closing summary — so the reply is only the part you actually needed.

ClaudeChatGPTGemini1 vars
Open prompt
Engineeringintermediate

Explain this codebase like I start on Monday

Produces the orientation doc a new engineer actually needs: the three things that will confuse them, the load-bearing files, and the conventions nobody wrote down.

ClaudeChatGPT3 vars
Open prompt