How ivanchernykh/codespace works
CodeSpace is a local-first repository intelligence engine. The core workflow indexes a repository into a semantic graph, then searches that graph or compiles a token-bounded context pack with Context Cell knowledge and redaction; impact analysis and decision history provide adjacent workflows. CLI, MCP, REST, and the embedded dashboard expose these capabilities, with workspace, settings, skills, events, and export support. Edges below are limited to explicit README relationships or references visible in sampled source; some documented subsystems have no verified internal wiring in the excerpts.
Main entry points: application.rs Action registry · server.rs Local daemon · indexer.rs Code indexer · context.rs Context packs
Components 27
Repository index
- Code indexer
src/indexer.rs - Language parsers
src/parser.rs - Semantic graph model
src/model.rs - Index storage
src/storage.rs
Context and analysis
- Symbol search
src/search.rs - Context Cells
src/context_cells.rs - Context packs
src/context.rs - Git impact analysis
src/impact.rs - Decision memory
src/memory.rs - Graph export
src/export.rs - Secret redaction
src/secret.rs
User interfaces
- CLI actions
src/cli.rs - Local daemon
src/server.rs - Dashboard client
dashboard/src/api.ts - Dashboard UI
dashboard/src/main.ts - MCP tools
src/mcp.rs - REST API
src/rest.rs - Action registry
src/application.rs
Local operations
- Workspace manager
src/workspace.rs - Settings
src/settings.rs - Skills platform
src/skills.rs - Event bus
src/events.rs - Task management
src/tasks.rs - External MCP manager
src/mcp_manager.rs - GitHub integration
src/github_integration.rs
Other components
- Engineer
- Project repository
Connections 35
- Engineer → CLI actions: runs actions
README.md - Engineer → Dashboard UI: uses dashboard
README.md - Project repository → Code indexer: indexes source
README.md - Code indexer → Language parsers: parses languages
src/indexer.rs - Code indexer → Index storage: persists graph
src/indexer.rs - Code indexer → Semantic graph model: builds graph
src/indexer.rs - Index storage → Semantic graph model: loads and saves
src/storage.rs - CLI actions → Action registry: dispatches
- Local daemon → Action registry: dispatches
src/server.rs - Dashboard UI → Dashboard client: requests data
- Dashboard client → Local daemon: calls REST
dashboard/src/api.ts - MCP tools → Action registry: exposes actions
- REST API → Action registry: exposes actions
- Action registry → Code indexer: updates index
src/application.rs - Action registry → Index storage: initializes and saves
src/application.rs - Action registry → Symbol search: finds symbols
src/application.rs - Action registry → Context packs: builds packs
src/application.rs - Action registry → Git impact analysis: analyzes changes
src/application.rs - Action registry → Decision memory: records decisions
src/application.rs - Action registry → Graph export: exports graph
src/application.rs - Context packs → Symbol search: ranks symbols
src/context.rs - Context packs → Context Cells: uses cell evidence
src/context.rs - Context packs → Secret redaction: redacts content
src/context.rs - Symbol search → Semantic graph model: queries graph
src/search.rs - Git impact analysis → Semantic graph model: traverses relationships
src/impact.rs - Decision memory → Index storage: persists decisions
- Local daemon → Workspace manager: manages workspaces
src/server.rs - Local daemon → Event bus: publishes updates
src/server.rs - Local daemon → External MCP manager: manages servers
src/server.rs - Local daemon → Skills platform: serves skills
src/server.rs - Local daemon → Settings: serves settings
src/server.rs - Local daemon → Task management: serves tasks
src/server.rs - Local daemon → GitHub integration: serves GitHub features
src/server.rs - Engineer → MCP tools: connects MCP client
README.md - Engineer → REST API: calls REST
README.md