Home
cd ../playbooks
Product ManagementAdvanced

Context Engineering Advisor

Diagnose whether you're doing context stuffing (volume without intent) or context engineering (structure for attention). Build memory architecture, define context boundaries, and implement the Research → Plan → Reset → Implement cycle.

15 minutes
By communitySource
#ai-agents#context-engineering#rag#memory-architecture#prompt-engineering#llm-design

You pasted the entire PRD, all the user interviews, and last quarter's meeting notes into Claude — and the response is still vague and hedged. That's not a prompt problem. It's an architecture problem: volume ≠ quality, and context windows aren't free.

Who it's for: PMs whose AI outputs feel mediocre despite stuffing huge context, AI engineers designing agent workflows, product leaders building AI-powered features, anyone burning tokens without seeing accuracy gains, teams with agent chains that pass everything downstream

Example

"My AI outputs are mediocre even though I'm giving it lots of information — diagnose what's wrong" → Run 5 diagnostic questions, produce a Context Manifest (persist vs. retrieve vs. exclude), design two-layer memory architecture, and apply Research→Plan→Reset→Implement to eliminate context rot

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

# Context Engineering Advisor

Guide product managers through diagnosing whether they're doing **context stuffing** (jamming volume without intent) or **context engineering** (shaping structure for attention). Identify context boundaries, fix "Context Hoarding Disorder," and implement tactical practices like bounded domains, episodic retrieval, and the Research→Plan→Reset→Implement cycle.

**Key Distinction:** Context stuffing assumes volume = quality ("paste the entire PRD"). Context engineering treats AI attention as a scarce resource and allocates it deliberately.

## Context Stuffing vs. Context Engineering

| Dimension | Context Stuffing | Context Engineering |
|-----------|------------------|---------------------|
| **Mindset** | Volume = quality | Structure = quality |
| **Approach** | "Add everything just in case" | "What decision am I making?" |
| **Persistence** | Persist all context | Retrieve with intent |
| **Agent Chains** | Share everything between agents | Bounded context per agent |
| **Failure Response** | Retry until it works | Fix the structure |
| **Economic Model** | Context as storage | Context as attention (scarce resource) |

## Five Markers of Context Stuffing

1. Reflexively expanding context windows ("Just add more tokens!")
2. Persisting everything "just in case" — no clear retention criteria
3. Chaining agents without boundaries — Agent A passes everything to B to C
4. Adding evaluations to mask inconsistency
5. Normalized retries — "It works if you run it 3 times" becomes acceptable

**Why It Fails:** Reasoning Noise degrades multi-hop logic. Context Rot (dead ends + errors + irrelevant data) causes goal drift. Models prioritize beginning and end ("Lost in the Middle"). Accuracy drops below 20% past ~32k tokens.

## Core Principles

1. Context without shape becomes noise
2. Structure > Volume
3. Retrieve with intent, not completeness
4. Small working contexts (like short-term memory)
5. Context Compaction: Maximize density of relevant information per token

```
Efficiency = (Accuracy × Coherence) / (Tokens × Latency)
```

**Key Finding:** Using RAG with 25% of available tokens preserves 95% accuracy while significantly reducing latency and cost.

## The 5 Diagnostic Questions

1. **What specific decision does this support?** — If you can't answer, you don't need it
2. **Can retrieval replace persistence?** — Just-in-time beats always-available
3. **Who owns the context boundary?** — If no one, it'll grow forever
4. **What fails if we exclude this?** — If nothing breaks, delete it
5. **Are we fixing structure or avoiding it?** — Stuffing often masks bad information architecture

## Memory Architecture: Two-Layer System

**Short-Term (Conversational):** Immediate interaction history; summarized/truncated older parts; single session lifespan.

**Long-Term (Persistent):** User preferences, key facts, operational glossary, constraints registry. Implemented via vector database. Two types:
- **Declarative:** Facts ("I'm vegan")
- **Procedural:** Behavioral patterns ("I debug by checking logs first")

## The Research → Plan → Reset → Implement Cycle

1. **Research:** Agent gathers data → large, chaotic context window
2. **Plan:** Agent synthesizes into high-density SPEC.md or PLAN.md
3. **Reset:** **Clear entire context window** (prevents context rot)
4. **Implement:** Fresh session using **only** the high-density plan

## Application

Ask context questions, diagnose symptoms, walk through the 5 diagnostic questions, and deliver:

