claude_code_docs_map.md

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

It shows a practical fix for LLM tools' weakest spot, answering questions about themselves, using a Markdown docs index, a pattern other vendors could copy today.

Read this as

Simon Willison highlights that Anthropic's Claude Code, a coding assistant, answers questions about its own features well. When asked about something like its 'hooks' feature, it fetches a Markdown index of Anthropic's documentation (claude_code_docs_map.md) and reads the relevant pages. This follows the llms.txt idea: give AI a simple index of your docs. Other AI tools, including ChatGPT, still answer questions about themselves poorly because their training data is out of date.

Anthropic has shipped a Markdown docs index, claude_code_docs_map.md, that its Claude Code tool automatically consults when users ask about the tool itself, its system prompt, which Willison intercepted, hardcodes the URL. This makes product self-documentation a competitive detail: users get accurate answers without human support. The pattern (llms.txt) is free to adopt, and companies whose tools can't self-explain look worse by comparison.

Claude Code's system prompt instructs it to WebFetch https://docs.claude.com/en/docs/claude_code_docs_map.md whenever a user asks about Claude Code features. That file is a 25.9KB Markdown index of the docs, following the llms.txt convention; the agent then fetches specific pages, e.g. a 2.2MB hooks page, to answer. Willison extracted the system prompt via claude-trace. ChatGPT and Claude.ai lack equivalent self-documentation fetches.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Claude Code claude_code_docs_map.md hooks llms.txt ChatGPT claude-trace

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading