How 777genius/claude-code-source-code-full works
This repository is a Claude Code terminal assistant source snapshot, with an additional MCP server for exploring that snapshot. The primary documented workflow is a user working with Claude through the CLI to inspect and change code, run commands, and manage Git; the excerpts show the query engine delegating to the query loop and session persistence, but do not show the full CLI entrypoint or tool-execution path. The graph also preserves documented command, permission, bridge, and service areas. Several subsystem paths are supported by the tree and README, but their internal calls were not sampled, so those links are omitted.
Main entry points: QueryEngine.ts Query engine · sessionStorage.ts Session storage · server.ts Explorer MCP server · commands.ts Slash commands
Components 18
CLI interaction
- Terminal interface
src/ink/components/App.tsx - Slash commands
src/commands.ts
Assistant runtime
- Query engine
src/QueryEngine.ts - Query loop
src/query.ts - Tool contracts
src/Tool.ts - Permission handling
src/components/permissions/FilePermissionDialog/usePermissionHandler.ts - Session state
src/bootstrap/state.ts - Session storage
src/utils/sessionStorage.ts - Portable transcript reads
src/utils/sessionStoragePortable.ts - Configuration
src/utils/settings/settings.ts
Integrations
- IDE bridge
src/bridge - MCP connections
src/services/mcp/MCPConnectionManager.tsx - Language servers
src/services/lsp/LSPServerManager.ts - Remote sessions
src/remote/RemoteSessionManager.ts
Snapshot explorer
- Explorer MCP server
mcp-server/src/server.ts
Other components
- Terminal user
- MCP client
- Source snapshot
Connections 8
- Terminal user → Terminal interface: uses terminal
README.md - Slash commands → Query engine
src/QueryEngine.ts - Query engine → Query loop: calls
src/QueryEngine.ts - Query engine → Session storage: flushes sessions
src/QueryEngine.ts - Query engine → Session state: reads session state
src/QueryEngine.ts - Session storage → Portable transcript reads: reads transcripts
src/utils/sessionStorage.ts - MCP client → Explorer MCP server: explores snapshot
README.md - Explorer MCP server → Source snapshot: reads source
README.md