Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
{
"started": "2026-09-09T21:45:04.069Z",
"project": "cbm-pr2068",
"origin": "http://127.0.0.1:9749",
"stages": [
{
"name": "architecture-overview",
"screenshot": "repair-architecture-overview.png",
"text": "CODEATLAS\nv0.0.1\ndirty\nExplore\nGalaxy\nArchitecture\nAgents\nSystem\nDaemon\nChat\nSearch\n⌘ / Ctrl K\nTools\nBrief\nExplained\ncbm-pr2068\n⌄\nProject events · cbm-pr2068\nLast checked 11:45:11 PM\nHistory (224 retained)\nInspect index coverage\n\nIndex coverage: 85 partially parsed paths · 0 skipped · 300 intentionally excluded.\n\ncbm-pr2068\nArchitecture\nRead by import order\nRefresh\nOverview\nDependencies\nEntry points\nRoutes\nHotspots\nView saved on this device\nReset view\n\nRepository map · source responsibilities and indexed connections\n\nEvidence legend\n1,498 indexed files · 62,142 retained edges · snapshot and limits\nRepository\nWhat this repository does\nPROJECT README · AUTHOR DESCRIPTION\nThe fastest and most efficient code intelligence engine for AI coding agents. Full-indexes an average repository in milliseconds, the Linux kernel (28M LOC, 75K files) in 3 minutes. Answers structural queries in under 1ms. Ships as a native executable with a small verified runtime-asset set for macOS, Linux, and Windows — download, run install, done.\nSource: README.md:17\nRead project README\nWhere to start\n\nIndex entry candidates, with roles inferred from file type and location. Select one to follow its static calls.\n\nFRONTEND · ENTRY CANDIDATE\nApp\ngraph-ui/src/App.tsx:747\nAPPLICATION · ENTRY CANDIDATE\nmain\nsrc/main.c:2546\nAPPLICATION · ENTRY CANDIDATE\nmain\npkg/pypi/src/codebase_memory_mcp/_cli.py:1288\nAPPLICATION · ENTRY CANDIDATE\nmain\ngraph-ui/spike/spike.js:152\nFollow static call paths from App · 3 paths across files\nComponents and responsibilities\n\nBoundaries follow source locations and are inferred. Descriptions quote source documentation; relationships come from indexed edges. Application areas appear before tests and tools.\n\nSOURCE AREA · INFERRED BOUNDARY\ninternal/cbm\n248 files · 0 entry candidates · 2268 exported symbols\nUsed by 6 areas · Depends on 9 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nFull declaration set for the same CBMArena, and it must precede cbm.h: internal/cbm/arena.h declares a subset and the two share the CBM_ARENA_H guard, so whichever is included first is the one this file sees.\nSource: internal/cbm/cbm.c:1\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/foundation\n65 files · 0 entry candidates · 574 exported symbols\nUsed by 17 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncompat_fs.h — Portable directory iteration, popen, and file operations. POSIX: thin wrappers around opendir/readdir, popen/pclose, mkdir, unlink. Windows: FindFirstFile/FindNextFile, _popen/_pclose, _mkdir, _unlink.\nSource: src/foundation/compat_fs.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/daemon\n24 files · 0 entry candidates · 773 exported symbols\nUsed by 5 areas · Depends on 8 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ndaemon.h — Process-local coordination and wire framing for the CBM daemon. Transport and worker supervision live outside this module. The coordinator binds clients and resource subscriptions to transport connections, coalesces shared work, and defines the daemon's terminal shutdown transition.\nSource: src/daemon/daemon.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/pipeline\n43 files · 0 entry candidates · 984 exported symbols\nUsed by 7 areas · Depends on 12 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\npipeline.h — Indexing pipeline orchestrator. Orchestrates multi-pass indexing of a repository: 1. Structure: Project/Folder/Package/File nodes 2. Definitions: Extract + write nodes + build registry 3. Imports: Resolve import edges 4. Calls: Call resolution (registry + LSP) 5. Usages: Usage/type_ref edges 6. Semantic: Inherits/decorates/implements 7. Post: Tests, communities, HTTP links, config, git history Depends on: foundation, extraction, lsp, store, graph_buffer, discover\nSource: src/pipeline/pipeline.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/cli\n21 files · 0 entry candidates · 1036 exported symbols\nUsed by 13 areas · Depends on 7 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncli.h — CLI subcommand handlers for install, uninstall, update, version. Port of Go cmd/codebase-memory-mcp/ install/update/config logic. Functions accept explicit paths (home_dir, binary_path) rather than reading HOME internally, making them testable with temp directories.\nSource: src/cli/cli.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/store\n2 files · 0 entry candidates · 321 exported symbols\nUsed by 9 areas · Depends on 5 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nstore.h — Opaque SQLite graph store for code knowledge graphs. All functions are prefixed cbm_store_*. The store handle is opaque — callers never touch SQLite internals directly. Thread safety: a single store handle must not be used concurrently. Use one store per thread or external synchronization.\nSource: src/store/store.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/semantic\n6 files · 0 entry candidates · 83 exported symbols\nUsed by 4 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nsemantic.h — Algorithmic code embeddings for SEMANTICALLY_RELATED edges. Combines 11 signals into a unified similarity score without external models or dependencies. All signals derived from graph buffer metadata and the existing AST walk. Signals: 1. TF-IDF on metadata tokens (vocabulary overlap) 2. Random Indexing with co-occurrence (within-codebase synonym bridging) 3. MinHash structural (existing, decoded from \"fp\" property) 4. API Signature vectors (same callees → related) 5. Type Signature vectors (same param/return types → related) 6. M\nSource: src/semantic/semantic.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\ngraph-ui\n675 files · 991 entry candidates · 2509 exported symbols\nUsed by 22 areas · Depends on 3 areas\nPROJECT README · AUTHOR DESCRIPTION\nThis directory is the frontend that codebase-memory-mcp --ui=true serves.\nSource: graph-ui/README.md:5\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/mcp\n7 files · 0 entry candidates · 501 exported symbols\nUsed by 7 areas · Depends on 13 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nmcp.h — MCP (Model Context Protocol) server for codebase-memory-mcp. Implements JSON-RPC 2.0 over stdio with the MCP tool calling protocol. Provides 14 graph analysis tools (search, trace, query, index, etc.)\nSource: src/mcp/mcp.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/graph_buffer\n2 files · 0 entry candidates · 76 exported symbols\nUsed by 2 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ngraph_buffer.h — In-memory graph buffer for pipeline indexing. Holds all nodes and edges in RAM during indexing, then dumps to SQLite. Provides O(1) node lookup by qualified name and edge dedup by key. Depends on: foundation (hash_table, dyn_array), store (data structs)\nSource: src/graph_buffer/graph_buffer.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/ui\n22 files · 0 entry candidates · 321 exported symbols\nUsed by 6 areas · Depends on 11 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nhttp_server.h — Embedded HTTP server for the graph visualization UI. Binds to 127.0.0.1:<port> only (localhost). Serves embedded frontend assets and proxies /rpc to a dedicated read-only cbm_mcp_server_t instance. Runs in a background pthread, same pattern as the watcher thread.\nSource: src/ui/http_server.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/cypher\n2 files · 0 entry candidates · 188 exported symbols\nUsed by 3 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncypher.h — Public API for the Cypher query engine. Provides lexing, parsing, planning, and execution of a subset of Cypher queries against the cbm_store graph database. Supported syntax: MATCH (n:Label)-[:TYPE*1..3]->(m:Label {prop: \"val\"}) WHERE n.name =~ \".*pattern.*\" AND m.label = \"Function\" RETURN n.name, COUNT(m) AS cnt ORDER BY cnt DESC LIMIT 10\nSource: src/cypher/cypher.h:2\nExplore connections →\nAll 25 areas, including tests and tools\nIndex summary, layers and communities\nAbout this view\nserver ready\nConnection details",
"at": "2026-09-09T21:45:11.563Z"
},
{
"name": "static-call-paths",
"screenshot": "repair-static-call-paths.png",
"text": "CODEATLAS\nv0.0.1\ndirty\nExplore\nGalaxy\nArchitecture\nAgents\nSystem\nDaemon\nChat\nSearch\n⌘ / Ctrl K\nTools\nBrief\nExplained\ncbm-pr2068\n⌄\nProject events · cbm-pr2068\nLast checked 11:45:11 PM\nHistory (224 retained)\nInspect index coverage\n\nIndex coverage: 85 partially parsed paths · 0 skipped · 300 intentionally excluded.\n\ncbm-pr2068\nArchitecture\nRead by import order\nRefresh\nOverview\nDependencies\nEntry points\nRoutes\nHotspots\nView saved on this device\nReset view\n\nRepository map · source responsibilities and indexed connections\n\nEvidence legend\n1,498 indexed files · 62,142 retained edges · snapshot and limits\nRepository\nWhat this repository does\nPROJECT README · AUTHOR DESCRIPTION\nThe fastest and most efficient code intelligence engine for AI coding agents. Full-indexes an average repository in milliseconds, the Linux kernel (28M LOC, 75K files) in 3 minutes. Answers structural queries in under 1ms. Ships as a native executable with a small verified runtime-asset set for macOS, Linux, and Windows — download, run install, done.\nSource: README.md:17\nRead project README\nWhere to start\n\nIndex entry candidates, with roles inferred from file type and location. Select one to follow its static calls.\n\nFRONTEND · ENTRY CANDIDATE\nApp\ngraph-ui/src/App.tsx:747\nAPPLICATION · ENTRY CANDIDATE\nmain\nsrc/main.c:2546\nAPPLICATION · ENTRY CANDIDATE\nmain\npkg/pypi/src/codebase_memory_mcp/_cli.py:1288\nAPPLICATION · ENTRY CANDIDATE\nmain\ngraph-ui/spike/spike.js:152\nFollow static call paths from main · 3 paths across files\nStatic paths from main\nRead entry source\n\nEach step is a recorded CALLS edge. This shows possible reachability, not an observed runtime sequence or data flow.\n\nsrc\nmain\n→\nsrc/daemon\ncbm_project_lock_manager_new\n→\nsrc/foundation\ncbm_private_lock_directory_close\nInspect 2 call edges\nsrc\nmain\n→\nsrc/daemon\ncbm_project_lock_manager_new\n→\nsrc/foundation\ncbm_lock_registry_new\nInspect 2 call edges\nsrc\nmain\n→\nsrc/daemon\ncbm_version_cohort_manager_new\n→\nsrc/foundation\ncbm_mutex_init\nInspect 2 call edges\nComponents and responsibilities\n\nBoundaries follow source locations and are inferred. Descriptions quote source documentation; relationships come from indexed edges. Application areas appear before tests and tools.\n\nSOURCE AREA · INFERRED BOUNDARY\ninternal/cbm\n248 files · 0 entry candidates · 2268 exported symbols\nUsed by 6 areas · Depends on 9 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nFull declaration set for the same CBMArena, and it must precede cbm.h: internal/cbm/arena.h declares a subset and the two share the CBM_ARENA_H guard, so whichever is included first is the one this file sees.\nSource: internal/cbm/cbm.c:1\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/foundation\n65 files · 0 entry candidates · 574 exported symbols\nUsed by 17 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncompat_fs.h — Portable directory iteration, popen, and file operations. POSIX: thin wrappers around opendir/readdir, popen/pclose, mkdir, unlink. Windows: FindFirstFile/FindNextFile, _popen/_pclose, _mkdir, _unlink.\nSource: src/foundation/compat_fs.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/daemon\n24 files · 0 entry candidates · 773 exported symbols\nUsed by 5 areas · Depends on 8 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ndaemon.h — Process-local coordination and wire framing for the CBM daemon. Transport and worker supervision live outside this module. The coordinator binds clients and resource subscriptions to transport connections, coalesces shared work, and defines the daemon's terminal shutdown transition.\nSource: src/daemon/daemon.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/pipeline\n43 files · 0 entry candidates · 984 exported symbols\nUsed by 7 areas · Depends on 12 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\npipeline.h — Indexing pipeline orchestrator. Orchestrates multi-pass indexing of a repository: 1. Structure: Project/Folder/Package/File nodes 2. Definitions: Extract + write nodes + build registry 3. Imports: Resolve import edges 4. Calls: Call resolution (registry + LSP) 5. Usages: Usage/type_ref edges 6. Semantic: Inherits/decorates/implements 7. Post: Tests, communities, HTTP links, config, git history Depends on: foundation, extraction, lsp, store, graph_buffer, discover\nSource: src/pipeline/pipeline.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/cli\n21 files · 0 entry candidates · 1036 exported symbols\nUsed by 13 areas · Depends on 7 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncli.h — CLI subcommand handlers for install, uninstall, update, version. Port of Go cmd/codebase-memory-mcp/ install/update/config logic. Functions accept explicit paths (home_dir, binary_path) rather than reading HOME internally, making them testable with temp directories.\nSource: src/cli/cli.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/store\n2 files · 0 entry candidates · 321 exported symbols\nUsed by 9 areas · Depends on 5 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nstore.h — Opaque SQLite graph store for code knowledge graphs. All functions are prefixed cbm_store_*. The store handle is opaque — callers never touch SQLite internals directly. Thread safety: a single store handle must not be used concurrently. Use one store per thread or external synchronization.\nSource: src/store/store.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/semantic\n6 files · 0 entry candidates · 83 exported symbols\nUsed by 4 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nsemantic.h — Algorithmic code embeddings for SEMANTICALLY_RELATED edges. Combines 11 signals into a unified similarity score without external models or dependencies. All signals derived from graph buffer metadata and the existing AST walk. Signals: 1. TF-IDF on metadata tokens (vocabulary overlap) 2. Random Indexing with co-occurrence (within-codebase synonym bridging) 3. MinHash structural (existing, decoded from \"fp\" property) 4. API Signature vectors (same callees → related) 5. Type Signature vectors (same param/return types → related) 6. M\nSource: src/semantic/semantic.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\ngraph-ui\n675 files · 991 entry candidates · 2509 exported symbols\nUsed by 22 areas · Depends on 3 areas\nPROJECT README · AUTHOR DESCRIPTION\nThis directory is the frontend that codebase-memory-mcp --ui=true serves.\nSource: graph-ui/README.md:5\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/mcp\n7 files · 0 entry candidates · 501 exported symbols\nUsed by 7 areas · Depends on 13 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nmcp.h — MCP (Model Context Protocol) server for codebase-memory-mcp. Implements JSON-RPC 2.0 over stdio with the MCP tool calling protocol. Provides 14 graph analysis tools (search, trace, query, index, etc.)\nSource: src/mcp/mcp.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/graph_buffer\n2 files · 0 entry candidates · 76 exported symbols\nUsed by 2 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ngraph_buffer.h — In-memory graph buffer for pipeline indexing. Holds all nodes and edges in RAM during indexing, then dumps to SQLite. Provides O(1) node lookup by qualified name and edge dedup by key. Depends on: foundation (hash_table, dyn_array), store (data structs)\nSource: src/graph_buffer/graph_buffer.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/ui\n22 files · 0 entry candidates · 321 exported symbols\nUsed by 6 areas · Depends on 11 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nhttp_server.h — Embedded HTTP server for the graph visualization UI. Binds to 127.0.0.1:<port> only (localhost). Serves embedded frontend assets and proxies /rpc to a dedicated read-only cbm_mcp_server_t instance. Runs in a background pthread, same pattern as the watcher thread.\nSource: src/ui/http_server.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/cypher\n2 files · 0 entry candidates · 188 exported symbols\nUsed by 3 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncypher.h — Public API for the Cypher query engine. Provides lexing, parsing, planning, and execution of a subset of Cypher queries against the cbm_store graph database. Supported syntax: MATCH (n:Label)-[:TYPE*1..3]->(m:Label {prop: \"val\"}) WHERE n.name =~ \".*pattern.*\" AND m.label = \"Function\" RETURN n.name, COUNT(m) AS cnt ORDER BY cnt DESC LIMIT 10\nSource: src/cypher/cypher.h:2\nExplore connections →\nAll 25 areas, including tests and tools\nIndex summary, layers and communities\nAbout this view\nserver ready\nConnection details",
"at": "2026-09-09T21:45:11.762Z"
},
{
"name": "call-path-evidence",
"screenshot": "repair-call-path-evidence.png",
"text": "CODEATLAS\nv0.0.1\ndirty\nExplore\nGalaxy\nArchitecture\nAgents\nSystem\nDaemon\nChat\nSearch\n⌘ / Ctrl K\nTools\nBrief\nExplained\ncbm-pr2068\n⌄\nProject events · cbm-pr2068\nLast checked 11:45:11 PM\nHistory (224 retained)\nInspect index coverage\n\nIndex coverage: 85 partially parsed paths · 0 skipped · 300 intentionally excluded.\n\ncbm-pr2068\nArchitecture\nRead by import order\nRefresh\nOverview\nDependencies\nEntry points\nRoutes\nHotspots\nView saved on this device\nReset view\n\nRepository map · source responsibilities and indexed connections\n\nEvidence legend\n1,498 indexed files · 62,142 retained edges · snapshot and limits\nRepository\nWhat this repository does\nPROJECT README · AUTHOR DESCRIPTION\nThe fastest and most efficient code intelligence engine for AI coding agents. Full-indexes an average repository in milliseconds, the Linux kernel (28M LOC, 75K files) in 3 minutes. Answers structural queries in under 1ms. Ships as a native executable with a small verified runtime-asset set for macOS, Linux, and Windows — download, run install, done.\nSource: README.md:17\nRead project README\nWhere to start\n\nIndex entry candidates, with roles inferred from file type and location. Select one to follow its static calls.\n\nFRONTEND · ENTRY CANDIDATE\nApp\ngraph-ui/src/App.tsx:747\nAPPLICATION · ENTRY CANDIDATE\nmain\nsrc/main.c:2546\nAPPLICATION · ENTRY CANDIDATE\nmain\npkg/pypi/src/codebase_memory_mcp/_cli.py:1288\nAPPLICATION · ENTRY CANDIDATE\nmain\ngraph-ui/spike/spike.js:152\nFollow static call paths from main · 3 paths across files\nStatic paths from main\nRead entry source\n\nEach step is a recorded CALLS edge. This shows possible reachability, not an observed runtime sequence or data flow.\n\nsrc\nmain\n→\nsrc/daemon\ncbm_project_lock_manager_new\n→\nsrc/foundation\ncbm_private_lock_directory_close\nInspect 2 call edges\nsrc\nmain\n→\nsrc/daemon\ncbm_project_lock_manager_new\n→\nsrc/foundation\ncbm_lock_registry_new\nInspect 2 call edges\nsrc\nmain\n→\nsrc/daemon\ncbm_version_cohort_manager_new\n→\nsrc/foundation\ncbm_mutex_init\nInspect 2 call edges\nStatic call path from main\nClose evidence\n\nStatic index edges can include heuristic name resolution. Open the declarations to verify the relationship; a call edge does not prove runtime execution.\n\nmain\nFunction · src/main.c:2546\nCALLS →\nEdge #94131\nSite unverified\nReported :6989\nResolution\ncbm_project_lock_manager_new\nFunction · src/daemon/project_lock.c:43\ncbm_project_lock_manager_new\nFunction · src/daemon/project_lock.c:43\nCALLS →\nEdge #136913\nSite :61\nResolution\ncbm_private_lock_directory_close\nFunction · src/foundation/private_file_lock.c:1503\n\n2 of 2 retained edges\n\nComponents and responsibilities\n\nBoundaries follow source locations and are inferred. Descriptions quote source documentation; relationships come from indexed edges. Application areas appear before tests and tools.\n\nSOURCE AREA · INFERRED BOUNDARY\ninternal/cbm\n248 files · 0 entry candidates · 2268 exported symbols\nUsed by 6 areas · Depends on 9 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nFull declaration set for the same CBMArena, and it must precede cbm.h: internal/cbm/arena.h declares a subset and the two share the CBM_ARENA_H guard, so whichever is included first is the one this file sees.\nSource: internal/cbm/cbm.c:1\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/foundation\n65 files · 0 entry candidates · 574 exported symbols\nUsed by 17 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncompat_fs.h — Portable directory iteration, popen, and file operations. POSIX: thin wrappers around opendir/readdir, popen/pclose, mkdir, unlink. Windows: FindFirstFile/FindNextFile, _popen/_pclose, _mkdir, _unlink.\nSource: src/foundation/compat_fs.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/daemon\n24 files · 0 entry candidates · 773 exported symbols\nUsed by 5 areas · Depends on 8 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ndaemon.h — Process-local coordination and wire framing for the CBM daemon. Transport and worker supervision live outside this module. The coordinator binds clients and resource subscriptions to transport connections, coalesces shared work, and defines the daemon's terminal shutdown transition.\nSource: src/daemon/daemon.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/pipeline\n43 files · 0 entry candidates · 984 exported symbols\nUsed by 7 areas · Depends on 12 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\npipeline.h — Indexing pipeline orchestrator. Orchestrates multi-pass indexing of a repository: 1. Structure: Project/Folder/Package/File nodes 2. Definitions: Extract + write nodes + build registry 3. Imports: Resolve import edges 4. Calls: Call resolution (registry + LSP) 5. Usages: Usage/type_ref edges 6. Semantic: Inherits/decorates/implements 7. Post: Tests, communities, HTTP links, config, git history Depends on: foundation, extraction, lsp, store, graph_buffer, discover\nSource: src/pipeline/pipeline.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/cli\n21 files · 0 entry candidates · 1036 exported symbols\nUsed by 13 areas · Depends on 7 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncli.h — CLI subcommand handlers for install, uninstall, update, version. Port of Go cmd/codebase-memory-mcp/ install/update/config logic. Functions accept explicit paths (home_dir, binary_path) rather than reading HOME internally, making them testable with temp directories.\nSource: src/cli/cli.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/store\n2 files · 0 entry candidates · 321 exported symbols\nUsed by 9 areas · Depends on 5 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nstore.h — Opaque SQLite graph store for code knowledge graphs. All functions are prefixed cbm_store_*. The store handle is opaque — callers never touch SQLite internals directly. Thread safety: a single store handle must not be used concurrently. Use one store per thread or external synchronization.\nSource: src/store/store.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/semantic\n6 files · 0 entry candidates · 83 exported symbols\nUsed by 4 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nsemantic.h — Algorithmic code embeddings for SEMANTICALLY_RELATED edges. Combines 11 signals into a unified similarity score without external models or dependencies. All signals derived from graph buffer metadata and the existing AST walk. Signals: 1. TF-IDF on metadata tokens (vocabulary overlap) 2. Random Indexing with co-occurrence (within-codebase synonym bridging) 3. MinHash structural (existing, decoded from \"fp\" property) 4. API Signature vectors (same callees → related) 5. Type Signature vectors (same param/return types → related) 6. M\nSource: src/semantic/semantic.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\ngraph-ui\n675 files · 991 entry candidates · 2509 exported symbols\nUsed by 22 areas · Depends on 3 areas\nPROJECT README · AUTHOR DESCRIPTION\nThis directory is the frontend that codebase-memory-mcp --ui=true serves.\nSource: graph-ui/README.md:5\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/mcp\n7 files · 0 entry candidates · 501 exported symbols\nUsed by 7 areas · Depends on 13 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nmcp.h — MCP (Model Context Protocol) server for codebase-memory-mcp. Implements JSON-RPC 2.0 over stdio with the MCP tool calling protocol. Provides 14 graph analysis tools (search, trace, query, index, etc.)\nSource: src/mcp/mcp.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/graph_buffer\n2 files · 0 entry candidates · 76 exported symbols\nUsed by 2 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ngraph_buffer.h — In-memory graph buffer for pipeline indexing. Holds all nodes and edges in RAM during indexing, then dumps to SQLite. Provides O(1) node lookup by qualified name and edge dedup by key. Depends on: foundation (hash_table, dyn_array), store (data structs)\nSource: src/graph_buffer/graph_buffer.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/ui\n22 files · 0 entry candidates · 321 exported symbols\nUsed by 6 areas · Depends on 11 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nhttp_server.h — Embedded HTTP server for the graph visualization UI. Binds to 127.0.0.1:<port> only (localhost). Serves embedded frontend assets and proxies /rpc to a dedicated read-only cbm_mcp_server_t instance. Runs in a background pthread, same pattern as the watcher thread.\nSource: src/ui/http_server.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/cypher\n2 files · 0 entry candidates · 188 exported symbols\nUsed by 3 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncypher.h — Public API for the Cypher query engine. Provides lexing, parsing, planning, and execution of a subset of Cypher queries against the cbm_store graph database. Supported syntax: MATCH (n:Label)-[:TYPE*1..3]->(m:Label {prop: \"val\"}) WHERE n.name =~ \".*pattern.*\" AND m.label = \"Function\" RETURN n.name, COUNT(m) AS cnt ORDER BY cnt DESC LIMIT 10\nSource: src/cypher/cypher.h:2\nExplore connections →\nAll 25 areas, including tests and tools\nIndex summary, layers and communities\nAbout this view\nserver ready\nConnection details",
"at": "2026-09-09T21:45:11.960Z"
},
{
"name": "source-beside-map",
"screenshot": "repair-source-beside-map.png",
"text": "CODEATLAS\nv0.0.1\ndirty\nExplore\nGalaxy\nArchitecture\nAgents\nSystem\nDaemon\nChat\nSearch\n⌘ / Ctrl K\nTools\nBrief\nExplained\ncbm-pr2068\n⌄\nProject events · cbm-pr2068\nLast checked 11:45:11 PM\nHistory (224 retained)\nInspect index coverage\n\nIndex coverage: 85 partially parsed paths · 0 skipped · 300 intentionally excluded.\n\ncbm-pr2068\nArchitecture\nRead by import order\nRefresh\nOverview\nDependencies\nEntry points\nRoutes\nHotspots\nView saved on this device\nReset view\n\nRepository map · source responsibilities and indexed connections\n\nEvidence legend\n1,498 indexed files · 62,142 retained edges · snapshot and limits\nRepository\nWhat this repository does\nPROJECT README · AUTHOR DESCRIPTION\nThe fastest and most efficient code intelligence engine for AI coding agents. Full-indexes an average repository in milliseconds, the Linux kernel (28M LOC, 75K files) in 3 minutes. Answers structural queries in under 1ms. Ships as a native executable with a small verified runtime-asset set for macOS, Linux, and Windows — download, run install, done.\nSource: README.md:17\nRead project README\nWhere to start\n\nIndex entry candidates, with roles inferred from file type and location. Select one to follow its static calls.\n\nFRONTEND · ENTRY CANDIDATE\nApp\ngraph-ui/src/App.tsx:747\nAPPLICATION · ENTRY CANDIDATE\nmain\nsrc/main.c:2546\nAPPLICATION · ENTRY CANDIDATE\nmain\npkg/pypi/src/codebase_memory_mcp/_cli.py:1288\nAPPLICATION · ENTRY CANDIDATE\nmain\ngraph-ui/spike/spike.js:152\nFollow static call paths from main · 3 paths across files\nStatic paths from main\nRead entry source\n\nEach step is a recorded CALLS edge. This shows possible reachability, not an observed runtime sequence or data flow.\n\nsrc\nmain\n→\nsrc/daemon\ncbm_project_lock_manager_new\n→\nsrc/foundation\ncbm_private_lock_directory_close\nInspect 2 call edges\nsrc\nmain\n→\nsrc/daemon\ncbm_project_lock_manager_new\n→\nsrc/foundation\ncbm_lock_registry_new\nInspect 2 call edges\nsrc\nmain\n→\nsrc/daemon\ncbm_version_cohort_manager_new\n→\nsrc/foundation\ncbm_mutex_init\nInspect 2 call edges\nStatic call path from main\nClose evidence\n\nStatic index edges can include heuristic name resolution. Open the declarations to verify the relationship; a call edge does not prove runtime execution.\n\nmain\nFunction · src/main.c:2546\nCALLS →\nEdge #94131\nSite unverified\nReported :6989\nResolution\ncbm_project_lock_manager_new\nFunction · src/daemon/project_lock.c:43\ncbm_project_lock_manager_new\nFunction · src/daemon/project_lock.c:43\nCALLS →\nEdge #136913\nSite :61\nResolution\ncbm_private_lock_directory_close\nFunction · src/foundation/private_file_lock.c:1503\n\n2 of 2 retained edges\n\nComponents and responsibilities\n\nBoundaries follow source locations and are inferred. Descriptions quote source documentation; relationships come from indexed edges. Application areas appear before tests and tools.\n\nSOURCE AREA · INFERRED BOUNDARY\ninternal/cbm\n248 files · 0 entry candidates · 2268 exported symbols\nUsed by 6 areas · Depends on 9 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nFull declaration set for the same CBMArena, and it must precede cbm.h: internal/cbm/arena.h declares a subset and the two share the CBM_ARENA_H guard, so whichever is included first is the one this file sees.\nSource: internal/cbm/cbm.c:1\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/foundation\n65 files · 0 entry candidates · 574 exported symbols\nUsed by 17 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncompat_fs.h — Portable directory iteration, popen, and file operations. POSIX: thin wrappers around opendir/readdir, popen/pclose, mkdir, unlink. Windows: FindFirstFile/FindNextFile, _popen/_pclose, _mkdir, _unlink.\nSource: src/foundation/compat_fs.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/daemon\n24 files · 0 entry candidates · 773 exported symbols\nUsed by 5 areas · Depends on 8 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ndaemon.h — Process-local coordination and wire framing for the CBM daemon. Transport and worker supervision live outside this module. The coordinator binds clients and resource subscriptions to transport connections, coalesces shared work, and defines the daemon's terminal shutdown transition.\nSource: src/daemon/daemon.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/pipeline\n43 files · 0 entry candidates · 984 exported symbols\nUsed by 7 areas · Depends on 12 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\npipeline.h — Indexing pipeline orchestrator. Orchestrates multi-pass indexing of a repository: 1. Structure: Project/Folder/Package/File nodes 2. Definitions: Extract + write nodes + build registry 3. Imports: Resolve import edges 4. Calls: Call resolution (registry + LSP) 5. Usages: Usage/type_ref edges 6. Semantic: Inherits/decorates/implements 7. Post: Tests, communities, HTTP links, config, git history Depends on: foundation, extraction, lsp, store, graph_buffer, discover\nSource: src/pipeline/pipeline.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/cli\n21 files · 0 entry candidates · 1036 exported symbols\nUsed by 13 areas · Depends on 7 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncli.h — CLI subcommand handlers for install, uninstall, update, version. Port of Go cmd/codebase-memory-mcp/ install/update/config logic. Functions accept explicit paths (home_dir, binary_path) rather than reading HOME internally, making them testable with temp directories.\nSource: src/cli/cli.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/store\n2 files · 0 entry candidates · 321 exported symbols\nUsed by 9 areas · Depends on 5 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nstore.h — Opaque SQLite graph store for code knowledge graphs. All functions are prefixed cbm_store_*. The store handle is opaque — callers never touch SQLite internals directly. Thread safety: a single store handle must not be used concurrently. Use one store per thread or external synchronization.\nSource: src/store/store.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/semantic\n6 files · 0 entry candidates · 83 exported symbols\nUsed by 4 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nsemantic.h — Algorithmic code embeddings for SEMANTICALLY_RELATED edges. Combines 11 signals into a unified similarity score without external models or dependencies. All signals derived from graph buffer metadata and the existing AST walk. Signals: 1. TF-IDF on metadata tokens (vocabulary overlap) 2. Random Indexing with co-occurrence (within-codebase synonym bridging) 3. MinHash structural (existing, decoded from \"fp\" property) 4. API Signature vectors (same callees → related) 5. Type Signature vectors (same param/return types → related) 6. M\nSource: src/semantic/semantic.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\ngraph-ui\n675 files · 991 entry candidates · 2509 exported symbols\nUsed by 22 areas · Depends on 3 areas\nPROJECT README · AUTHOR DESCRIPTION\nThis directory is the frontend that codebase-memory-mcp --ui=true serves.\nSource: graph-ui/README.md:5\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/mcp\n7 files · 0 entry candidates · 501 exported symbols\nUsed by 7 areas · Depends on 13 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nmcp.h — MCP (Model Context Protocol) server for codebase-memory-mcp. Implements JSON-RPC 2.0 over stdio with the MCP tool calling protocol. Provides 14 graph analysis tools (search, trace, query, index, etc.)\nSource: src/mcp/mcp.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/graph_buffer\n2 files · 0 entry candidates · 76 exported symbols\nUsed by 2 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ngraph_buffer.h — In-memory graph buffer for pipeline indexing. Holds all nodes and edges in RAM during indexing, then dumps to SQLite. Provides O(1) node lookup by qualified name and edge dedup by key. Depends on: foundation (hash_table, dyn_array), store (data structs)\nSource: src/graph_buffer/graph_buffer.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/ui\n22 files · 0 entry candidates · 321 exported symbols\nUsed by 6 areas · Depends on 11 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\nhttp_server.h — Embedded HTTP server for the graph visualization UI. Binds to 127.0.0.1:<port> only (localhost). Serves embedded frontend assets and proxies /rpc to a dedicated read-only cbm_mcp_server_t instance. Runs in a background pthread, same pattern as the watcher thread.\nSource: src/ui/http_server.h:2\nExplore connections →\nSOURCE AREA · INFERRED BOUNDARY\nsrc/cypher\n2 files · 0 entry candidates · 188 exported symbols\nUsed by 3 areas · Depends on 4 areas\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ncypher.h — Public API for the Cypher query engine. Provides lexing, parsing, planning, and execution of a subset of Cypher queries against the cbm_store graph database. Supported syntax: MATCH (n:Label)-[:TYPE*1..3]->(m:Label {prop: \"val\"}) WHERE n.name =~ \".*pattern.*\" AND m.label = \"Function\" RETURN n.name, COUNT(m) AS cnt ORDER BY cnt DESC LIMIT 10\nSource: src/cypher/cypher.h:2\nExplore connections →\nAll 25 areas, including tests and tools\nIndex summary, layers and communities\nAbout this view\nserver ready\nConnection details\nSource evidence\ncbm_project_lock_manager_new\nClose\n\nsrc/daemon/project_lock.c:61\n\nRequested source location. Current local source may have changed since indexing. The map stays open.\n\nCopy location\nRefresh source\nOpen in Explore\n53 }\n54 cbm_project_lock_manager_t *manager = calloc(1, sizeof(*manager));\n55 if (manager) {\n56 manager->directory = directory;\n57 manager->registry = cbm_lock_registry_new(directory);\n58 }\n59 if (!manager || !manager->registry) {\n60 free(manager);\n61 cbm_private_lock_directory_close(directory);\n62 return NULL;\n63 }\n64 return manager;\n65}\n66 \n67cbm_private_file_lock_status_t cbm_project_lock_lease_release(cbm_project_lock_lease_t **lease_io) {\n68 if (!lease_io || !*lease_io) {\n69 return CBM_PRIVATE_FILE_LOCK_IO;\n70 }\n71 cbm_project_lock_lease_t *lease = *lease_io;\n72 cbm_private_file_lock_status_t result = CBM_PRIVATE_FILE_LOCK_OK;\n73 if (lease->project) {\n74 result = cbm_lock_lease_release(&lease->project);\n75 if (lease->project) {\n76 return CBM_PRIVATE_FILE_LOCK_IO;\n77 }\n78 }\n79 if (lease->project_set) {\n80 cbm_private_file_lock_status_t set_status = cbm_lock_lease_release(&lease->project_set);\n81 if (set_status != CBM_PRIVATE_FILE_LOCK_OK) {\n82 result = set_status;\n83 }\n84 if (lease->project_set) {\n85 return CBM_PRIVATE_FILE_LOCK_IO;\n86 }\n87 }\n88 free(lease);\n89 *lease_io = NULL;\n90 return result;\n91}\n92 \n93static cbm_private_file_lock_status_t project_lock_failed_acquire(\n94 cbm_project_lock_lease_t *lease, cbm_private_file_lock_status_t status,\n95 cbm_project_lock_lease_t **lease_out) {\n96 if (!lease->project && !lease->project_set) {\n97 free(lease);\n98 return status;\n99 }\n100 cbm_project_lock_lease_t *cleanup = lease;\n101 cbm_private_file_lock_status_t cleanup_status = cbm_project_lock_lease_release(&cleanup);\n102 if (cleanup) {\n103 *lease_out = cleanup;\n104 return CBM_PRIVATE_FILE_LOCK_IO;\n105 }\n106 return cleanup_status == CBM_PRIVATE_FILE_LOCK_OK ? status : CBM_PRIVATE_FILE_LOCK_IO;\n107}\n108 \n109static cbm_private_file_lock_status_t project_lock_acquire_internal(\n110 cbm_project_lock_manager_t *manager, const char *project, uint64_t deadline_ms,\n111 const cbm_lock_cancel_token_t *cancel_token, bool try_once,\n112 cbm_project_lock_lease_t **lease_out) {\n113 if (lease_out) {\n114 *lease_out = NULL;\n115 }\n116 if (!manager || !manager->registry || !project || !project[0] || !lease_out) {\n117 return CBM_PRIVATE_FILE_LOCK_UNSAFE;\n118 }\n119 bool wildcard = strcmp(project, \"*\") == 0;\n120 char project_key[PROJECT_LOCK_KEY_CAP];\n121 if (!wildcard && !project_lock_key(project, project_key)) {\n122 return CBM_PRIVATE_FILE_LOCK_UNSAFE;\n123 }\n124 cbm_project_lock_lease_t *lease = calloc(1, sizeof(*lease));\n125 if (!lease) {\n126 return CBM_PRIVATE_FILE_LOCK_IO;\n127 }\n128 cbm_private_file_lock_status_t status =\n129 try_once ? cbm_lock_registry_try_acquire(manager->registry, PROJECT_SET_KEY,\n130 wildcard ? CBM_PRIVATE_FILE_LOCK_EX\n131 : CBM_PRIVATE_FILE_LOCK_SH,\n132 &lease->project_set)\n133 : cbm_lock_registry_acquire(manager->registry, PROJECT_SET_KEY,\n134 wildcard ? CBM_PRIVATE_FILE_LOCK_EX\n135 : CBM_PRIVATE_FILE_LOCK_SH,\n136 deadline_ms, cancel_token, &lease->project_set);\n137 if (status != CBM_PRIVATE_FILE_LOCK_OK) {\n138 return project_lock_failed_acquire(lease, status, lease_out);\n139 }\n140 if (!wildcard) {\n141 status = try_once ? cbm_lock_registry_try_acquire(manager->registry, project_key,\n142 CBM_PRIVATE_FILE_LOCK_EX, &lease->project)\n143 : cbm_lock_registry_acquire(manager->registry, project_key,\n144 CBM_PRIVATE_FILE_LOCK_EX, deadline_ms,\n145 cancel_token, &lease->project);\n146 if (status != CBM_PRIVATE_FILE_LOCK_OK) {\n147 return project_lock_failed_acquire(lease, status, lease_out);\n148 }\n149 }\n150 *lease_out = lease;\n151 return CBM_PRIVATE_FILE_LOCK_OK;\n152}\n153 \n154cbm_private_file_lock_status_t cbm_project_lock_acquire(cbm_project_lock_manager_t *manager,\n155 const char *project, uint64_t deadline_ms,\n156 const cbm_lock_cancel_token_t *cancel_token,\n157 cbm_project_lock_lease_t **lease_out) {\n158 return project_lock_acquire_internal(manager, project, deadline_ms, cancel_token, false,\n159 lease_out);\n160}\n161 \n162cbm_private_file_lock_status_t cbm_project_lock_try_acquire(cbm_project_lock_manager_t *manager,\n163 const char *project,\n164 cbm_project_lock_lease_t **lease_out) {\n165 return project_lock_acquire_internal(manager, project, UINT64_MAX, NULL, true, lease_out);\n166}\n167 \n168cbm_private_file_lock_status_t cbm_project_lock_request_cancel(cbm_project_lock_manager_t *manager,\n169 cbm_lock_cancel_token_t *token) {\n170 return manager ? cbm_lock_registry_request_cancel(manager->registry, token)\n171 : CBM_PRIVATE_FILE_LOCK_IO;\n172}\n173 \n174cbm_private_file_lock_status_t cbm_project_lock_manager_free(\n175 cbm_project_lock_manager_t **manager_io) {\n176 if (!manager_io || !*manager_io) {\n177 return CBM_PRIVATE_FILE_LOCK_IO;\n178 }\n179 cbm_project_lock_manager_t *manager = *manager_io;\n180 cbm_private_file_lock_status_t status = cbm_lock_registry_free(&manager->registry);\n181 if (status != CBM_PRIVATE_FILE_LOCK_OK) {\n182 return status;\n183 }\n184 cbm_private_lock_directory_close(manager->directory);\n185 manager->directory = NULL;\n186 free(manager);\n187 *manager_io = NULL;\n188 return CBM_PRIVATE_FILE_LOCK_OK;\n189}\n190 \nPrevious lines\nLines 53 to 190\nNext lines",
"at": "2026-09-09T21:45:12.222Z"
},
{
"name": "daemon-responsibilities",
"screenshot": "repair-daemon-responsibilities.png",
"text": "CODEATLAS\nv0.0.1\ndirty\nExplore\nGalaxy\nArchitecture\nAgents\nSystem\nDaemon\nChat\nSearch\n⌘ / Ctrl K\nTools\nBrief\nExplained\ncbm-pr2068\n⌄\nProject events · cbm-pr2068\nLast checked 11:45:11 PM\nHistory (224 retained)\nInspect index coverage\n\nIndex coverage: 85 partially parsed paths · 0 skipped · 300 intentionally excluded.\n\ncbm-pr2068\nArchitecture\nRead by import order\nRefresh\nOverview\nDependencies\nEntry points\nRoutes\nHotspots\nView saved on this device\nReset view\n\nRepository map · source responsibilities and indexed connections\n\nEvidence legend\n1,498 indexed files · 62,142 retained edges · snapshot and limits\nRepository\n›\nsrc/daemon\nSRC/DAEMON\n\n24 files · 797 indexed nodes\n\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ndaemon.h — Process-local coordination and wire framing for the CBM daemon. Transport and worker supervision live outside this module. The coordinator binds clients and resource subscriptions to transport connections, coalesces shared work, and defines the daemon's terminal shutdown transition.\nSource: src/daemon/daemon.h:2\n\nInferred role: entry. only outbound calls\n\nEntry points and interfaces\ncbm_daemon_ipc_endpoint_free\nFunction · src/daemon/ipc.c:4814\ncbm_daemon_ipc_endpoint_new\nFunction · src/daemon/ipc.c:4722\ncbm_daemon_ipc_endpoint_runtime_dir\nFunction · src/daemon/ipc.c:4841\ncbm_daemon_application_new\nFunction · src/daemon/application.c:2945\ncbm_daemon_application_free\nFunction · src/daemon/application.c:3164\ncbm_daemon_application_shutdown\nFunction · src/daemon/application.c:3035\ncbm_daemon_ipc_startup_lock_try_acquire\nFunction · src/daemon/ipc.c:6087\ncbm_daemon_runtime_client_connect\nFunction · src/daemon/runtime.c:2752\nHow this area connects\nDepends on →\nUsed by ←\n\nCross-area edges grouped by relation kind. Counts are retained graph edges, not call frequency.\n\nsrc/foundation\nCALLS\n388 edges · inspect\nsrc/mcp\nCALLS\n56 edges · inspect\nsrc/foundation\nIMPORTS\n51 edges · inspect\nsrc/ui\nCALLS\n21 edges · inspect\ngraph-ui\nCALLS\n12 edges · inspect\nsrc/cli\nCALLS\n12 edges · inspect\ngraph-ui\nIMPORTS\n10 edges · inspect\nsrc/watcher\nCALLS\n9 edges · inspect\nsrc/mcp\nIMPORTS\n5 edges · inspect\nsrc/ui\nIMPORTS\n4 edges · inspect\nsrc/cli\nIMPORTS\n3 edges · inspect\nsrc/pipeline\nCALLS\n2 edges · inspect\nsrc/store\nCALLS\n2 edges · inspect\nsrc/watcher\nIMPORTS\n2 edges · inspect\nsrc/pipeline\nIMPORTS\n1 edges · inspect\nsrc/store\nIMPORTS\n1 edges · inspect\nFiles\nsrc/daemon/application.c\nsrc/daemon/application.h\nsrc/daemon/application_internal.h\nsrc/daemon/bootstrap.c\nsrc/daemon/bootstrap.h\nsrc/daemon/daemon.c\nsrc/daemon/daemon.h\nsrc/daemon/frontend.c\nsrc/daemon/frontend.h\nsrc/daemon/host.c\nsrc/daemon/host.h\nsrc/daemon/host_internal.h\nsrc/daemon/ipc.c\nsrc/daemon/ipc.h\nsrc/daemon/ipc_internal.h\nsrc/daemon/project_lock.c\nsrc/daemon/project_lock.h\nsrc/daemon/runtime.c\nsrc/daemon/runtime.h\nsrc/daemon/service.c\nsrc/daemon/service.h\nsrc/daemon/service_internal.h\nsrc/daemon/version_cohort.c\nsrc/daemon/version_cohort.h\nIndex summary, layers and communities\nAbout this view\nserver ready\nConnection details",
"at": "2026-09-09T21:45:12.513Z"
},
{
"name": "shared-analysis-entry",
"screenshot": "repair-shared-analysis-entry.png",
"text": "CODEATLAS\nv0.0.1\ndirty\nExplore\nGalaxy\nArchitecture\nAgents\nSystem\nDaemon\nChat\nSearch\n⌘ / Ctrl K\nTools\nBrief\nExplained\ncbm-pr2068\n⌄\nProject events · cbm-pr2068\nLast checked 11:45:11 PM\nHistory (224 retained)\nInspect index coverage\n\nIndex coverage: 85 partially parsed paths · 0 skipped · 300 intentionally excluded.\n\ncbm-pr2068\nArchitecture\nRead by import order\nRefresh\nOverview\nDependencies\nEntry points\nRoutes\nHotspots\nView saved on this device\nReset view\n\nRepository map · source responsibilities and indexed connections\n\nEvidence legend\n1,498 indexed files · 62,142 retained edges · snapshot and limits\nRepository\n›\nsrc/daemon\n›\napplication.c\nSELECTED SYMBOL · SRC/DAEMON\nAPPLICATION_PROJECT_LOCK_RELEASE_FULLY\nOpen source · src/daemon/application.c:288\nSelection context\n\napplication_project_lock_release_fully\n\nGRAPH EVIDENCE\n\n2 indexed caller edges from 1 files reach this selection. Check these callers when changing its contract.\n\nIncoming relationships · 2\nOutgoing relationships · 4\nObserved agent activity · 0 retained events for this file\nRead source evidence\nAssess change impact\nSRC/DAEMON\n\n24 files · 797 indexed nodes\n\nSOURCE DOCUMENTATION · AUTHOR DESCRIPTION\ndaemon.h — Process-local coordination and wire framing for the CBM daemon. Transport and worker supervision live outside this module. The coordinator binds clients and resource subscriptions to transport connections, coalesces shared work, and defines the daemon's terminal shutdown transition.\nSource: src/daemon/daemon.h:2\n\nInferred role: entry. only outbound calls\n\nSymbols in src/daemon/application.c\nRead file\ncbm_daemon_application_new\nFunction · src/daemon/application.c:2945\ncbm_daemon_application_free\nFunction · src/daemon/application.c:3164\ncbm_daemon_application_shutdown\nFunction · src/daemon/application.c:3035\ncbm_daemon_application_runtime_callbacks\nFunction · src/daemon/application.c:3168\napplication_job_unsubscribe_locked\nFunction · src/daemon/application.c:1755\ncbm_daemon_application_active_jobs\nFunction · src/daemon/application.c:3554\ncbm_daemon_application_index\nFunction · src/daemon/application.c:3544\napplication_jobs_reap_completed\nFunction · src/daemon/application.c:605\ncbm_daemon_application_project_mutation_end\nFunction · src/daemon/application.c:1020\ncbm_daemon_application_project_mutation_try_begin\nFunction · src/daemon/application.c:1015\ncbm_daemon_application_job_subscribers\nFunction · src/daemon/application.c:3569\napplication_job_cancel_requested\nFunction · src/daemon/application.c:888\ncbm_daemon_application_background_initializes_for_test\nFunction · src/daemon/application.c:232\napplication_job_subscribe_locked\nFunction · src/daemon/application.c:1681\napplication_update_reap\nFunction · src/daemon/application.c:1967\napplication_cleanup_force_terminate\nFunction · src/daemon/application.c:273\napplication_client_exchange\nFunction · src/daemon/application.c:3228\napplication_deadline_after\nFunction · src/daemon/application.c:268\napplication_job_execution_cancel\nFunction · src/daemon/application.c:1285\napplication_cancelled_result\nFunction · src/daemon/application.c:1117\napplication_request_cancelled_locked\nFunction · src/daemon/application.c:260\napplication_text_copy\nFunction · src/daemon/application.c:395\napplication_update_cancel_locked\nFunction · src/daemon/application.c:1808\napplication_refresh_watch_locked\nFunction · src/daemon/application.c:499\ncbm_daemon_application_free_with_timeout\nFunction · src/daemon/application.c:3093\napplication_mutation_begin_internal\nFunction · src/daemon/application.c:922\napplication_job_run_attempt\nFunction · src/daemon/application.c:1125\napplication_consume_attempt\nFunction · src/daemon/application.c:1306\napplication_session_workspace_allowed\nFunction · src/daemon/application.c:482\napplication_refresh_watch\nFunction · src/daemon/application.c:582\napplication_index_project_key\nFunction · src/daemon/application.c:1618\napplication_regular_db_exists\nFunction · src/daemon/application.c:407\napplication_release_session_watch_locked\nFunction · src/daemon/application.c:467\ncbm_daemon_application_client_tool\nFunction · src/daemon/application.c:3404\napplication_update_owner_release_locked\nFunction · src/daemon/application.c:1819\napplication_find_watch_locked\nFunction · src/daemon/application.c:426\napplication_get_u32\nFunction · src/daemon/application.c:383\napplication_job_free\nFunction · src/daemon/application.c:591\napplication_put_u32\nFunction · src/daemon/application.c:388\napplication_background_index\nFunction · src/daemon/application.c:3436\napplication_auto_index_cancel_join\nFunction · src/daemon/application.c:1784\napplication_auto_index_retry_pending_locked\nFunction · src/daemon/application.c:1466\napplication_project_lock_release_fully\nFunction · src/daemon/application.c:288\ncbm_daemon_application_client_set_context\nFunction · src/daemon/application.c:3236\napplication_client_exchange_tagged\nFunction · src/daemon/application.c:3184\napplication_remove_watch_entry_locked\nFunction · src/daemon/application.c:436\ncbm_daemon_application_client_set_ui_config\nFunction · src/daemon/application.c:3292\napplication_auto_index_release_locked\nFunction · src/daemon/application.c:1768\nMore symbols (48 of 152)Inspect file relationships\nIndex summary, layers and communities\nAbout this view\nserver ready\nConnection details\nChange impact\nClose change impact\nCurrent selection\nWorking tree\nSince ref\ncbm-pr2068\nUse current editor selection\nsrc/daemon/application.c\nAnalysis scope\nEntire indexed file\ncbm_daemon_application_fail_next_job_thread_start_for_test · line 218\ncbm_daemon_application_background_initializes_for_test · line 232\ncbm_daemon_application_busy_queue_waits_for_test · line 243\ncbm_daemon_application_hold_job_before_start_for_test · line 247\napplication_job_thread_create · line 252\napplication_request_cancelled_locked · line 260\napplication_deadline_after · line 268\napplication_cleanup_force_terminate · line 273\napplication_project_lock_release_fully · line 288\napplication_worker_diagnostic · line 311\napplication_worker_start_default · line 327\napplication_worker_poll_default · line 352\napplication_worker_cancel_default · line 360\napplication_worker_log_path_default · line 367\napplication_worker_destroy_default · line 374\napplication_get_u32 · line 383\napplication_put_u32 · line 388\napplication_text_copy · line 395\napplication_regular_db_exists · line 407\napplication_canonical_directory_exists · line 421\napplication_find_watch_locked · line 426\napplication_remove_watch_entry_locked · line 436\napplication_remove_watch_locked · line 462\napplication_release_session_watch_locked · line 467\napplication_session_workspace_allowed · line 482\napplication_refresh_watch_locked · line 499\napplication_refresh_watch · line 582\napplication_job_free · line 591\napplication_jobs_reap_completed · line 605\napplication_tmp_lock · line 645\napplication_tmp_unlock · line 651\napplication_cache_dir · line 655\napplication_unique_recovery_file · line 680\napplication_recovery_files_create · line 711\napplication_recovery_files_remove · line 724\napplication_truncate_file · line 734\napplication_read_suspects · line 741\napplication_free_suspects · line 833\napplication_suspect_contains · line 843\napplication_append_quarantine · line 852\napplication_max_restarts · line 865\napplication_attempt_init · line 877\napplication_attempt_free · line 883\napplication_job_cancel_requested · line 888\napplication_project_keys_conflict · line 896\napplication_mutation_conflicts_locked · line 901\napplication_job_reserves_project_locked · line 912\napplication_mutation_begin_internal · line 922\ncbm_daemon_application_project_mutation_try_begin · line 1015\ncbm_daemon_application_project_mutation_end · line 1020\napplication_watcher_mutation_begin · line 1058\napplication_watcher_mutation_end · line 1062\napplication_watcher_project_pruned · line 1066\napplication_session_mutation_begin · line 1081\napplication_session_mutation_try_begin · line 1087\napplication_session_mutation_end · line 1093\napplication_job_wait_for_mutations · line 1100\napplication_cancelled_result · line 1117\napplication_job_run_attempt · line 1125\napplication_job_failure_response · line 1203\napplication_attempt_disposition · line 1224\napplication_record_attempt · line 1237\napplication_record_cancelled · line 1250\napplication_result_is_attributable_failure · line 1258\napplication_job_execution_init · line 1280\napplication_job_execution_cancel · line 1285\napplication_index_response_succeeded · line 1296\napplication_consume_attempt · line 1306\napplication_recovery_record_suspects · line 1337\napplication_job_try_partial · line 1384\napplication_job_recover · line 1411\napplication_auto_index_retry_pending_locked · line 1466\napplication_job_publish · line 1514\napplication_job_thread · line 1556\napplication_find_job_locked · line 1595\napplication_find_active_job_locked · line 1608\napplication_index_project_key · line 1618\napplication_active_job_count_locked · line 1625\napplication_index_args_normalize_defaults · line 1640\napplication_index_args_equal · line 1659\napplication_job_subscribe_locked · line 1681\napplication_job_subscribe · line 1744\napplication_job_unsubscribe_locked · line 1755\napplication_auto_index_release_locked · line 1768\napplication_auto_index_cancel_join · line 1784\napplication_update_cancel_locked · line 1808\napplication_update_owner_release_locked · line 1819\napplication_update_version_valid · line 1835\napplication_update_publish_terminal_locked · line 1848\napplication_update_thread · line 1876\napplication_update_subscribe_locked · line 1927\napplication_update_reap · line 1967\napplication_auto_index_args · line 2002\napplication_background_initialize_impl · line 2017\napplication_background_initialize · line 2100\napplication_jsonrpc_success · line 2106\napplication_update_notice_inject · line 2115\napplication_watch_job_subscription_exists_locked · line 2128\napplication_watch_job_subscribe_late_session_locked · line 2145\napplication_watch_job_subscribe_sessions_locked · line 2173\napplication_watch_job_unsubscribe_session_locked · line 2219\napplication_watch_job_unsubscribe_job_locked · line 2238\napplication_job_wait_for_session · line 2254\napplication_index_execute · line 2278\napplication_session_open · line 2341\napplication_set_context · line 2383\napplication_oversized_response_error · line 2458\napplication_framable_response · line 2499\ncbm_daemon_application_framable_response_for_test · line 2508\napplication_mcp_request · line 2513\napplication_tool_request · line 2573\napplication_set_ui_config · line 2609\napplication_ui_readiness_proof · line 2647\napplication_request_dispatch · line 2665\napplication_request · line 2710\napplication_cancel_jobs_locked · line 2798\napplication_request_cancel · line 2806\napplication_session_cancel · line 2836\napplication_session_close · line 2894\ncbm_daemon_application_set_permanent · line 2936\ncbm_daemon_application_new · line 2945\ncbm_daemon_application_shutdown · line 3035\ncbm_daemon_application_free_with_timeout · line 3093\ncbm_daemon_application_free · line 3164\ncbm_daemon_application_runtime_callbacks · line 3168\napplication_client_exchange_tagged · line 3184\napplication_client_exchange · line 3228\ncbm_daemon_application_client_set_context · line 3236\ncbm_daemon_application_client_set_ui_config · line 3292\ncbm_daemon_application_client_ui_readiness_proof · line 3326\napplication_client_text_request_tagged · line 3358\napplication_client_text_request · line 3380\ncbm_daemon_application_client_mcp · line 3388\ncbm_daemon_application_client_mcp_tagged · line 3395\ncbm_daemon_application_client_tool · line 3404\ncbm_daemon_application_client_hook_augment · line 3428\napplication_background_index · line 3436\ncbm_daemon_application_index · line 3544\ncbm_daemon_application_watcher_index · line 3549\ncbm_daemon_application_active_jobs · line 3554\ncbm_daemon_application_job_subscribers · line 3569\ncbm_daemon_application_physical_job_limit · line 3581\ncbm_daemon_application_worker_memory_budget_bytes · line 3591\ncbm_daemon_application_session_retains_store_for_test · line 3601\nOpen source evidence\nRefresh analysis\n\nReading the graph snapshot and bounded local Git history…",
"at": "2026-09-09T21:45:13.812Z"
}
],
"errors": [],
"externalRequests": [],
"failedRequests": [],
"completed": true,
"finished": "2026-09-09T21:45:13.813Z"
}