Latest / AI Fire Daily / #557 Neil: Context Engineering Rewrites How Claude Gets Instructions
Transcript
- 0:00Anthropic recently made a massive deletion to
- 0:03their AI system. Yeah, a really massive one.
- 0:06They removed over 80 % of their own system prompt.
- 0:09Right. This was for their internal cloud code
- 0:11tool. And the result was no measurable drop in
- 0:15performance at all. None. Two sec silence. Less
- 0:19really is more. It absolutely is. Let us unpack
- 0:22this. Let us do it. Welcome to the deep dive.
- 0:25Thanks for joining us. Today, we're exploring
- 0:27a massive shift in artificial intelligence. A
- 0:31total paradigm shift, really. You're moving past
- 0:33the era of prompt engineering entirely. Right.
- 0:36You no longer need hyper -detailed rules to keep
- 0:38AI on track. We are officially entering the era
- 0:41of context engineering. Yes, and it is all about
- 0:44how you organize your sources. It changes everything
- 0:47about our daily workflows. It really does. And
- 0:49we're focusing on a very specific new generation
- 0:52today. We mean models like Claude Sondefi— in
- 0:54Opus 5. Exactly. This also includes Claude Fabel
- 0:575 and the Saul model. These newer models require
- 1:00a completely different approach from us. Yeah,
- 1:02the old playbook just does not work for them
- 1:04anymore. I find this transition incredibly fascinating
- 1:07to watch unfold. It is wild to see. Older models
- 1:10absolutely needed strict limits to avoid basic
- 1:13mistakes. Yeah. You had to provide detailed rules
- 1:16for every single edge case. Right. If you did
- 1:19not, the model would easily wander off track.
- 1:22They needed those guardrails because they lacked
- 1:24true contextual awareness. They just could not
- 1:27make reliable decisions on their own yet. But
- 1:30things have changed entirely with Opus 5 and
- 1:32Fable 5. Oh, completely. Adding more instructions
- 1:35can actually make the results much worse now.
- 1:37Really? Yeah. When you over -constrained these
- 1:40new models, you degrade their overall performance.
- 1:42I still wrestle with prompt drift myself, to
- 1:45be honest. Yeah, we all do. It is so tempting
- 1:49to just add one more specific rule. Right. You
- 1:52see an error and you immediately write a new
- 1:54constraint. Exactly. beat, but it is like programming
- 1:57a very rigid, inflexible robot. That is a great
- 2:00way to put it. You spend all your time micromanaging
- 2:04every single tiny movement. That is the perfect
- 2:07way to describe the old mindset. The new way
- 2:09is like onboarding a really smart colleague.
- 2:12You want someone who can just naturally read
- 2:14the room. Yes. You give them access to the workspace
- 2:17and let them work. Let us look at a specific
- 2:19example. like writing code comments. Good idea.
- 2:23Older setups had strict rules for comment length
- 2:26or doc strings. You essentially had to drive
- 2:28the car for the AI. Right. You would specify
- 2:31exact word counts for every single function description.
- 2:34You had to explicitly tell the AI exactly what
- 2:37to do. Now, the instruction simply asks Claude
- 2:39to follow the code base. It looks at the existing
- 2:43comment density and naming style. Exactly. It
- 2:47also matches the coding patterns already used
- 2:49in the project. So it uses its own judgment based
- 2:52on the surrounding environment. Right. A fixed
- 2:54rule might be great for one single repository.
- 2:57But it could be terrible for another completely
- 2:59different project. Exactly. One project might
- 3:01be a sprawling legacy enterprise application.
- 3:05That massive project might actually need heavy,
- 3:09detailed documentation. Right. Another project
- 3:12might be a sleek microservice with clean code.
- 3:16Yeah, and that microservice probably prefers
- 3:18very few comments to stay readable. Yes, and
- 3:22a rigid rule becomes unnecessary baggage in that
- 3:25situation. Claude gets instructions from several
- 3:28overlapping sources at once now. It looks at
- 3:30the global system prompt and the local files.
- 3:32Right, and it looks at specialized skills and
- 3:35the current user request. Every single instruction
- 3:38might make perfect sense in isolation. Sure.
- 3:40But when those sources conflict, the AI faces
- 3:43a real dilemma. It has to decide which rule actually
- 3:46matters the most. It burns valuable compute cycles
- 3:49just trying to resolve internal conflicts. That
- 3:52is exactly why Anthropic deleted 80 % of their
- 3:55prompt. They realized Claude Cote had become
- 3:57way too over -constrained. Yeah, the model was
- 3:59spending too much time navigating contradictory
- 4:02rules. And they saw zero loss in coding evaluations
- 4:05after the massive deletion. None at all. Good
- 4:08context should only explain the ul - goal clearly.
- 4:11It should keep the mandatory limits that truly
- 4:13matter for safety. Right, it should give Claude
- 4:15enough structural information to make the right
- 4:18decision. To sex silence. I hear what you're
- 4:21saying about deleting these rules, but my immediate
- 4:24fear is the risk of wild hallucinations. Sure,
- 4:27that makes sense. If we strip away 80 % of the
- 4:29rules, what stops the model from hallucinating?
- 4:32Well, it relies heavily on the surrounding context
- 4:35of the actual project. It makes reasonable decisions
- 4:39based on the existing patterns it sees. Think
- 4:42about a developer joining your team for the first
- 4:44time. They do not read a massive rule book on
- 4:47how to type. No. They look at previous pull requests
- 4:50to see your established style. Exactly. Claude
- 4:53does the exact same thing with its massive context
- 4:55window. So it reads the room instead of reading
- 4:58a rule book. Precisely. You only keep strict
- 5:01instructions for areas with real danger. Things
- 5:04like security protocols, sensitive data, and
- 5:07strict production access. Right. Everything else
- 5:10should be inferred from the actual working environment.
- 5:13This brings up a really interesting philosophical
- 5:15problem for us. How so? Since we are stripping
- 5:18away the old rule book completely, how do we
- 5:21actually set boundaries without micromanaging
- 5:25the AI model? Ah, that is the big question. If
- 5:28we cannot use strict rules, what comes next?
- 5:30We have to build much better interfaces for the
- 5:33AI. Interfaces. Yeah. People used to give Claude
- 5:36dozens of examples to follow. They thought examples
- 5:39would help the model understand unusual data
- 5:42formats. Right. But examples often create a very
- 5:46dangerous trap for the AI. When you give Claude
- 5:49five examples of a specific format. Yeah. You
- 5:52unintentionally teach it that the correct answer
- 5:54must match perfectly. Exactly. It mimics the
- 5:58syntax rather than understanding the actual boundaries.
- 6:01It just copies the shape of the data provided.
- 6:03Yes. It completely ignores the underlying logic
- 6:05of the request. So a well -designed interface
- 6:08provides clear boundaries without limiting the
- 6:11overall approach. Right. Phil Schmitt recently
- 6:13shared a great WebMCP shopping action example
- 6:16online. Oh, I saw that. It perfectly exposes
- 6:18a shopping action through a structured input
- 6:20schema. Because an input schema acts as a strict
- 6:24blueprint for data. Right. Just to clarify, an
- 6:27input schema is a blueprint showing the exact
- 6:30data format a computer expects. Exactly. The
- 6:33computer knows the exact format it needs to function
- 6:35properly. You do not need examples when the blueprint
- 6:38is perfectly clear. That is right. Instead of
- 6:41showing the agent several sample shopping requests,
- 6:44it is structured. The interface simply defines
- 6:47the exact information it needs to work. Yeah.
- 6:49For the add a cart function, it uses a simple
- 6:52name and description. The schema requires just
- 6:54a string for the product ID variable. It also
- 6:57requires an integer for quantity with a minimum
- 7:00of one. Think about why that minimum quantity
- 7:03rule is so incredibly important. Right. If you
- 7:05rely on examples, the AI might accidentally suggest
- 7:08zero. And trying to add zero items to a cart
- 7:11completely breaks the system. Exactly. The schema
- 7:14actively prevents that mistake from ever happening
- 7:16natively. Claude understands the action perfectly
- 7:19from the name and description alone. The schema
- 7:22simply explains which specific values are safely
- 7:24accepted. It clearly outlines which fields are
- 7:27absolutely required to function correctly. Yeah.
- 7:30There is a great five -question checklist for
- 7:33when Claude fails. Let us go through that. First,
- 7:36does the function name clearly describe the action
- 7:38being taken? Right. Second, does each parameter
- 7:41clearly explain what value it expects? Third,
- 7:45are required fields and accepted values properly
- 7:48defined in code? Fourth, does the schema actively
- 7:52prevent invalid inputs from passing through?
- 7:55And fifth, does the error message explain how
- 7:57to fix it? If you follow that checklist, you
- 8:00will not need endless examples anymore. You keep
- 8:02those instructions directly inside the function
- 8:05definition itself. The boundary is enforced by
- 8:07the actual code, not the prompt. Repeating guidance
- 8:10in the system prompt just adds more maintenance
- 8:12overhead. It does not actually make the interface
- 8:15any clearer for the AI. Let me push back on this
- 8:17idea for just a second. Sure. Are you saying
- 8:19we should never use examples again? Well, examples
- 8:21are totally fine for really unusual or strange
- 8:24edge cases. Sometimes a legacy system requires
- 8:27a bizarre non -standard date format. In those
- 8:30rare cases, a quick example saves a lot of time.
- 8:33But they should not replace clear and well -defined
- 8:37interface definitions entirely. Exactly. The
- 8:40boundaries should always come from the interface,
- 8:42not the examples. Use examples for weird edge
- 8:44cases, not basic guardrails? You got it. Strict
- 8:47rules usually come from one single mistake Claude
- 8:50made once. A developer sees an error, panics,
- 8:54and adds a permanent rule. They overreact and
- 8:56add a constraint for every future interaction.
- 8:58That just builds up unnecessary limits for completely
- 9:01unrelated tasks later. Precisely. Interfaces
- 9:04handle specific actions perfectly in an isolated
- 9:07controlled environment. But what about massive
- 9:11multi -step workflows, like testing and deployment
- 9:14pipelines? That is a whole different beast. You
- 9:16certainly cannot just schema your way out of
- 9:19that complex problem. You absolutely cannot.
- 9:21You need a way to organize massive amounts of
- 9:23procedural data. If you load everything at once,
- 9:26the AI gets completely overwhelmed. It loses
- 9:28track of the immediate task in a sea of instructions.
- 9:31So we need progressive disclosure. Meaning showing
- 9:33information only when it is actually needed for
- 9:36a task. Exactly. We can hide the complex deployment
- 9:39rules until the end. CLAW does not need deployment
- 9:42rules when it's just writing tests. Right. You
- 9:44want to keep the initial context very light and
- 9:47focused. The initial context just shows where
- 9:49the detailed guidance actually lives? You point
- 9:52the model to a main file, like... skill .md.
- 9:56That master file then links to smaller reference
- 9:59files as needed. Yeah, it only loads them when
- 10:01that specific stage of the workflow hits. During
- 10:04the testing phase it only reads the testing guidelines.
- 10:07Claude still knows that deployment verification
- 10:09is required eventually later on. But the detailed
- 10:12guidance enters the context only when it is useful.
- 10:16This helps us solve one of the biggest problems
- 10:18in context engineering. Which is? You must remove
- 10:21outdated and repeated instructions from your
- 10:23context entirely. Ah, yeah. Context often grows
- 10:28wildly because the same rule appears absolutely
- 10:30everywhere. You find the same coding standard
- 10:33in the main system prompt. Right. Then you find
- 10:35it again in the local cluddy .md file. Yeah.
- 10:38And it pops up again in the specialized skill
- 10:40files. When one copy changes the other versions
- 10:43remain totally outdated immediately. You have
- 10:45to avoid duplicate instructions across your global
- 10:48and local files. Repeating the same rule just
- 10:51adds expensive tokens to every single session.
- 10:54He does this without giving Claude any new information
- 10:56at all. There was a fascinating example from
- 10:58Matt Van Horn on X recently. Oh, I read about
- 11:01that. He completely decluttered his own AI workspace
- 11:05setup just last week. He noticed irrelevant info
- 11:08was bloating every single session unnecessarily.
- 11:11Yeah, he reduced his entire memory setup down
- 11:13to just six files. Six files. Whoa! Imagine scaling
- 11:17to a billion qu - queries with just six memory
- 11:20files doing the heavy lifting. That is insane
- 11:23efficiency. It is a completely different way
- 11:25of thinking about AI memory architecture. Most
- 11:28developers have dozens of messy files cluttering
- 11:30up their workspace. Right. It really forces you
- 11:33to keep only the absolute clearest version. Move
- 11:36deeper guidance into a specific skill or reference
- 11:38file instead. Keep auto memory reserved for useful
- 11:41information that crosses over multiple sessions.
- 11:44Pete, but let us explore a hypothetical worst
- 11:47-case scenario for a moment. Okay. What happens
- 11:50when an outdated rule in memory conflicts with
- 11:53a new skill? Claude basically has to guess which
- 11:56rule is the correct one. That guessing game heavily
- 11:59degrades the model's overall reasoning performance.
- 12:02It burns compute cycles just trying to resolve
- 12:04the internal logical conflict. It might choose
- 12:07the outdated memory instead of the new skill.
- 12:09Exactly. Inflicting rules force the AI to guess,
- 12:12which kills accuracy. Sponsor. So we have deleted
- 12:17the clutter. and stop repeating ourselves entirely.
- 12:20We have embraced progressive disclosure to keep
- 12:22the initial context extremely light. Right. Where
- 12:26do the surviving instructions actually live in
- 12:28this new system? Let us stack the LEGO blocks
- 12:30of data right now to explain it. OK. Anthropic
- 12:32recommends four distinct homes for your contextual
- 12:35information moving forward. Think of this as
- 12:37building a very stable, structured foundation.
- 12:40The first home is the system prompt itself. Think
- 12:43of this as the green LEGO base plate. holding
- 12:46everything together. Perfect analogy. This is
- 12:48exclusively for product -wide behavior and absolute
- 12:52general limits. You want to keep all of your
- 12:54mandatory constraints right here. This includes
- 12:56unbreakable rules for security, sensitive data,
- 13:00and production access. It also includes strict
- 13:02restrictions on editing protected core system
- 13:05files. Right. If a rule keeps the system safe,
- 13:08it lives on the baseplate. Task -specific instructions
- 13:11should never be in the system prompt at all.
- 13:13Never. The second home is the ClaudeD .md file
- 13:18in your repository. These are the foundational
- 13:20Lego bricks that build the basic walls. This
- 13:22file should briefly explain what the repository
- 13:25actually does overall. It is for lightweight,
- 13:28non -obvious repository gotchas and weird internal
- 13:31details. It explains the cultural quirks of your
- 13:33specific development team. For example, stating
- 13:36that shared types must stay in one specific file.
- 13:39Or explaining that certain legacy files should
- 13:41never be edited by AI. But here's the gold and
- 13:43rule for this specific foundation layer. Do not
- 13:46repeat things Claude can clearly see in the code
- 13:48itself. Keep this file lightweight and focused
- 13:51only on the hidden, invisible rules. Exactly.
- 13:55The third home involves specialized workflows
- 13:57known as skills. Think of these as the specialized
- 14:00custom LEGO pieces for specific actions. These
- 14:04are complex standards that are specific to your
- 14:07team or product. You might create separate skills
- 14:09for code review or production verification. You
- 14:12could have entirely different skills for security
- 14:14checks or software releases. Claude will load
- 14:16these skill files only when they are actively
- 14:19needed. Right. If a skill becomes too long, keep
- 14:22skill .md as a guide. Then move the highly detailed
- 14:25instructions into smaller supporting text files.
- 14:28Exactly. The fourth and final home is the references
- 14:31section of the architecture. Think of this as
- 14:33the instruction manual showing the final LEGO
- 14:35model. This is task -specific data that never
- 14:38becomes permanent context for the AI. You give
- 14:41Claude existing code to follow for the current
- 14:43active task. You provide test suites that clearly
- 14:46define the expected software behavior. You can
- 14:48even provide HTML mock -ups that show the required
- 14:51design structure. Specifications and quality
- 14:54rubrics also go directly into this temporary
- 14:57reference layer. Anthropic heavily recommends
- 14:59using real code when possible for these references.
- 15:02It gives Claude clear, high -fidelity structural
- 15:05instructions to work against directly. A rubric
- 15:07can also show Claude what a genuinely strong
- 15:10result looks like. Right. And verifier agents
- 15:12can then use that exact same criteria for final
- 15:15review. It creates a perfect loop of creation
- 15:18and automated quality verification. It really
- 15:21does. Let us pause and think about the design
- 15:23aspect for a second. OK. Why use an HTML mockup
- 15:27as a reference instead of just describing the
- 15:29design? Because human language is incredibly
- 15:31imprecise when describing visual layouts. Saying
- 15:34make the button pop means absolutely nothing
- 15:36to a machine. Exactly. HTML provides high fidelity
- 15:40structural instructions that AI models understand
- 15:43natively. It is much more accurate than a screenshot
- 15:45or a written text description. It leaves far
- 15:48less room for creative misinterpretation by the
- 15:51AI model. Code speaks louder than words for an
- 15:53AI. It really does. And the best part is you
- 15:56can implement this structure today. You can actually
- 15:58prompt Claude. to reorganize your current messy
- 16:00setup entirely. Yeah, you do not have to sort
- 16:03through all of your files manually. You can just
- 16:05use a simple slash doctor command in Claude code.
- 16:08It will identify duplicates and preserve all
- 16:11your vital security rules automatically. It will
- 16:14review the existing files and remove unnecessary
- 16:16overlapping instructions. It literally sorts
- 16:19everything into this nice four layer Lego cake
- 16:22for you. It acts as an automated janitor for
- 16:24your messy context window. Right, it identifies
- 16:27instructions that are duplicated, outdated, or
- 16:30logically conflicting. It finds things that are
- 16:33already perfectly clear from the code base itself.
- 16:36Then it moves each instruction to the exact right
- 16:38context layer automatically. Mandatory safeguards
- 16:41stay securely anchored in the main system prompt.
- 16:44Specialized workflows move cleanly into the modular
- 16:47skill section for later use. As a project grows,
- 16:50its context always collects repeated, outdated
- 16:53instructions. That is just the natural entropy
- 16:55of software development over time. adding another
- 16:58rule, you should review your entire setup carefully.
- 17:01Compare your system prompt, skills, and Claude
- 17:05.md files regularly. Remove rules Claude can
- 17:08already understand from the existing code structure
- 17:10alone. Keep the workspace clean and the model
- 17:12will perform significantly better. To sex silence.
- 17:16Let us take a moment to summarize this overarching
- 17:19philosophy. It is so important. Context engineering
- 17:22for Claude 5 models is fundamentally an exercise
- 17:26in restraint. Right. We have to fight the urge
- 17:28to control every single variable. Every single
- 17:31instruction needs a clear purpose and a very
- 17:34clear place. Check what Claude can infer before
- 17:37adding a single new rule anywhere. If the code
- 17:40already explains it, delete the rule from your
- 17:42prompt. A simpler setup gives the model room
- 17:44to actually use its judgment. It reduces logical
- 17:47conflicts and keeps the context window much lighter
- 17:50overall. It allows the AI to breathe and analyze
- 17:53the actual problem presented. It is about finally
- 17:55trusting the model to do what it was trained
- 17:58to do. We do not need to hold its hand every
- 18:00single step of the way anymore. We just need
- 18:02to give it a clean, well -lit room to work inside.
- 18:05Here's a final provocative thought to leave you
- 18:07with today. These new models are designed to
- 18:10adapt to your existing engineering culture. They
- 18:13perfectly match the density and style of your
- 18:16current code base. They essentially hold a digital
- 18:18mirror up to your own daily work. Yeah. So if
- 18:22these new models naturally adapt to the existing
- 18:25culture, right, what does your messy undocumented
- 18:28code say about you to the AI? Are we finally
- 18:32being forced to be much better writers overall?
- 18:35Just so the AI does not learn all of our bad
- 18:38habits. It is a terrifying but absolutely necessary
- 18:42mirror for all of us today. It forces us to elevate
- 18:45our own standards before asking for help. It
- 18:47really does. Open up your own Claude setup later
- 18:50today if you possibly can. I might have. See
- 18:52if you can safely delete 80 % of your system
- 18:54prompt. Trust the model to read the room and
- 18:57watch how it performs. Thanks for exploring this
- 18:59deep dive with us today. Keep your contacts light.
- 19:02And your curiosity deep. Out T -Row music.