codebase-md: Tool auto-generates CLAUDE.md with git hook maintenance

✍️ OpenClawRadar📅 Published: March 8, 2026🔗 Source
codebase-md: Tool auto-generates CLAUDE.md with git hook maintenance
Ad

Tool overview

codebase-md is a Python tool that automatically generates and maintains CLAUDE.md files for projects using Claude Code. Version 0.1.0 is in alpha and MIT licensed.

Installation and basic usage

Install with AST support: pip install "codebase-md[ast]"

Scan and generate: codebase scan . followed by codebase generate .

Generated content

The tool creates CLAUDE.md with:

  • Architecture pattern detection (monolith, monorepo, microservice, CLI, etc.)
  • Auto-detected conventions including naming style, import patterns, and design patterns via tree-sitter AST
  • Dependency health checks against PyPI/npm registries
  • Git insights with contributor analysis and file hotspots
  • Smart context routing for Claude to query relevant codebase parts

Additional features

Generates configuration files for other tools: .cursorrules, AGENTS.md, codex.md, and .windsurfrules from the same scan.

Git hook installation: codebase hooks install . keeps generated files fresh automatically.

Ad

Dependency intelligence

Includes deps command for dependency management:

  • codebase deps . - Full health dashboard
  • codebase deps . --offline - Local scoring only, skips registry calls
  • codebase deps . --upgrade fastapi - Upgrade plan for specific packages

The dependency system checks pinned versions against registries and flags stale packages, poorly maintained packages, and breaking changes in upgrade paths.

Development details

The tool was built using Claude Code for architecture decisions, tree-sitter AST integration, TF-IDF context ranking system, and a 354-test suite. The project's own CLAUDE.md was generated by codebase-md.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also