Reference Map

May 4, 2026 · View on GitHub

← Codebase Guide | ← Previous: Maintainer Playbook

Reference Map

Use this appendix when you need to trace documentation and source files to their purpose. It is a map, not a substitute for source code or DOCS.md.

Main documents

DocumentUse
README.mdLanding, quickstart, product model, main links.
DOCS.mdComplete technical reference: schema, endpoints, MCP tools, CLI/cloud.
CONTRIBUTING.mdContribution flow and general standards.
SECURITY.mdSecurity reporting.
CHANGELOG.mdChange history.
docs/ARCHITECTURE.mdExisting architecture, lifecycle, CLI reference, cloud/dashboard routes.
docs/AGENT-SETUP.mdPer-agent setup, project detection, compaction survival.
docs/PLUGINS.mdOpenCode/Claude plugin details and current limits.
docs/INSTALLATION.mdPlatform installation.
docs/DOCTOR.mdOperational diagnosis and repair.
docs/COMPARISON.mdComparison with alternatives.
docs/BETA_TESTING.mdIsolated beta flows.
docs/intended-usage.mdExpected usage/product framing.
docs/engram-cloud/README.mdCloud landing.
docs/engram-cloud/quickstart.mdRecommended cloud path.
docs/engram-cloud/troubleshooting.mdCloud failures and recovery.
docs/CODEBASE-GUIDE.mdCodebase guide landing page and reading path.
docs/codebase/*.mdSplit codebase guide pages by topic.

Main source files

File/directoryWhy it matters
cmd/engram/main.goMain binary wiring.
cmd/engram/cloud.goCloud subcommands and runtime.
cmd/engram/doctor.goCLI doctor.
cmd/engram/conflicts.goConflicts CLI.
internal/store/store.goLocal persistence core.
internal/store/relations.goMemory relationships/judgments.
internal/mcp/mcp.goMCP tools and profiles.
internal/mcp/activity.goMCP activity/session tracking.
internal/server/server.goLocal JSON API.
internal/sync/sync.goChunks, manifest, import/export, bootstrap.
internal/sync/transport.goSync transport abstraction.
internal/cloud/config.goCloud config from environment.
internal/cloud/chunkcodec/Chunk canonicalization, IDs, and mutation payload decoding.
internal/cloud/remote/transport.goRemote sync/mutations client.
internal/cloud/autosync/manager.goBackground push/pull manager.
internal/cloud/cloudserver/cloudserver.goCloud HTTP runtime + dashboard mount.
internal/cloud/cloudserver/mutations.goCloud mutation endpoints/contract.
internal/cloud/cloudstore/cloudstore.goPostgres cloud store.
internal/cloud/cloudstore/dashboard_queries.goDashboard read model.
internal/cloud/cloudstore/project_controls.goPer-project sync controls.
internal/cloud/cloudstore/audit_log.goCloud/dashboard audit.
internal/cloud/auth/auth.goBearer/session auth.
internal/cloud/dashboard/dashboard.goDashboard routes and handlers.
internal/cloud/dashboard/static/styles.cssDashboard styles.
internal/project/detect.goProject detection.
internal/project/similar.goName similarity/consolidation.
internal/setup/setup.goIntegration installation.
internal/tui/Bubbletea TUI.
internal/diagnostic/Operational checks/repair.
internal/llm/Runners for semantic scanning with agent CLIs.
internal/obsidian/Obsidian beta export/watch/hub.
plugin/opencode/engram.tsOpenCode adapter.
plugin/claude-code/Claude Code plugin, hooks, and skill.
plugin/obsidian/Experimental Obsidian plugin.
skills/Agent contribution rules.
openspec/Per-change specs/designs/tasks.
PagePurpose
Mental ModelWhat Engram is/is not and the 90-second architecture model.
Repository MapPackage ownership and placement rules.
Memory CoreStore entities, save/retrieve flow, and invariants.
InterfacesCLI, MCP, local API, and TUI responsibilities.
Sync and CloudChunk sync, cloud sync, autosync, transport, and cloudstore.
DashboardBrowser dashboard architecture and invariant.
IntegrationsAgent integrations, thin plugin principle, and setup boundaries.
Maintainer PlaybookCapabilities, navigation, guardrails, checklists, and review playbook.

← Previous: Maintainer Playbook | ← Codebase Guide