How Claude Code answers question about Claude Code
It is interesting to see how Claude Code refers to it’s own internal docs in when you ask a question related to Claude Code.
Basically, they maintain a claude_code_docs_map.md file which has links to other docs - you can think of it sort of like sitemap with TLDR context.
And uses WebFetch tool to further fetch the urls based on that markdown file. Like this π
And here Claude Code system prompt π
When the user directly asks about Claude Code (eg. “can Claude Code do…”, “does Claude Code have…”), or asks in second person (eg. “are you able…”, “can you do…”), or asks how to use a specific Claude Code feature (eg. implement a hook, or write a slash command), use the WebFetch tool to gather information to answer the question from Claude Code docs. The list of available docs is available at https://docs.claude.com/en/docs/claude-code/claude_code_docs_map.md.