How ssshogunn/continuum works
Continuum provides persistent, workspace-scoped memory to AI clients through an MCP server, with a dashboard for account and memory management. The main workflow is client authentication and memory-tool use, followed by semantic recall; saves can also feed background knowledge-graph extraction. Optional Claude Code hooks inject context and capture session facts. The graph reflects README-documented capabilities and visible/indexed references; several memory modules and frontend pages were not sampled, so their internal call paths are not inferred.
Main entry points: server.py MCP tools and routes · memory.py Memory operations · main.py Backend API · search.py Semantic search
Components 23
Clients and hooks
- AI client
- Claude Code hook
hooks/continuum_context_inject.js
Dashboard
- Dashboard app
frontend/src/App.tsx - Memory views
frontend/src/pages/dashboard/Memory.tsx - Knowledge graph view
frontend/src/pages/dashboard/MemoryGraph.tsx - Web API client
frontend/src/lib/api-client.ts
Identity and API
- Backend API
backend/main.py - OAuth and device auth
backend/app/routes/oauth.py - Device authorization
backend/app/routes/device.py - Backend account store
backend/app/db.py - Core service client
backend/app/core_client.py
MCP memory service
- MCP tools and routes
core-mcp/app/server.py - MCP token auth
core-mcp/app/auth.py - Memory operations
core-mcp/app/memory/memory.py - Semantic search
core-mcp/app/memory/search.py - Context assembly
core-mcp/app/memory/prompt.py - Embedding generation
core-mcp/app/memory/embeddings.py - Knowledge graph
core-mcp/app/memory/kg.py - Session capture
core-mcp/app/memory/capture.py - Background worker
core-mcp/app/worker.py - Core data store
core-mcp/app/infra/db.py - Redis queue and cache
core-mcp/app/infra/redis.py
Other components
- User
Connections 31
- User → Dashboard app: manages account
- User → AI client: uses memory
- AI client → MCP tools and routes: calls MCP
- MCP tools and routes → MCP token auth: verifies tokens
core-mcp/app/server.py - MCP tools and routes → Memory operations: invokes tools
core-mcp/app/server.py - MCP tools and routes → Semantic search: routes search
core-mcp/app/server.py - Memory operations → Semantic search: supports recall
- Semantic search → Embedding generation: embeds queries
core-mcp/app/memory/search.py - Semantic search → Core data store: reads memories
core-mcp/app/memory/search.py - MCP tools and routes → Context assembly: builds hook context
core-mcp/app/server.py - Context assembly → Memory operations: assembles memories
core-mcp/app/server.py - Memory operations → Knowledge graph: schedules extraction
- Knowledge graph → Embedding generation: embeds facts
core-mcp/app/memory/kg.py - Knowledge graph → Core data store: stores graph
core-mcp/app/memory/kg.py - Memory operations → Core data store: persists entries
- Background worker → Session capture: runs capture jobs
core-mcp/app/worker.py - Background worker → Knowledge graph: runs graph jobs
core-mcp/app/worker.py - Background worker → Redis queue and cache: uses job queue
core-mcp/app/worker.py - Claude Code hook → MCP tools and routes: requests context
- Claude Code hook → Session capture: submits sessions
- Dashboard app → Memory views: routes memory
frontend/src/App.tsx - Dashboard app → Knowledge graph view: routes graph
frontend/src/App.tsx - Memory views → Web API client: uses API
- Knowledge graph view → Web API client: uses API
- Web API client → Backend API: calls backend
- Backend API → OAuth and device auth: registers routes
backend/main.py - Backend API → Device authorization: registers routes
backend/main.py - OAuth and device auth → Backend account store: stores OAuth state
backend/app/routes/oauth.py - Device authorization → Backend account store: stores device grants
backend/app/routes/device.py - Backend API → Core service client: starts client
backend/main.py - Core service client → MCP tools and routes: calls core service