Crates.io | ccat |
lib.rs | ccat |
version | 0.1.1 |
created_at | 2025-06-06 21:05:10.263794+00 |
updated_at | 2025-06-06 21:05:10.263794+00 |
description | CLAUDE.md Context Analyzer - A comprehensive tool for analyzing and managing Claude Code memory files |
homepage | https://github.com/nwiizo/ccat |
repository | https://github.com/nwiizo/ccat |
max_upload_size | |
id | 1703464 |
size | 138,556 |
A comprehensive command-line tool for analyzing and managing Claude Code memory files (CLAUDE.md).
cd tools/ccat
cargo build --release
cargo install --path .
# Show memory files in current directory
ccat
# Show memory files with tree view
ccat show -f tree
# Include subdirectories
ccat show -s
# Show only specific types
ccat show -t project,user
# Run diagnostics
ccat diagnose
# Search for patterns
ccat search "TODO"
# Initialize new CLAUDE.md
ccat init
# Show with metadata
ccat show --show-metadata
# Export to JSON
ccat export -f json -o context.json
# Watch for changes
ccat watch --notify
# Validate with strict rules
ccat validate --strict
show
- Display memory files (default)ccat show [OPTIONS] [PATH]
Options:
-f, --format <FORMAT> Output format [text|json|tree|raw]
-t, --type <TYPE> Filter by type (project, user, local, subdir)
-c, --content-only Show content only
-n, --no-imports Don't expand imports
-s, --include-subdirs Include subdirectories
-d, --max-depth <N> Maximum directory depth
--show-metadata Show file metadata
diagnose
- Run diagnosticsccat diagnose [OPTIONS] [PATH]
Options:
--fix Auto-fix issues
--strict Use strict rules
--rules <RULES> Custom rule files
--ignore <PATTERN> Ignore patterns
search
- Search within contextsccat search [OPTIONS] <QUERY>
Options:
-r, --regex Use regex search
-i, --ignore-case Case insensitive
-w, --word Word boundaries
-A, --after <N> Show N lines after match
-B, --before <N> Show N lines before match
./CLAUDE.md
): Project-specific context~/.claude/CLAUDE.md
): Global user settings./CLAUDE.local.md
): Deprecated local overridesThe tool can detect:
# Fix issues with Claude
ccat diagnose --fix-with-claude | claude -p "Fix these issues"
# Generate optimized CLAUDE.md
ccat init --analyze-project | claude -p "Generate CLAUDE.md"
# Analyze team patterns
ccat analyze-team --dir=/repos | claude -p "Standardize configs"
Configuration file at ~/.config/ccat/config.toml
:
[display]
format = "tree"
color = "auto"
show_metadata = false
[diagnostics]
strict = false
auto_fix = false
rules = ["default"]
[performance]
parallel = true
cache_size = "100MB"
# Run tests
cargo test
# Run benchmarks
cargo bench
# Lint
cargo clippy
# Format
cargo fmt
MIT