Skip to content

09: Beating the Knowledge Cutoff

35 minutes | You need: a library or API you work with that has changed recently

Claude’s training data has a cutoff date — and it knows nothing about your internal libraries, private APIs, or proprietary frameworks. If a public library released a breaking change last month, Claude doesn’t know. If your company has an internal SDK, Claude has never seen it. If a framework renamed a method, Claude will confidently use the old name.

You can’t fix the cutoff. But you can bring the knowledge to Claude — by building local documentation that lives in your project and loads into context when needed. This applies equally to public libraries that changed after the cutoff and to internal tools that were never in the training data to begin with.

Many libraries now publish an llms.txt file — a condensed, LLM-friendly version of their docs at a known URL. Before doing any research, check if one exists:

Fetch https://[library-docs-site]/llms.txt and save it to docs/references/[library].md

For example:

  • https://code.claude.com/docs/llms.txt — Claude Code docs
  • https://docs.astro.build/llms.txt — Astro framework
  • https://ui.shadcn.com/llms.txt — shadcn/ui

If no llms.txt exists, you build the documentation yourself — or let an MCP server do the lookup for you.

2. Use Context7 for on-demand library docs

Section titled “2. Use Context7 for on-demand library docs”

Context7 is an MCP server that acts as a live documentation lookup service. It indexes thousands of libraries and serves version-specific, LLM-optimized documentation snippets on demand — think of it as a searchable llms.txt for the entire ecosystem.

Instead of manually fetching and saving docs, you ask Claude a question and Context7 automatically pulls the relevant documentation into context:

How do I set up server actions in Next.js 15?

Claude queries Context7, gets the current docs for that specific feature and version, and answers with up-to-date information — no manual research step.

To install:

Terminal window
claude mcp add context7 -- npx -y @upstash/context7-mcp@latest

3. Build a local reference from web research

Section titled “3. Build a local reference from web research”

Pick a library or API your project depends on where Claude’s knowledge is stale or incomplete. Tell Claude to research and write a local doc:

Research the current documentation for [library] v[version] at [docs-url].
Focus on: API changes since v[old-version], migration guide, and the patterns
we use (list them).
Write a reference doc to docs/references/[library]-v[version].md that I can
@-reference in future sessions.

Claude will fetch the documentation, extract the relevant parts, and write a structured reference file. In future sessions:

@docs/references/[library]-v[version].md Update our auth module to use the new API.

Some documentation sites block automated requests — they return CAPTCHAs, require JavaScript rendering, or check user agents. Claude’s WebFetch tool can’t get through.

The Chrome extension solves this. It gives Claude access to a real browser that renders JavaScript, handles cookies, and looks like a normal user:

Use the Chrome browser to go to [docs-url/specific-page], read the content
about [topic], and save a summary to docs/references/[topic].md

For your own codebase, Claude can generate documentation that helps future sessions (and new team members) understand the system:

Analyze the entire codebase and write docs/ARCHITECTURE.md covering:
- System overview and purpose
- Major components and their responsibilities
- Data flow for the 3 most important user journeys
- Key architectural decisions and their rationale
- External dependencies and integration points
- Directory structure with brief descriptions
This will be @-referenced in future sessions, so optimize for what Claude
needs to understand before making changes.

For complex research where a single agent would hit its limits — or where you want breadth across multiple sources — use the diamond pattern: fan out to N research agents, each writing to their own file, then fan in with one agent that synthesizes the results.

I need comprehensive research on [topic]. Launch 3 research agents in parallel:
Agent 1: Research [angle 1] and write findings to docs/research/[topic]-[angle1].md
Agent 2: Research [angle 2] and write findings to docs/research/[topic]-[angle2].md
Agent 3: Research [angle 3] and write findings to docs/research/[topic]-[angle3].md
When all three are done, launch a fourth agent to read all three files and
produce a unified docs/research/[topic]-summary.md that:
- Deduplicates overlapping findings
- Resolves contradictions (flag any it can't resolve)
- Organizes by theme, not by source agent
- Highlights actionable recommendations

Real example — evaluating a framework migration:

Launch 3 research agents in parallel:
Agent 1: Research Next.js App Router migration from Pages Router.
Focus on breaking changes and gotchas. Write to docs/research/nextjs-breaking.md
Agent 2: Research Next.js App Router performance patterns — caching, streaming,
parallel routes. Write to docs/research/nextjs-performance.md
Agent 3: Research our current codebase (use subagent to explore src/pages/)
and catalog every pattern that will need to change. Write to docs/research/nextjs-our-patterns.md
When done, synthesize all three into docs/research/nextjs-migration-plan.md

Variations:

  • 2 agents for simpler research (e.g., “current state” + “best practices”)
  • 5+ agents for large-scale audits (one per module/service)
  • Iterative diamond — run a second round of agents that build on the first synthesis

The pattern across all these techniques is the same: externalize knowledge into files, reference files instead of re-researching.

TechniqueWhen to useOutput
llms.txtLibrary has one publishedDirect download, minimal effort
Context7 MCPQuick lookups of public library docsOn-demand, no saved file needed
Web research → local docStale knowledge, internal APIs, heavy reusedocs/references/[lib].md
Chrome browserBlocked sites, JS-rendered docsSame, via real browser
Architecture docOnboarding Claude to your codebasedocs/ARCHITECTURE.md
Diamond researchComplex topics needing breadthN research files + synthesis

At least one local reference document created from live sources. Understanding of the diamond research pattern for complex investigations.

Playbook M04 — Context Engineering for advanced context management strategies. Playbook M10 — Agent Teams for coordinating multi-agent research at scale.