/chitta:codebase-learnfrom chitta
Two-phase codebase learning: extracts AST symbols via tree-sitter (C++ tool), then Claude adds architectural SSL patterns for relationships and design decisions.
Ships in chitta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two-phase codebase understanding:
learn_codebase): AST extraction, provenance, hierarchical state[codebase-learn] tool + understanding
phase1: learn_codebase→tree-sitter→symbols+triplets+hierarchy
handles: parsing, storage, provenance, staleness tracking
output: Symbol nodes, file→contains→symbol triplets, ModuleState
phase2: Claude→architecture→SSL patterns
handles: why, how, relationships between components
output: Wisdom nodes with [LEARN] markers
Tree-sitter parsers available:
.c, .h, .cpp, .hpp, .cc, .cxx, .hxx.py, .pyw.js, .jsx, .mjs, .ts, .tsx.go.rs.java.rb.cschitta learn_codebase --path /path/to/project --project myproject
This single command:
Output:
Learned codebase: myproject
Files: 47 analyzed (of 52 found)
Symbols: 1234 stored
Triplets: 2567 created
Modules: 15 bootstrapped
Hierarchical State Modules:
Mind @include/chitta/mind.hpp
Storage @include/chitta/storage.hpp
...
After learn_codebase runs, I add architectural understanding:
[LEARN] [myproject] Mind→orchestrator→recall/observe/grow API
[ε] Central class managing tiered storage + embeddings + graph. @mind.hpp:52
[TRIPLET] Mind uses TieredStorage
[TRIPLET] Mind uses HierarchicalState
[TRIPLET] Mind provides recall
[LEARN] [myproject] HierarchicalState→token compression→3-level injection
[ε] L0=ProjectEssence(50t) + L1=ModuleState(20t) + L2=PatternState(10t)
[TRIPLET] HierarchicalState contains ProjectEssence
[TRIPLET] injection_protocol saves tokens
SSL captures what AST can't:
When code changes:
# Re-learn (only re-analyzes changed files with incremental: true default)
chitta learn_codebase --path /path/to/project
# Force full re-index if needed
chitta learn_codebase --path /path/to/project --force true
Incremental tracking means:
--force true to re-index everythingTraditional: inject full code context (~thousands of tokens)
Smart context approach:
View codebase structure:
chitta codebase_overview --project myproject
# Step 1: C++ tool does the heavy lifting
chitta learn_codebase --path /path/to/cc-soul/chitta --project cc-soul
# Step 2: I add architectural SSL
[LEARN] [cc-soul] chitta→semantic memory substrate→tiered storage + SSL + triplets
[ε] C++ daemon: hot/warm/cold storage, JSON-RPC socket, Hebbian learning.
[TRIPLET] chitta contains Mind
[TRIPLET] Mind orchestrates recall
[TRIPLET] Mind orchestrates observe
[LEARN] [cc-soul] provenance→staleness tracking→source_path+hash→Fresh|MaybeStale|Stale
[ε] Two-phase: immediate MaybeStale marking, background verification.
[TRIPLET] Node has provenance
[TRIPLET] provenance tracks staleness
The daemon automatically generates semantic descriptions for symbols using a local LLM (Ollama/vLLM):
# Check enrichment status
chitta soul_context # Shows pending count at startup
# Query described symbols
chitta recall --query "memory storage class" --tag code-intel
Enrichment progress:
ChittaField @store.rs:29Daemon options:
chittad daemon --enrich-interval 2 --enrich-batch 10 # defaults
chittad daemon --no-enrich # disable enrichment
After running:
recall("Mind architecture") → finds Symbol nodes AND architectural SSLrecall("memory storage") → finds enriched code descriptionscodebase_overview --project cc-soul → see full structure at a glancequery --subject Mind → find all Mind relationshipssearch_symbols --query "storage" → semantic search across symbolsThe soul knows both structure (symbols) and meaning (SSL + semantic descriptions).
What SKILL.md sets; muted values are Claude Code's defaults
inheritReadbash ${CLAUDE_PLUGIN_ROOT}/hooks/codebase-learn-post-read.sh10sThree short reads, in order
TypeScript, JavaScript, Python, Rust, Go, Java, Ruby, C++
npx claudepluginhub genomewalker/chitta --plugin chitta31 skills in this plugin
/antahkaranaMulti-perspective reasoning through cognitive voices/cc-soul-daemonStart, stop, or check the chittad daemon/cc-soul-mcpConfigure chitta MCP server for direct tool access (mcp__chitta__*)/cc-soul-setupSet up chitta with a source build when a compiler is available, or pre-built binaries/cc-soul-shutdownGracefully stop the chitta daemon/cc-soul-updateUpdate chitta binaries (builds from source, falls back to pre-built)Other plugins' skills for the same job
2 plugins ship this exact skill · first indexed Jun 2, 2026