Skip to main content
command CX Codex

diff-docs — Claude Code command: what it does, how to install

diff-docs compares local snapshots of official Anthropic documentation against a baseline without network requests.

CC-BY-SA-4.0 ★ 6,529 updated 2026-10-22

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/diff-docs.md
Open on GitHub

What diff-docs does

The command calls the diff_official_docs MCP tool to analyze two local index files of about 50KB each. It outputs added pages, removed sections, modified sections with line deltas and the first altered line, alongside a count of unchanged pages. Everything runs strictly offline.

The command depends on existing local files. If the baseline is missing, you must run /ccguide:init-docs first. If no current snapshot is found, it prompts you to generate one with /ccguide:refresh-docs.

What it helps with

  • inspect differences across Anthropic documentation snapshots
  • spot added or removed manual sections without internet access
  • check line deltas and the initial altered line in local index files

Example prompts for the agent

  • /diff-docs
  • Compare the documentation baseline against the current snapshot using /diff-docs

How to install diff-docs

Manually: put the files in place

.claude/commands/diff-docs.md

Call it with /diff-docs. For all projects use ~/.claude/commands/

Questions about diff-docs

How to install diff-docs in Claude Code?

Place the command definition file at .claude/commands/diff-docs.md.

Does diff-docs require network access?

No, it reads local index files of about 50KB through the diff_official_docs MCP tool without sending network requests.

What commands are needed before running diff-docs?

Run /ccguide:init-docs if no baseline exists yet, and run /ccguide:refresh-docs if there is no current snapshot to compare.

Similar slash commands

All slash commands for Writing and docs →

From the same set45

The whole set →
search-docs search-docs searches official Anthropic Claude Code documentation by keywords via a local MCP tool. CX Codex +1 ★ 6,529repo stars refresh-docs refresh-docs fetches Anthropic’s official Claude Code docs and replaces the current snapshot. Use it to check changes against the saved baseline. CX Codex +1 ★ 6,529repo stars init-docs init-docs pulls the official Anthropic documentation into a local cache and marks that copy as the baseline snapshot for later diffs. CX Codex +1 ★ 6,529repo stars source-command-ccguide-refresh-docs source-command-ccguide-refresh-docs refreshes the current snapshot of official Anthropic Codex docs and previews changes against the baseline. Use it when the docs snapshot needs an update. CX Codex +1 ★ 6,529repo stars source-command-ccguide-init-docs The source-command-ccguide-init-docs skill calls the init_official_docs MCP tool to pull Anthropic's official documentation down and keep a baseline copy in a local cache. CX Codex +1 ★ 6,529repo stars source-command-ccguide-diff-docs source-command-ccguide-diff-docs — a skill for Claude Code and Codex that compares a baseline Anthropic docs snapshot against the current one. Reads local index files only, so no network call is made. CX Codex +1 ★ 6,529repo stars daily A daily digest of Anthropic docs diffs and Claude Code CLI releases. CX Codex +1 ★ 6,529repo stars whitepaper-coherence whitepaper-coherence is a Claude Code subagent that checks a whitepaper for logical consistency. It runs on requests to audit a file or inspect its reasoning. CX Codex ★ 6,529repo stars

Project sponsors

Companies that keep this analytics open