Master Claude, Chapter 4: Context Persistence with Claude Projects — Solving the AI Amnesia Problem

This is the fourth post in a chapter-by-chapter series on Master Claude Chat, Cowork and Code: From Prompting to Operational AI. The previous post was Chapter 3: Understanding Entropy and Prompting Fundamentals, where we covered why prompts fail, XML-structured prompting, chain-of-thought reasoning, and multishot examples.

Chapter 4 is the chapter that saved me the most time. Not because it describes the most advanced technique — it does not — but because it eliminates the single most wasteful pattern in AI-assisted work: re-explaining your project from scratch every time you open a new conversation.

I used to spend the first five to ten minutes of every Claude session re-establishing context. Here is our architecture. Here are our naming conventions. Here is how we handle errors. Here is our testing approach. Multiply that by six or seven conversations a day, five days a week, and you are losing hours to what the book calls the "AI amnesia problem." Chapter 4 is the fix.


The AI amnesia problem

Every conversation with Claude starts fresh. You explain your codebase architecture, provide example outputs, establish coding conventions, and set up detailed instructions. Then you close the tab, open a new conversation, and repeat the entire process.

The cost compounds fast. A software architect reviewing API design patterns might spend twenty minutes setting up context about system constraints, existing patterns, and design philosophy. Starting a second conversation requires recreating that context from scratch. Over a week, a developer might spend four or five hours simply re-explaining their project across multiple conversations.

More critically, this context reset prevents the development of domain-specific expertise. When you work with a human expert over time, they internalize your conventions, preferred approaches, and architectural decisions. They ask better questions because they understand your context. An AI without persistent context can never build that familiarity — every conversation is day one.

Claude Projects was designed specifically to solve this problem.

💡 Key idea: A Claude Project is a persistent container that maintains three layers of context: system context (custom instructions that shape every interaction), a knowledge base (uploaded documents and reference materials), and conversation history (preserved and searchable across sessions).

The three-layer instruction framework

The chapter spends significant time on how to design effective custom project instructions, and this is where I found the most practical value. The book introduces a three-layer framework:

Foundation layer: The core purpose and constraints of the project. "This project maintains a Python library for computer vision tasks. It is used by research teams and production systems, so stability and backwards compatibility are critical."

Patterns layer: Your specific conventions. "We use the feature_branch → develop → main workflow. Code must pass flake8 linting and have 90%+ test coverage. Documentation is generated via Sphinx from docstrings."

Operational layer: How you work. "We deploy on Tuesdays. Use semantic versioning. Database schema changes require migration files. Performance-critical code needs benchmarking comparisons."

The chapter includes complete examples of custom instructions for a real-time analytics platform — covering everything from language choices and naming conventions to performance expectations and error handling patterns. Once those instructions are set, every conversation within the project automatically respects them. You stop repeating yourself and start getting useful output from the first message.

I will not reproduce the full example instructions from the book — they span several pages and include the reasoning behind each section — but the difference between a project with well-designed custom instructions and one without is dramatic. With good instructions, you write: "Add a new endpoint to retrieve user analytics." Without them, you write three paragraphs of context before you can even ask the question.


Anti-patterns that waste your time

The section on anti-patterns is one I wish I had read before setting up my first project. The book catalogs four common mistakes:

The Instruction Dump. Uploading your entire employee handbook, all fifty pages of architectural documentation, and comprehensive style guides as custom instructions. This overwhelms Claude with information, making it harder to identify what is truly essential. The fix: distill custom instructions to the most important patterns — typically two to three pages maximum. Use the knowledge base for comprehensive reference materials.

Implementation Details Instead of Patterns. Listing specific file paths, server hostnames, or individual team members. This makes instructions brittle — they break when infrastructure changes. The fix: focus on architectural patterns and conventions, not specifics.

Contradictions with Uploaded Documentation. Custom instructions that describe one pattern while example code in your knowledge base shows a different pattern. Claude gets confused and sometimes follows the examples instead. The fix: ensure your uploaded examples follow the patterns described in custom instructions.

Rules Focused on Prohibition. Instructions that are mostly "don't do X, don't do Y, never do Z." This creates confusion about what to do. The fix: frame instructions as guidance toward correct patterns. Instead of "don't write raw SQL queries," write "all database access uses the repository pattern defined in data/repositories.py."

⚠ Warning: If you put everything from your company into a single massive project, the context becomes overwhelming and Claude struggles to prioritize relevant information. If you create too many tiny projects, you lose the benefits of persistent context. The principle: everything within a project should share common context, patterns, and goals.

Team collaboration and shared context

The real power of Projects emerges when teams collaborate. Instead of each developer creating separate conversations with Claude, your entire team works within a shared project that maintains consistent context.

The chapter walks through a practical workflow: a backend team creates a "Platform Backend" project with shared context about their microservices architecture, database schemas, testing requirements, and deployment process. Individual developers create conversations within this project for specific tasks. Because they are all in the same project, Claude gives consistent answers that respect the team's established patterns.

The benefits are clearest in code reviews. When a developer shares a code change for review, Claude reviews it with full understanding of your architectural decisions, naming conventions, testing requirements, and performance expectations — without anyone having to re-explain them.

For onboarding, new team members join the shared project and immediately have access to all the context the team has established. They can see how previous similar problems were solved by looking at conversation history. The chapter claims this dramatically accelerates onboarding, and in my experience, it does.

The book also covers managing multi-team projects — when to use separate projects (teams with distinct responsibilities) versus shared projects (teams that need to collaborate intensively) — and the practical approach of starting with focused projects and consolidating only when genuine collaboration demands it.

💡 Key idea: Maintain a CONTEXT_CHANGELOG file in your knowledge base documenting major context changes. Unlike code, project context changes do not have built-in version tracking. A simple changelog prevents confusion when team members notice inconsistencies between instructions and old examples.

What Chapter 4 sets up

By the end of this chapter, you will understand how Claude Projects solve the AI amnesia problem with persistent context across conversations, the three-layer instruction framework for designing effective custom instructions, how to build a knowledge base that defines patterns without overwhelming the model, the four anti-patterns that waste time and how to avoid them, and how to structure team collaboration with shared project context.

Chapter 4 is the first chapter in Part II — Mastering Claude Chat. It establishes the foundational capability that makes every subsequent Chat technique more powerful: context that persists. Chapter 5 builds on this with Artifacts for rapid prototyping, turning Claude Chat from a conversation tool into an interactive development environment.

Next in this series: Chapter 5 — Rapid Prototyping with Artifacts. We will cover how Artifacts collapse the feedback loop between ideation and execution, creating live web applications, React components, SVG diagrams, and interactive visualizations directly inside the Claude interface.


📖 Get the complete book

All twenty chapters, the full three-layer instruction framework, complete custom instruction examples, hands-on workflows for Claude Chat, Cowork, and Code, plus the CLI reference, CLAUDE.md templates, MCP examples, and security checklist.

Get Master Claude Chat, Cowork and Code on Amazon →

2026-03-05

Sho Shimoda

I share and organize what I’ve learned and experienced.