- Context Manifest template (what's always-included, what's retrieved, what's excluded)
- Two-layer memory architecture blueprint
- PLAN.md template for the Reset cycle
- Prioritized action plan: immediate fixes → foundation building → long-term optimization

## Context Manifest Template

```markdown
# Context Manifest: [Product/Feature Name]

## Always Persisted (Core Context)
- Product constraints (technical, regulatory)
- User preferences (role, permissions)
- Operational glossary (20 key terms)

## Retrieved On-Demand (Episodic Context)
- Historical PRDs (semantic search)
- User interview transcripts
- Competitive analysis

## Excluded (Out of Scope)
- Meeting notes older than 30 days
- Full codebase (use code search instead)
- Marketing materials

## Boundary Owner: [Name]
## Last Reviewed: [Date]
## Next Review: [Date + 90 days]
```

## Common Pitfalls

1. **"Infinite Context" Marketing vs. Reality** — Accuracy drops past ~32k tokens; treat tokens as scarce
2. **Retrying Instead of Restructuring** — If retries are common, structure is broken
3. **No Context Boundary Owner** — Ad-hoc decisions → unbounded growth
4. **Mixing Always-Needed with Episodic** — Persist only what's needed in 80%+ of interactions
5. **Skipping the Reset Phase** — Context rot poisons implementation

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Diagnoses whether your AI workflows are doing "context stuffing" (jamming volume without intent) or "context engineering" (shaping structure for attention). Identifies context boundaries, builds a two-layer memory architecture, and implements the Research→Plan→Reset→Implement cycle to prevent context rot.

Not prompt engineering — information architecture design.


Quick Start

mkdir -p ~/Documents/ContextEngineering
mv ~/Downloads/CLAUDE.md ~/Documents/ContextEngineering/
cd ~/Documents/ContextEngineering
claude

Describe your current AI workflow and symptoms. Claude walks you through the 5 diagnostic questions and produces a Context Manifest + action plan.


The 5 Diagnostic Questions

  1. What specific decision does this support?
  2. Can retrieval replace persistence?
  3. Who owns the context boundary?
  4. What fails if we exclude this?
  5. Are we fixing structure or avoiding it?

If you can't answer #1 or #4, delete the context.


The Research → Plan → Reset → Implement Cycle

  1. Research — chaotic context allowed, gather broadly
  2. Plan — synthesize into a high-density SPEC.md
  3. Resetclear the entire context window
  4. Implement — fresh session using only the plan

This is the fix for context rot. Skipping the Reset is why agents "lose the thread" on long tasks.


Five Markers of Context Stuffing

  • Reflexively expanding context windows
  • Persisting everything "just in case"
  • Chaining agents without boundaries
  • Adding evaluations to mask inconsistency
  • Normalized retries ("it works if you run it 3 times")

Accuracy drops below 20% past ~32k tokens. Using RAG with 25% of available tokens preserves 95% accuracy.


Tips & Best Practices

  • Treat tokens as scarce. "Infinite context" marketing doesn't match engineering reality.
  • Retrieve with intent, not completeness. If information is referenced in <20% of interactions, retrieve it; don't persist it.
  • Assign a context boundary owner. Without one, context grows indefinitely.
  • Run quarterly context audits. Re-apply the 5 diagnostic questions.
  • If you're retrying prompts 3+ times, don't tune the prompt — fix the structure.

Common Pitfalls

  • Believing more tokens = better outputs (they don't past ~32k)
  • Normalizing retries instead of restructuring
  • Passing full context between chained agents
  • Mixing always-needed and episodic context in the same layer
  • Skipping the Reset phase and letting context rot poison implementation

$Related Playbooks

Product Management

Director Readiness Advisor

Coach the PM-to-Director transition with 4 situational branches — preparing, interviewing, newly landed, or recalibrating — and deliver war-story-backed guidance calibrated to your specific stage.

10 minutes
Advanced
Product Management

Discovery Interview Prep

Design a customer discovery interview plan with the right methodology, questions, and bias guardrails — calibrated to your research goal, segment, and constraints via 4 adaptive questions.

15 minutes
Intermediate
Product Management

Discovery Process (End-to-End)

Run a complete 6-phase discovery cycle — frame, research, synthesize, generate, validate, decide — in 3-4 weeks. Orchestrates 10+ component skills for problem-to-validated-solution workflow.

30 minutes
Advanced
Product Management

Customer Journey Map

Build a strategic customer journey map across Awareness → Consideration → Decision → Service → Loyalty — with actions, touchpoints, emotions, KPIs, business goals, and owning teams per stage.

20 minutes
Intermediate
Product Management

Customer Journey Mapping Workshop

Run a 5-question adaptive workshop to build a customer journey map — actor, scenario, phases, actions/emotions, and prioritized opportunities — that aligns cross-functional teams around real pain points.

15 minutes
Intermediate
Product Management

End-of-Life (EOL) Message

Write a clear, empathetic EOL announcement with customer-benefit rationale, explicit impact acknowledgment, transition support, and specific timeline — maintaining trust through product retirements.

10 minutes
Beginner
Product Management

Epic Breakdown Advisor (Humanizing Work)

Break epics into user stories using the Humanizing Work methodology — INVEST validation, 9 splitting patterns applied sequentially, and evaluation criteria that expose low-value work.

15 minutes
Intermediate
Product Management

Epic Hypothesis (Lean UX)

Frame epics as falsifiable if/then hypotheses with tiny discovery experiments and 2-4 week validation measures — so you can kill bad ideas before committing engineering.

10 minutes
Intermediate
Product Management

Lean UX Canvas (v2)

Jeff Gothelf's 8-box one-page tool for framing work around the business problem, not the solution — surface assumptions, write testable hypotheses, and plan the smallest experiment before committing to build.

20 minutes
Intermediate
Product Management

VP/CPO Executive Onboarding Playbook (30-60-90)

Run the first 90 days as diagnosis, not execution — Month 1 Diagnose, Month 2 Validate, Month 3 Act with Evidence. Plus Phase 0 CEO interview questions for evaluating the offer.

25 minutes
Advanced
Product Management

Feature Investment Advisor

Evaluate whether to build a feature using revenue connection, cost structure, ROI, and strategic value. Delivers build / build-strategic / don't-build / build-later recommendations with supporting math.

15 minutes
Advanced
Product Management

Finance-Based Pricing Advisor

Evaluate pricing changes (increases, tiers, add-ons, discounts) using ARPU, conversion, churn risk, NRR, and CAC payback math — before you ship the change.

15 minutes
Advanced

Browse all Product Management playbooks →