Skip to content
rharper105 edited this page Apr 8, 2026 · 2 revisions

sourcebook

Extract the conventions, constraints, and architectural truths your AI coding agents keep missing.

npx sourcebook init

Generates CLAUDE.md and AGENTS.md — structured context files that work with Claude Code, Cursor, GitHub Copilot, OpenAI Codex, and Windsurf.


Pages

  • Changelog — version history and release notes
  • How It Works — what sourcebook scans and how output is generated
  • Output Formats — CLAUDE.md, AGENTS.md, .cursorrules, copilot-instructions.md
  • Commands — init, update, diff, watch, ask, serve

Quick Start

# Generate context files for your repo
npx sourcebook init /path/to/your/repo

# Re-analyze while preserving your manual edits
npx sourcebook update

# Preview what would change
npx sourcebook diff

# Watch for changes and auto-update
npx sourcebook watch

Links

Clone this wiki locally