internal/

directory
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2026 License: Apache-2.0

Directories

Path Synopsis
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.
claudecode
Package claudecode captures Claude Code activity through its command hooks.
Package claudecode captures Claude Code activity through its command hooks.
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.
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.
Package admission configures context qualification independently of search ranking, scope checks, content expansion, and the final character budget.
Package admission configures context qualification independently of search ranking, scope checks, content expansion, and the final character budget.
Package auth provides device tokens, registration invites and the authentication middleware.
Package auth provides device tokens, registration invites and the authentication middleware.
Package client wraps the MemSpace server HTTP API for client-side use.
Package client wraps the MemSpace server HTTP API for client-side use.
Package config loads MemSpace configuration from TOML and environment variables.
Package config loads MemSpace configuration from TOML and environment variables.
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.
Package db manages the SQLite connection and lifecycle.
Package db manages the SQLite connection and lifecycle.
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.
Package evidence maintains source-backed, versioned evidence relationships.
Package evidence maintains source-backed, versioned evidence relationships.
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.
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.
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.
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.
Package mcpserver exposes MemSpace to agents over MCP (streamable HTTP).
Package mcpserver exposes MemSpace to agents over MCP (streamable HTTP).
Package memory stores memories: durable, source-backed knowledge derived from raw events.
Package memory stores memories: durable, source-backed knowledge derived from raw events.
Package model defines the core data structures shared across the server.
Package model defines the core data structures shared across the server.
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.
Package prompt separates what a user wrote from what they pasted.
Package prompt separates what a user wrote from what they pasted.
Package redact removes secrets from event payloads and bounds their size.
Package redact removes secrets from event payloads and bounds their size.
Package releasecheck asks GitHub, about once a day, for the latest MemSpace release, so the web UI can tell the administrator about a newer server.
Package releasecheck asks GitHub, about once a day, for the latest MemSpace release, so the web UI can tell the administrator about a newer server.
Package search maintains the full-text index and answers scoped queries.
Package search maintains the full-text index and answers scoped queries.
Package server wires up the chi router and all route handlers.
Package server wires up the chi router and all route handlers.
handler
Package handler — context packs and MCP token management.
Package handler — context packs and MCP token management.
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.
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.
Package summary builds rule-based session summaries from a session's events.
Package summary builds rule-based session summaries from a session's events.
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.
Package upgrade replaces the running memspace binary with a release from GitHub.
Package upgrade replaces the running memspace binary with a release from GitHub.
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL