MCP doesn't automatically create good context.
It delivers capabilities.
The real question remains:
What should the agent retrieve?
Good plumbing can't compensate for noisy retrieval.
#ContextEngineering #MCP #AIAgents #SigMap
MCP doesn't automatically create good context.
It delivers capabilities.
The real question remains:
What should the agent retrieve?
Good plumbing can't compensate for noisy retrieval.
#ContextEngineering #MCP #AIAgents #SigMap
A confident answer isn't necessarily a grounded answer.
Ask:
Does the symbol exist?
Does the file exist?
Does the evidence support the claim?
Confidence is generated.
Grounding is verified.
#ContextEngineering #AIAgents #SigMap
A confident answer isn't necessarily a grounded answer.
Ask:
Does the symbol exist?
Does the file exist?
Does the evidence support the claim?
Confidence is generated.
Grounding is verified.
#ContextEngineering #AIAgents #SigMap
Not all context deserves equal attention.
🔥 Hot:
Code relevant now.
❄️ Cold:
Useful background, rarely needed.
Keep hot context close.
Retrieve cold context on demand.
Don't carry the whole repository everywhere.
#ContextEngineering #AIAgents #SigMap
Not all context deserves equal attention.
🔥 Hot:
Code relevant now.
❄️ Cold:
Useful background, rarely needed.
Keep hot context close.
Retrieve cold context on demand.
Don't carry the whole repository everywhere.
#ContextEngineering #AIAgents #SigMap
Context engineering isn't one prompt.
It's a system:
Intent → Retrieve → Budget → Reason → Verify → Measure
Once context becomes infrastructure, AI coding becomes much more predictable.
#ContextEngineering #AIEngineering #SigMap
Context engineering isn't one prompt.
It's a system:
Intent → Retrieve → Budget → Reason → Verify → Measure
Once context becomes infrastructure, AI coding becomes much more predictable.
#ContextEngineering #AIEngineering #SigMap
Don't retrieve everything upfront.
Start small.
Need more?
Expand one dependency.
Still unclear?
Follow another relationship.
Context should grow with evidence—not anxiety.
#ContextEngineering #AIAgents #SigMap
Don't retrieve everything upfront.
Start small.
Need more?
Expand one dependency.
Still unclear?
Follow another relationship.
Context should grow with evidence—not anxiety.
#ContextEngineering #AIAgents #SigMap
Retrieval shouldn't just return code.
It should answer:
Why this file?
Why this symbol?
What relationship made it relevant?
Context without evidence is harder to trust.
#ContextEngineering #RepoIntelligence #SigMap
Retrieval shouldn't just return code.
It should answer:
Why this file?
Why this symbol?
What relationship made it relevant?
Context without evidence is harder to trust.
#ContextEngineering #RepoIntelligence #SigMap
Working on payments?
Start with payments.
Not the entire monorepo.
Scope:
Repository → Module → Task
Smaller search spaces mean fewer irrelevant tokens and fewer wrong turns.
#ContextEngineering #Monorepo #SigMap
Working on payments?
Start with payments.
Not the entire monorepo.
Scope:
Repository → Module → Task
Smaller search spaces mean fewer irrelevant tokens and fewer wrong turns.
#ContextEngineering #Monorepo #SigMap
Stale context can be worse than missing context.
Missing context causes exploration.
Stale context creates confidence in the wrong map.
Repository intelligence must evolve when the code evolves.
#ContextEngineering #RepoIntelligence #SigMap
Stale context can be worse than missing context.
Missing context causes exploration.
Stale context creates confidence in the wrong map.
Repository intelligence must evolve when the code evolves.
#ContextEngineering #RepoIntelligence #SigMap
Repository changed?
Update the affected context.
Don't rebuild everything.
Don't wait for a scheduled refresh.
Good context systems react to change.
Freshness should be event-driven.
#ContextEngineering #Git #AIAgents #SigMap
Repository changed?
Update the affected context.
Don't rebuild everything.
Don't wait for a scheduled refresh.
Good context systems react to change.
Freshness should be event-driven.
#ContextEngineering #Git #AIAgents #SigMap
Context should have a budget.
Simple task?
2K may be enough.
Complex architecture?
Maybe 10K.
Don't ask:
"How much fits?"
Ask:
"What's the smallest context that preserves the answer?"
#ContextEngineering #TokenEconomics #SigMap
Context should have a budget.
Simple task?
2K may be enough.
Complex architecture?
Maybe 10K.
Don't ask:
"How much fits?"
Ask:
"What's the smallest context that preserves the answer?"
#ContextEngineering #TokenEconomics #SigMap
"AI hallucinated."
Don't stop there.
Check:
Fake symbol?
Fake file?
Invented API?
Wrong parameter?
Unsupported claim?
Groundedness can be tested against repository evidence.
#ContextEngineering #AIAgents #SigMap
"AI hallucinated."
Don't stop there.
Check:
Fake symbol?
Fake file?
Invented API?
Wrong parameter?
Unsupported claim?
Groundedness can be tested against repository evidence.
#ContextEngineering #AIAgents #SigMap
Don't measure AI coding only by output quality.
Track:
• context size
• prompts/task
• retrieval accuracy
• cost/task
• time/task
If context engineering works, those numbers should move.
#ContextEngineering #AIEngineering #SigMap
Don't measure AI coding only by output quality.
Track:
• context size
• prompts/task
• retrieval accuracy
• cost/task
• time/task
If context engineering works, those numbers should move.
#ContextEngineering #AIEngineering #SigMap
Don't go:
Repository → AI
Go:
Repository
↓
Module
↓
File
↓
Symbol
↓
Implementation
Each step removes irrelevant context.
By the time AI sees code, most noise should already be gone.
#ContextEngineering #AIAgents #SigMap
Don't go:
Repository → AI
Go:
Repository
↓
Module
↓
File
↓
Symbol
↓
Implementation
Each step removes irrelevant context.
By the time AI sees code, most noise should already be gone.
#ContextEngineering #AIAgents #SigMap
Context compression shouldn't mean:
"Remove useful information."
It should mean:
"Represent useful information with fewer tokens."
Signatures, relationships and ranked context preserve signal while dropping noise
#ContextEngineering #TokenEconomics #SigMap
Context compression shouldn't mean:
"Remove useful information."
It should mean:
"Represent useful information with fewer tokens."
Signatures, relationships and ranked context preserve signal while dropping noise
#ContextEngineering #TokenEconomics #SigMap
Finding "RankingEngine.score()" is step one.
Now ask:
Who calls it?
What does it call?
What depends on it?
Code becomes useful context when you understand its relationships.
#ContextEngineering #CodeRelationships #SigMap
Finding "RankingEngine.score()" is step one.
Now ask:
Who calls it?
What does it call?
What depends on it?
Code becomes useful context when you understand its relationships.
#ContextEngineering #CodeRelationships #SigMap
Before changing code, ask:
Who depends on this?
Finding the target is only half the job.
Understanding the blast radius tells you what the change could break.
Navigate → Impact → Edit.
#ContextEngineering #BlastRadius #SigMap
Before changing code, ask:
Who depends on this?
Finding the target is only half the job.
Understanding the blast radius tells you what the change could break.
Navigate → Impact → Edit.
#ContextEngineering #BlastRadius #SigMap
Don't start by loading implementation.
Start with structure:
What exists?
Where?
Who calls it?
What does it call?
Then open implementation only where needed.
Structure first.
Details on demand.
#ContextEngineering #RepoIntelligence #SigMap
Don't start by loading implementation.
Start with structure:
What exists?
Where?
Who calls it?
What does it call?
Then open implementation only where needed.
Structure first.
Details on demand.
#ContextEngineering #RepoIntelligence #SigMap
The AI produced an answer.
Now verify it.
Do those files exist?
Are those symbols real?
Are the parameters correct?
Is the answer grounded in retrieved context?
Generate → Verify.
#ContextEngineering #AIAgents #SigMap
The AI produced an answer.
Now verify it.
Do those files exist?
Are those symbols real?
Are the parameters correct?
Is the answer grounded in retrieved context?
Generate → Verify.
#ContextEngineering #AIAgents #SigMap
Changed 4 files?
Don't rebuild context from 4,000.
Start with the diff.
Then expand outward only when dependencies require it.
Context should grow with evidence, not repository size.
#ContextEngineering #Git #AIAgents #SigMap
Changed 4 files?
Don't rebuild context from 4,000.
Start with the diff.
Then expand outward only when dependencies require it.
Context should grow with evidence, not repository size.
#ContextEngineering #Git #AIAgents #SigMap
Traditional workflow:
Search → open → wrong file → retry.
Better workflow:
Question → rank relevant code → inspect only what matters.
Exploration has a token cost.
Make retrieval earn every file it opens.
#ContextEngineering #AgentNavigation #SigMap
Traditional workflow:
Search → open → wrong file → retry.
Better workflow:
Question → rank relevant code → inspect only what matters.
Exploration has a token cost.
Make retrieval earn every file it opens.
#ContextEngineering #AgentNavigation #SigMap
An agent may not need a 2,000-line file.
It may need:
AuthService.login()
→ TokenService.issue()
→ SessionStore.save()
Symbols preserve structure without dragging every implementation detail into context.
#ContextEngineering #AIAgents #SigMap
An agent may not need a 2,000-line file.
It may need:
AuthService.login()
→ TokenService.issue()
→ SessionStore.save()
Symbols preserve structure without dragging every implementation detail into context.
#ContextEngineering #AIAgents #SigMap
Keep sessions focused.
Good:
Auth → JWT → Claims → Refresh
Bad:
Auth → Terraform → Search → Databricks
Every topic jump carries old context into a new problem.
Focused sessions preserve signal.
#ContextEngineering #AIAgents #SigMap
Keep sessions focused.
Good:
Auth → JWT → Claims → Refresh
Bad:
Auth → Terraform → Search → Databricks
Every topic jump carries old context into a new problem.
Focused sessions preserve signal.
#ContextEngineering #AIAgents #SigMap
Context starts before your prompt.
Extensions.
MCP servers.
Open repos.
Tool output.
A noisy workspace can make an AI session expensive before question #1.
Reduce the environment before optimizing the prompt.
#ContextEngineering #MCP #SigMap
Context starts before your prompt.
Extensions.
MCP servers.
Open repos.
Tool output.
A noisy workspace can make an AI session expensive before question #1.
Reduce the environment before optimizing the prompt.
#ContextEngineering #MCP #SigMap
Your question might be 10 words.
But the model may receive:
• code
• chat history
• tool output
• system instructions
The prompt is often the smallest part of the request.
Optimize what surrounds it.
#ContextEngineering #AIAgents #SigMap
Your question might be 10 words.
But the model may receive:
• code
• chat history
• tool output
• system instructions
The prompt is often the smallest part of the request.
Optimize what surrounds it.
#ContextEngineering #AIAgents #SigMap