Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
memspace
command
memspace — CLI entry point.
|
memspace — CLI entry point. |
|
internal
|
|
|
adapter
Package adapter defines the agent adapter contract and the pieces shared by concrete adapters: hook-config editing, event IDs and payload sanitizing.
|
Package adapter defines the agent adapter contract and the pieces shared by concrete adapters: hook-config editing, event IDs and payload sanitizing. |
|
adapter/claudecode
Package claudecode captures Claude Code activity through its command hooks.
|
Package claudecode captures Claude Code activity through its command hooks. |
|
adapter/codex
Package codex captures OpenAI Codex CLI activity and injects MemSpace context through its SessionStart / UserPromptSubmit hooks.
|
Package codex captures OpenAI Codex CLI activity and injects MemSpace context through its SessionStart / UserPromptSubmit hooks. |
|
adapter/dsh
Package dsh captures DeepSeek Harness (DSH) activity and gives its agents MemSpace context and tools.
|
Package dsh captures DeepSeek Harness (DSH) activity and gives its agents MemSpace context and tools. |
|
auth
Package auth provides device tokens, registration invites and the authentication middleware.
|
Package auth provides device tokens, registration invites and the authentication middleware. |
|
client
Package client wraps the MemSpace server HTTP API for client-side use.
|
Package client wraps the MemSpace server HTTP API for client-side use. |
|
config
Package config loads MemSpace configuration from TOML and environment variables.
|
Package config loads MemSpace configuration from TOML and environment variables. |
|
contextpack
Package contextpack builds the bounded context MemSpace hands to agents: at session start, a card for recent unfinished work in the project; on each prompt, history related to what the user asked.
|
Package contextpack builds the bounded context MemSpace hands to agents: at session start, a card for recent unfinished work in the project; on each prompt, history related to what the user asked. |
|
db
Package db manages the SQLite connection and lifecycle.
|
Package db manages the SQLite connection and lifecycle. |
|
embedding
Package embedding adds semantic search on top of the full-text index: it chunks search documents, embeds them through an OpenAI-compatible embeddings service (e.g.
|
Package embedding adds semantic search on top of the full-text index: it chunks search documents, embeds them through an OpenAI-compatible embeddings service (e.g. |
|
fts/simple
Package simple statically links the simple FTS5 tokenizer (with cppjieba) into SQLite as provided by mattn/go-sqlite3.
|
Package simple statically links the simple FTS5 tokenizer (with cppjieba) into SQLite as provided by mattn/go-sqlite3. |
|
inject
Package inject runs inside agent hooks and returns the context MemSpace adds to the conversation: a card for unfinished work at session start and related history when the user submits a prompt.
|
Package inject runs inside agent hooks and returns the context MemSpace adds to the conversation: a card for unfinished work at session start and related history when the user submits a prompt. |
|
jobs
Package jobs is the server's durable background job queue: SQLite-backed, atomic claims with leases, retries with exponential backoff, and a bounded worker pool.
|
Package jobs is the server's durable background job queue: SQLite-backed, atomic claims with leases, retries with exponential backoff, and a bounded worker pool. |
|
mcpbridge
Package mcpbridge serves MemSpace's MCP tools to a local agent over stdio, forwarding every call to the server's streamable HTTP endpoint.
|
Package mcpbridge serves MemSpace's MCP tools to a local agent over stdio, forwarding every call to the server's streamable HTTP endpoint. |
|
mcpserver
Package mcpserver exposes MemSpace to agents over MCP (streamable HTTP).
|
Package mcpserver exposes MemSpace to agents over MCP (streamable HTTP). |
|
memory
Package memory stores memories: durable, source-backed knowledge derived from raw events.
|
Package memory stores memories: durable, source-backed knowledge derived from raw events. |
|
model
Package model defines the core data structures shared across the server.
|
Package model defines the core data structures shared across the server. |
|
project
Package project derives a path-independent project identity from a working directory (the directory the agent was started in): the normalized Git remote of the repository containing it, unless that repository ignores it, otherwise the directory name.
|
Package project derives a path-independent project identity from a working directory (the directory the agent was started in): the normalized Git remote of the repository containing it, unless that repository ignores it, otherwise the directory name. |
|
prompt
Package prompt separates what a user wrote from what they pasted.
|
Package prompt separates what a user wrote from what they pasted. |
|
redact
Package redact removes secrets from event payloads and bounds their size.
|
Package redact removes secrets from event payloads and bounds their size. |
|
search
Package search maintains the full-text index and answers scoped queries.
|
Package search maintains the full-text index and answers scoped queries. |
|
server
Package server wires up the chi router and all route handlers.
|
Package server wires up the chi router and all route handlers. |
|
server/handler
Package handler — context packs and MCP token management.
|
Package handler — context packs and MCP token management. |
|
sessions
Package sessions is the business layer for sessions: listing, details with summaries, and event timelines.
|
Package sessions is the business layer for sessions: listing, details with summaries, and event timelines. |
|
spool
Package spool is the durable local event buffer between agent hooks and the server.
|
Package spool is the durable local event buffer between agent hooks and the server. |
|
summary
Package summary builds rule-based session summaries from a session's events.
|
Package summary builds rule-based session summaries from a session's events. |
|
syncer
Package syncer uploads spooled events to the server: it resolves local project/session hints to server IDs, uploads in batches, deletes events only after the server ACKs them, and backs off exponentially while the server is unreachable.
|
Package syncer uploads spooled events to the server: it resolves local project/session hints to server IDs, uploads in batches, deletes events only after the server ACKs them, and backs off exponentially while the server is unreachable. |
|
vec
Package vec statically links sqlite-vec (vector search for SQLite) into the SQLite provided by mattn/go-sqlite3.
|
Package vec statically links sqlite-vec (vector search for SQLite) into the SQLite provided by mattn/go-sqlite3. |
|
Package web embeds the built web UI (web/dist, produced by `make ui` and committed so that `go build` does not need Node).
|
Package web embeds the built web UI (web/dist, produced by `make ui` and committed so that `go build` does not need Node). |
Click to show internal directories.
Click to hide internal directories.