The coding project serves as a central knowledge hub that provides cross-project insights, patterns, and workflows through a central graph database. This ensures that learned experiences are available across ALL projects on a developer's machine.
The system provides two complementary paths for knowledge capture:
- Automatic (Continuous Learning): Real-time extraction from live coding sessions via StreamingKnowledgeExtractor
- Manual (UKB): Deliberate, structured capture via interactive CLI tool
Both paths converge at the central graph database, ensuring all knowledge is available across all projects.
The system captures knowledge through TWO complementary approaches:
What: Automatic extraction during live coding sessions
When: As you code, in real-time
How: StreamingKnowledgeExtractor monitors LSL transcript
Storage: GraphDatabaseService.storeEntity() → central graph DB
Example Flow:
// During your coding session:
User: "How do I implement authentication?"
Assistant: [provides solution]
// StreamingKnowledgeExtractor automatically:
1. Classifies exchange type (solution/pattern/problem)
2. Extracts key knowledge
3. Stores to: coding/.data/knowledge-graph/
with node ID: "curriculum:AuthenticationSolution"
4. Auto-exports to: coding/.data/knowledge-export/curriculum.jsonBenefits:
- ✅ Zero effort - happens automatically
- ✅ Captures in-the-moment context
- ✅ Budget-aware (configurable monthly cap)
- ✅ Privacy-first (sensitive data → local models)
See: Continuous Learning System Documentation
What: Explicit capture of architectural decisions and deep insights
When: End of session, after solving complex problems
How: Type "ukb" in Claude chat → Claude calls MCP semantic-analysis tool
Storage: Same GraphDatabaseService.storeEntity() → central graph DB
Example Flow:
# After solving a complex problem, in Claude chat:
User: "ukb"
# Claude detects request and calls:
mcp__semantic-analysis__execute_workflow
workflow_name: "incremental-analysis"
# 14-Agent System executes:
1. GitHistoryAgent - analyzes recent commits
2. VibeHistoryAgent - analyzes session logs
3. SemanticAnalysisAgent - extracts insights
4. WebSearchAgent - researches patterns
5. InsightGenerationAgent - creates structured insights
6. ObservationGenerationAgent - adds observations
7. QualityAssuranceAgent - validates quality
8. PersistenceAgent - stores to GraphDB
9. DeduplicationAgent - prevents duplicates
10. CoordinatorAgent - orchestrates workflow
# Stores to central database
# Auto-export: .data/knowledge-export/coding.json (5s debounced)
# Checkpoint: .data/ukb-last-run.json (team-wide sync)
Benefits:
- ✅ Deep, structured insights via AI analysis
- ✅ Architectural decision records
- ✅ Team-wide knowledge sharing
- ✅ Deliberate, high-quality capture
- ✅ 14-agent semantic analysis workflow
See: MCP Semantic Analysis Documentation
| Aspect | Continuous Learning | Semantic Analysis |
|---|---|---|
| Capture | Automatic, real-time | Manual trigger, AI-driven |
| Quality | Good, contextual | Excellent, AI-analyzed |
| Effort | Zero | Low (just type "ukb") |
| Use Case | In-the-moment solutions | Architectural decisions |
| Timing | During coding | After reflection |
Result: Comprehensive knowledge base with both breadth (automatic) and depth (manual).
-
Central Graph Database (
coding/.data/knowledge-graph/)- ONE database per machine - shared by ALL projects
- LevelDB for fast persistent storage
- Graphology for in-memory graph operations
- Team isolation via node ID pattern:
${team}:${entityName} - Location: ALWAYS at
coding/.data/knowledge-graph/
-
Git-Tracked JSON Exports (
coding/.data/knowledge-export/*.json)- Pretty JSON format for PR review and team collaboration
- One file per team:
coding.json,ui.json,resi.json, etc. - Bidirectional sync with graph database
- Auto-export on changes (5s debounce)
- Auto-import on startup
-
Path Resolution (
knowledge-paths.js)- Uses
CODING_TOOLS_PATHenvironment variable (set bybin/coding) - Ensures ALL projects resolve to same central database
- No per-project databases - only team isolation via node IDs
- Uses
When you run coding from ANY project:
cd /Users/you/Agentic/curriculum-alignment
coding --claudeThe system:
- Sets
CODING_TOOLS_PATH=/Users/you/Agentic/codingenv variable - All knowledge operations resolve to
coding/.data/knowledge-graph/ - Auto-imports latest JSON exports into graph database
- VKB server (if running) shows knowledge from central database
From curriculum-alignment project:
ukb --interactive # Writes to coding/.data/knowledge-graph/
vkb # Reads from coding/.data/knowledge-graph/From nano-degree project:
ukb --interactive # SAME database: coding/.data/knowledge-graph/
vkb # SAME database: coding/.data/knowledge-graph/Result: ALL projects share the same knowledge base, isolated by team via node IDs.
Happens automatically during every coding session:
# Just code normally - knowledge extraction happens automatically!
cd /Users/you/Agentic/curriculum-alignment
coding --claude
# As you interact with Claude:
# - StreamingKnowledgeExtractor monitors LSL transcript
# - Classifies exchanges (solution/pattern/problem/insight)
# - Extracts knowledge in real-time
# - Stores to central graph DB
# - Auto-exports to JSON (5s debounce)No user action required - runs in background with budget limits.
For deliberate, structured insights:
# Automatic capture from git commits
ukb --auto
# Interactive capture for deep insights
ukb --interactiveBoth systems store to central graph DB with team prefix:
- Working in curriculum-alignment → stores as
curriculum:EntityName - Working in coding → stores as
coding:EntityName - Working in nano-degree → stores as
nano-degree:EntityName
Same database, same export mechanism, different capture methods.
- Runtime: Central LevelDB at
coding/.data/knowledge-graph/ - Auto-export: Writes pretty JSON to
coding/.data/knowledge-export/${team}.json(debounced 5s) - Git: Commit and push JSON exports for team sharing
- Auto-import: Pulls latest JSON on session startup
Reusable solutions that work across multiple projects:
- ConditionalLoggingPattern
- ViewportCullingPattern
- ReduxStateManagementPattern
- NetworkAwareInstallationPattern
Standard workflows and processes:
- ClaudeCodeStartupPattern
- UKB Command Execution
- VKB Command Execution
Specific learnings from problem-solving:
- Bug fixes with broad applicability
- Performance optimizations
- Architecture decisions
Fundamental system behaviors:
- SharedKnowledgeBasePattern
- MCPKnowledgeIntegrationPattern
coding --claude # Sets CODING_TOOLS_PATH env variableThis ensures:
- All knowledge operations point to central database
- Environment variables properly configured
- Services (VKB, LSL) properly initialized
Before solving a problem, check if a pattern exists:
# Visual browse (works from ANY project)
vkb
# Or check JSON exports
cat /Users/you/Agentic/coding/.data/knowledge-export/coding.json | jq '.entities[] | select(.entityType | contains("Pattern"))'When you solve something that could help in other projects:
ukb --interactive
# Provide detailed context and mark high significance
# Automatically saved to central database and exported to JSONWhen creating project-specific CLAUDE.md files:
## Related Patterns
- ReduxStateManagementPattern - for React state management
- ConditionalLoggingPattern - for debug logging# Ensure local knowledge is current
cd $PROJECT_ROOT
git pull # Gets latest JSON exports from team
# Next coding session auto-imports on startup
coding --claude-
Capture insights with
ukb(from any project) -
Auto-export creates JSON at
coding/.data/knowledge-export/${team}.json -
Commit JSON exports:
cd /Users/you/Agentic/coding git add .data/knowledge-export/ git commit -m "docs: update ${team} knowledge base" git push
-
Team members pull and get instant access on next session startup
Periodically review captured patterns:
vkb # Visual review (works from any project)
# Look for patterns that need refinement or consolidationIf patterns seem missing:
- Check you started with
coding --claude(setsCODING_TOOLS_PATH) - Verify central database exists:
ls -la /Users/you/Agentic/coding/.data/knowledge-graph/ - Check JSON exports:
ls -la /Users/you/Agentic/coding/.data/knowledge-export/ - Run
vkbto browse visual knowledge graph
If knowledge seems out of sync:
- Pull latest from git:
cd /Users/you/Agentic/coding && git pull - Restart coding session:
coding --claude(auto-imports JSON) - Check auto-export: Verify
.data/knowledge-export/*.jsonfiles updated - Manual sync if needed: Use
graph-syncCLI tool
If knowledge not available across projects:
- Verify environment variable:
echo $CODING_TOOLS_PATHshould show/Users/you/Agentic/coding - Check path resolution: All projects must resolve to same central DB
- Verify no per-project databases: Only
coding/.data/knowledge-graph/should exist - Team isolation working: Node IDs should use pattern
${team}:${entityName}
✅ Consistency: All projects see the same knowledge ✅ No sync issues: One source of truth ✅ Fast access: In-memory graph operations ✅ Team isolation: Node ID prefixes prevent conflicts
✅ Code review: Pretty JSON diffs in PRs ✅ Version control: Full history of knowledge evolution ✅ Team collaboration: Push/pull workflow ✅ Conflict resolution: Newest-wins automatic merging
✅ Agent-agnostic: Works with Claude, Copilot, Cursor, any tool ✅ Direct access: No server dependency ✅ Portable: LevelDB files are cross-platform ✅ Simple: Fewer moving parts
The central knowledge base is your persistent, cross-project memory shared by ALL development activities on your machine. Use it, contribute to it, and let it accelerate your development across all projects!
