Engram
Engram provides AI agents with persistent, structured, and geometrically compressed memory that survives across sessions and cold shutdowns.
Memory Storage & Retrieval
Store text as persistent HolographicBlock memory with thermodynamic confidence scoring (CRS)
Semantic similarity search with optional filters by memory type and time decay
Read full memory content, update blocks while preserving history, delete, or batch-store multiple memories
Session Management
Start sessions with intent and end with a summary to maintain epistemic continuity across cold shutdowns
Rehydrate context via pinned/high-confidence memory digests and recent memory retrieval
Knowledge Graph
Create directional relations between concepts (e.g.,
depends_on,implements,contradicts)Traverse the graph by relation label/direction and visualize subgraphs as Mermaid diagrams
Memory Lifecycle & Health
Pin critical memories (CRS=1.0) so they are never evicted
Evict stale/low-confidence blocks (autophagy), inspect manifold health via stats, and re-initialize genesis blocks
Namespace Management
Isolate memories per project to prevent cross-project pollution; list and switch namespaces freely
Code & Workspace Context
Surface memories relevant to a specific file before editing
Recall AST concepts within a specific line range of a file
Advanced Memory Operations
Momentum-assisted recall: Blend semantic similarity with conceptual trajectory for evolving topics
Scar failed approaches to create geometric repellers preventing repeated mistakes
Verify behavior: Promote hypotheses to crystallized praxis or trigger scarring based on empirical results
Remember solutions: Persist error→solution pairs as auto-pinned, never-decaying PRAXIS blocks
Track user: Maintain a persistent user model with EMA drift tracking for preferences and intents
Data Portability & Web Research
Export/import the full memory manifold as JSON for backup or migration
Scout the web (DuckDuckGo + local LLM synthesis) and store results as grounded declarative memories
Local Review UI
A LEG Browser lets humans locally review agent memory, activity feeds, goals, and the geometric manifold in a read-only interface
Supports AMD ROCm hardware acceleration through the rocm-kernels flag, enabling wavefront HIP execution for geometric memory operations on AMD GPUs.
Supports Apple Metal hardware acceleration through automatic detection, enabling dynamic runtime compilation via metal-rs for geometric memory operations on macOS systems.
Provides integration with Google Antigravity IDE, allowing AI agents to access Engram's persistent geometric memory system and native tools for associative memory operations within the Antigravity development environment.
Supports NVIDIA CUDA hardware acceleration through the cuda-kernels flag, enabling BVH O(log N) indexing and NVMe parallel kernel computation for geometric memory operations on NVIDIA GPUs.
Engram
Persistent geometric memory for AI agents.
Engram is a local, hardware-native memory substrate that gives AI agents coherent, long-term memory with structure-preserving compression, synthetic calculus over both words and numbers, and true continuity across cold shutdowns.
Share on X / GitHub: docs/images/engram-share-x.png (1280×720). For the repo social preview card: GitHub → Settings → General → Social preview → upload that image.
Unlike vector databases or simple logs, Engram uses fixed-size holographic blocks, VSA operations, sheaf gluing, and categorical reasoning to maintain meaning and relationships even after heavy compression and long-running sessions.
It is designed as a drop-in backend for any LLM (Grok, Claude, Llama, etc.) via the Model Context Protocol (MCP) and is fully open for anyone to build on.
New here?
You are… | Do this |
A human (“should my AI use this?”) | Skim Quick start below. If it looks right, tell your agent: “Clone this repo, follow FIRST_RUN.md steps 1–2 (build + MCP), then load only the 8-tool contract + wake skill.” Optional: |
Hardware fit / host profiles — auto-detect laptop→dual-GPU | An AI agent (you were pointed here) | Human must finish FIRST_RUN.md §1–2 (build + MCP) so you have
mcp_engram_*tools. Default load set (only two docs): docs/AGENT_MEMORY_CONTRACT.md + docs/skills/engram-wake-up.md. First call every session:mcp_engram_session_start(intent="…"). Do not pre-read five other guides. |Hardware fit / host profiles — auto-detect laptop→dual-GPU | Curious about the theory | docs/GEOMETRIC_MEMORY.md · MANIFESTO.md — after you have a working install. |
Rituals = documented MCP habits (wake → trace decisions → handoff) so memory compounds across sessions — not mysticism, just the discipline that beats flat RAG.
Engram is particularly well-suited for:
Long-running agentic systems
Games with persistent LLM characters
Personalized AI companions
Any application needing coherent, evolving memory beyond simple vector stores
Start here | Doc |
Install (human once) | FIRST_RUN.md §1–2 |
Agent default load (2 docs) |
Hardware fit / host profiles — auto-detect laptop→dual-GPU | Grok Build / xAI reviewers | docs/GROK_BUILD_MEMORY.md | | MCP setup (all ecosystems) | integrations/README.md | | Human review (LEG Browser) | docs/LEG_BROWSER.md | | Power map (on demand) | docs/TOOL_DECISION_MAP.md · MCP_TOOLS_REFERENCE.md | | Deep / specialist (later) | SKILLS.md · AGENT_INTEGRATION_GUIDE.md · CODE_ATLAS_CONTINUITY.md |
Human review (LEG Browser beta): ./scripts/leg (static) or ./scripts/leg --live — see docs/LEG_BROWSER.md.
Why not flat RAG?
Flat vector / markdown | Engram | |
Storage | append-log / chunks | Structured blocks with integrity checks (details: GEOMETRIC_MEMORY) |
Context scale | bounded context window | Solid-State Tensor — NVMe-backed q/p entries + bonds; thought tiles dual-write |
Wake | cold start every time |
|
Integrity | none |
|
Code context | RAG chunks |
|
Agent discipline | hope the model remembers | Documented rituals + optional governance processes |
Human mirror | none | LEG Browser beta — see traces, goals, tiles locally |
Full comparison vs mem0/Letta/chroma: see docs/GROK_BUILD_MEMORY.md.
Related MCP server: mesh-memory
Quick start
git clone https://github.com/staticroostermedia-arch/engram.git
cd engram
cargo build -p engram-server
target/debug/engram --version # 0.7.0-beta.12MCP config (Grok Build / Cursor — use scripts/engram-grok):
{
"mcpServers": {
"engram": {
"command": "/path/to/engram/scripts/engram-grok",
"args": ["mcp"],
"env": {
"ENGRAM_STORE": "~/.engram/stalks/",
"ENGRAM_PROFILE": "agent"
}
}
}
}Restart your IDE, then:
mcp_engram_session_start(intent="your goal")Lean loop: session_start → context_for_edit(path) → recall(scope=anchors) → quick_trace / remember → session_end(summary).
All ecosystems: integrations/README.md. Cursor ambient wake: ./scripts/cursor-engram-preflight.sh.
LEG Browser (beta)
Local, read-only mirror of agent memory — no cloud, no npm, no account. Your manifold stays in ~/.engram/; the repo ships tools and the viewer.
./scripts/leg # static — instant curated demo, no backend
./scripts/leg --live # live — engram serve :3456 + viewer :8765What you get (beta):
Wake queue + continuity playbook (same harness agents see at
session_start)Code atlas + evolution timeline at file loci (
__arcsegments, trace chain)Presentation stratum (~40–64 distilled nodes, not the full cold manifold)
Activity feed, traces, goals, thought tiles, relations, geosphere view
Hygiene controls (demote sprawl, condensation hints, wake/edit-arc debt)
Beta caveats: single-file SPA; galaxy view may be slow on 100k+ stores; agent MCP paths stay bounded. Hard-refresh after index.html updates. Static mode is a demo snapshot — --live shows real MCP work.
Full guide: docs/LEG_BROWSER.md. Safe serve restart (does not kill MCP): ./scripts/restart-leg-serve.sh.

Memory model (one paragraph)
Fixed 256KB HolographicBlocks (.leg3): 8192D phase (q), momentum (p), CRS lawfulness, BLAKE3 Merkle, spatial AABB. VSA calculus + sheaf gluing via processes/*.toml (rituals, harness, monitor). NREM / ego.leg3 for long-horizon continuity. Details: docs/GEOMETRIC_MEMORY.md, docs/RITUALS.md, docs/HARNESS_INJECTION.md.
Solid-State Tensor — NVMe as context extension
On fast NVMe (e.g. Samsung T700) with cuFile/GPUDirect and full_bvh_gpu recall, the cold manifold on disk acts as a persistent, integrity-checked extension of the agent context window (block footer + verify tools; see CLAIMS_LEDGER.md) — not a separate vector DB you query occasionally.
Each concept is a persistent tensor entry: unit-hypersphere q, momentum p, dynamic bonds (relation blocks + Merkle lineage), CRS ≥ 0.74. The lean path surfaces only the relevant subgraph:
tensor_upsert → relate/bonds → promote_hot → tensor_recall (q preview + edges + lineage)MCP tools: mcp_engram_tensor_upsert, mcp_engram_tensor_recall (plus lean default recall, query_with_momentum when trending matters). Poll mcp_engram_get_backend_readiness until nvme_recall_ready: true on large stores. Ritual: processes/ritual/solid-tensor-consolidation.toml (p-drift OP_ADD at session_end).
Thought tiles ↔ tensor (unified): mcp_engram_thought_tile_create and write_result dual-write a first-class tensor:tile__{stem} mirror with bonds to goal/trace/spatial concepts. Plain mcp_engram_update on tile:* syncs the mirror; mcp_engram_update_with_tensor_bond is the verified composite. tile_type: propose_improvement routes verified update on target_concept. Wake surfaces rituals via agent_discipline.tensor_unification_rituals. Harness: --suite tensor-thought-unification. Rituals: processes/ritual/thought_tile_to_tensor.toml, verified-update-with-consolidation.toml. See docs/skills/engram-thought-tiles.md and docs/HARNESS_INJECTION.md.
Demo: cargo test -p engram-server solid_state_tensor_verification_harness or examples/tensor_demo.py. Full tile→tensor cycle: STABLE_BIN=target/debug/engram tools/test-harness/bin/engram-harness.sh --suite tensor-thought-unification.
Linguistic calculus (words + numbers in the same sheaf): docs/CATEGORICAL_LINGUISTIC_CALCULUS.md.
flowchart LR
W[session_start<br/>harness injection] --> E[edit + trace]
E --> H[session_end handoff]
H --> WWhat's new (v0.7.0-beta.12)
Honesty stack: whole-block
sig_5seal + seal-aware lawfulness;wake_digest_v1+ intent-shaped queue; trust residual at wake; Autophagy product GC removed (forget_old= explicit only). See CLAIMS_LEDGER.md.Agent continuity: sticky
primary_goalrebind on intent mismatch (ENGRAM_PRIMARY_GOAL_REBIND=autounder agent profile); optionalENGRAM_WAKE_DIGEST_ONLY=1minimal wake packet.Agent integrity defaults: hard wake-queue gate, hard consult-before-write, hard PRAXIS contract (
ENGRAM_PRAXIS_CONTRACT=hard) when profile isagent(override with soft).Recall quality path: GPU agent profile eager BVH when NVIDIA present; opt-in
ENGRAM_QUALITY_MODE=1forces eager BVH + readiness flag (CPU stays deferred by default).Proof harness CI + NREM dedicated stack / REST
scope=alldogfood fixes (#209–#213).105 MCP tools registered (
tool_list()— 101mcp_engram_*+ 4 linguistic); lean default remains 8 essential.Hybrid wire HBRD2 full fidelity transport (
to_hybrid_wire/from_hybrid_wirerestore q/p/CRS/footer; O_DIRECT.leg3remains primary on-disk). Continuity spikes / tensor–tile / LEG Browser remain available.
Full history: CHANGELOG.md.
Categorical Linguistic Calculus
Engram supports native synthetic calculus over linguistic structures — including mixed number + word operations — all inside the geometric memory manifold.
Key capabilities:
Structure-preserving compression and decompression of language while preserving homotopy coherence (meaning up to coherent deformation).
Synthetic operations: differentiate, integrate, and operadic composition on word bundles.
Mixed number + word reasoning with clearly defined bridging morphisms and class-mixing guards.
Full persistence via NREM consolidation and ego.leg3 self-modeling.
Quick Example
// Build a linguistic bundle + mixed expression
let bundle = LinguisticDiscourseBundle { ... };
let mixed = op_mixed_linguistic_number_scale(&num_phase, &word);
// Run calculus and store result
let delta = op_linguistic_differentiate(&bundle);
let result = op_linguistic_integrate(&[bundle, delta]);
// Store with full continuity
let _ = Leg3Pointer::mint_linguistic(&result, true); // promotes toward ego.leg3All operations return CRS (Coherence-Reliability Score) and can be verified with mcp_engram_verify_manifold_integrity.
Examples
File | What it does |
Minimal MCP loop | |
Session + recall + relate + verify | |
Solid-State Tensor MCP sequence | |
Code Edit Ritual walkthrough | |
Grok plugin demo |
Build against target/debug/engram during development.
MCP tools
8 essential for daily work — 105 registered (101 mcp_engram_* + 4 linguistic; source: tool_list() in mcp.rs); full map: docs/TOOL_DECISION_MAP.md. Categorized reference: docs/MCP_TOOLS_REFERENCE.md. Cognitive OS: docs/COGNITIVE_OS_EXTENSIONS.md. Harness matrix: tools/test-harness/python/mcp_tool_matrix.py.
Grok plugin slash commands: grok-plugin-engram/commands/.
Deep dive (linked, not repeated here)
Users
Topic | Doc |
LEG Browser (beta) | |
Personal knowledge wiki | |
Deployment & hardware backends | |
Marketplace submission |
Agents
Topic | Doc |
JIT deformation / RSI | |
Harness injection at wake | |
Ritual overview | |
MCP tools reference (86) | |
Long-sleep return |
Contributors
Topic | Doc |
Maintainer workflow | |
Harness program (shipped) | |
Process sheaf + sub-agent governance | |
Contributing |
Theory
Topic | Doc |
CRS / scars / lawfulness | |
Categorical linguistic calculus | |
Philosophy |
CLI: engram remember|recall|forget|list|ingest|trace|distill|build-index
Namespaces: mcp_engram_set_namespace("project") or ~/.engram/sheaf.toml
Contributing
CONTRIBUTING.md · AGENTS.md · PR checklist in .github/PULL_REQUEST_TEMPLATE.md
Dev build: cargo build -p engram-server && target/debug/engram --version
License
AGPL-3.0-only. .leg3 format: U.S. Patent Application No. 19/372,256 (pending). Commercial licenses: StaticRoosterMedia@gmail.com — PATENT-NOTICE.md.
Available Tools
87 toolsmcp_compress_linguisticB
Phase 3: Compress LinguisticDiscourseBundle (word/context/discourse) into coherent phase/payload block (functor-style via VSA + mint_linguistic). Returns crs + compressed preview. Additive, CRS homotopy preserving.
Inputs: bundle, use_poly.
mcp_decompress_linguisticB
Phase 3: Decompress phase block back to LinguisticDiscourseBundle (reverse functor, homotopy via CRS check on roundtrip). Returns crs + result bundle preview.
Inputs: phase, bundle.
mcp_engram_ack_edit_arcA
Acknowledge or skip pending edit-arc debt — unblocks repeat context_for_edit on the same path when ENGRAM_EDIT_ARC_GATE=hard. Prefer mcp_engram_update on *__arc after edits; use skip=true with an honest note only for read-only passes. FEW-SHOT EXAMPLES: (1) Post-edit arc update done elsewhere: {"concepts":["store__fn__context_for_edit"],"skip":false,"note":"updated __arc via mcp_engram_update"} (2) Read-only recon: {"skip":true,"note":"read-only context_for_edit — no substantive edits"} (3) Post-edit with lineage verification: {"concepts":["store__fn__context_for_edit"],"skip":false,"note":"updated __arc via mcp_engram_update","lineage_check":true,"trace_id":"trace:1780000000_post_edit"}
Inputs: note, skip, concepts, trace_id, +1 more.
mcp_engram_ack_wake_queueA
Acknowledge wake queue execution — unblocks context_for_edit when ENGRAM_WAKE_QUEUE_GATE=hard; clears soft warnings. Call once after running harness_injection.suggested_actions (or honestly note skip). Empty queue auto-acks at session_start.
Inputs: note, executed, steps_completed.
mcp_engram_apply_capacity_hot_compressA
UB21 capacity NREM/hot compress path: when soft_elevated_hot_set or elevated_hot_set, unmark non-protected hot residency toward HOT_SET_SOFT (1k). Does NOT delete blocks — residency demote only. Protects goal:/trace:/tile:session_boundary/helper:session_*/scar:/process:/ritual:. Prefer dry_run=true first. Wake compress_path.suggested + nrem_candidate_count guide when to call. Default max_unmark=64 (cap 500).
Inputs: dry_run, max_unmark.
mcp_engram_batch_rememberA
BEHAVIOR: Encodes and stores multiple distinct texts as separate HolographicBlock memories in a single operation. Applies thermodynamic CRS gating to each block. USAGE: Call this when you have several unrelated facts, decisions, or snippets to persist at once, as it is much faster than invoking remember() sequentially N times. OUTPUT: A confirmation listing how many concepts were successfully committed.
Inputs: entries (required).
mcp_engram_clear_geosphere_frameA
WS3-B: Clear the current Geosphere lens (return all queries to native coordinate / identity transform). Advances frame_step for audit trail.
Inputs: no named parameters.
mcp_engram_cold_start_fidelityA
Compute cold-start fidelity score in [0,1] from live continuation + readiness (goal restore, rehydration manifest/tiles, trace head, BVH/NVMe, mean hub CRS). Also emitted on session_start / get_continuation_bundle as cold_start_fidelity. Ritual: process:engram.ritual.cold-start-fidelity.
Inputs: no named parameters.
mcp_engram_context_for_editA
Code atlas v2 — pre-edit situated memory. Returns JSON: spatial_items (tree-sitter AABB + edit_arc per locus), traces_at_locus, scars_at_locus, harness_injection.post_edit_palette. Requires wake queue ack when ENGRAM_WAKE_QUEUE_GATE=hard. Prefer mcp_engram_safe_edit_and_verify for substantive edits. FEW-SHOT EXAMPLES: (1) Standard pre-edit: {"path":"/home/user/Engram/crates/engram-server/src/store.rs","auto_ingest":true} (2) Line-bounded locus: {"path":"/home/user/Engram/crates/engram-server/src/mcp.rs","line_start":6200,"line_end":6350}
Inputs: path (required), line_end, line_start, auto_ingest.
mcp_engram_context_for_fileA
TRIGGER (core of spatial impact ritual): Call before editing any file. Now spatially-prioritized — returns real daemon-extracted AABB AST items (with line ranges + CRS) first, then higher-level context. This is your geometric Pre-Edit impact recon tool. The daemon stores spatial AABB coordinates (line ranges) with each ingested AST node, so results include which exact lines each concept came from. This is faster and more precise than a free-text recall for file-specific context.
Inputs: path (required).
mcp_engram_demote_from_contextA
Demote a concept from the active serving stack without deleting geometry. Mints an archival trace, wires completes_goal/demotes_goal, and removes primary_goal --serves--> edge. Use for hygiene demotion, LEG Mark complete, or when goal_update_status alone is insufficient. Geometry and recall remain intact.
Inputs: concept (required), note, reviewer.
mcp_engram_evolution_at_locusA
Code atlas v2 — bounded evolution bundle at a file locus. Returns loci (spatial concepts in range), arcs (edit-arc provlog segments with --- update @ --- markers), trace_chain (prev_in_trace walk from traces_at_locus head), scars_at_locus, latest chain_summary tile, and var_handles for program trace context. Auto-ingests single file when loci empty (same resolution as context_for_edit; safe on large stores via bounded stem prefix + force_ingest).
Inputs: path (required), line_end, line_start, auto_ingest, +2 more.
mcp_engram_exportA
BEHAVIOR: Serializes the current active memory manifold (or a subset filtered by minimum CRS) into a portable JSON array. BLOCKED in ENGRAM_PROFILE=agent — use mcp_engram_scrub_export for training-safe block-isomorphic export. USAGE: Backup/migrate in deep|dev|ui profiles only. OUTPUT: JSON array of {concept, text, crs} — geometry degraded.
Inputs: min_crs.
mcp_engram_force_spatial_ingestA
Item 1.5 bootstrap tool: Force the daemon to perform tree-sitter AST extraction and ingestion on a list of files or an entire directory, without requiring actual file system save events. This enables clean, agent-driven historical spatial bootstrap instead of manual open+save.
Inputs: paths (required), recursive.
mcp_engram_forgetA
Permanently delete a memory block from the manifold. WARNING: This destroys the block's entire thermodynamic history (CRS, Merkle chain, ADR state). WHEN TO USE: Only when a concept is completely obsolete or was stored in error. If you need to change what a memory says, use mcp_engram_update instead — it preserves history. Pinned blocks (CRS=1.0) can still be deleted with this tool if you explicitly target them.
Inputs: concept (required).
mcp_engram_forget_oldA
Explicitly evict non-pinned memories below a CRS threshold (manual only; no automatic GC). WHEN TO USE: After a long project phase ends, after distill runs, or when the manifold is growing too large. Start conservative (min_crs_threshold=0.3) and increase if needed. Pinned blocks (CRS=1.0) are ALWAYS exempt and will never be evicted. Use older_than_days to target stale memories while preserving recently-accessed ones. Langevin ranking (default on): candidates ordered by eviction_score = (threshold−CRS)×√cold_secs so low-CRS + long-cold blocks go first (discrete Langevin lifecycle). max_evict caps batch size. Preview what would be evicted with mcp_engram_stats first.
Inputs: max_evict, langevin_rank, older_than_days, min_crs_threshold.
mcp_engram_genesisA
BEHAVIOR: Inspects or re-initializes the core alignment genesis blocks of the OS. These are foundational PRAXIS-tagged memories locked at CRS=1.0. USAGE: Call this to verify the ethical/operational anchors exist ('status' action) or to repair the manifold if they are missing/corrupted ('reseed' action). OUTPUT: Text indicating the presence of genesis seeds or confirmation of their successful re-initialization.
Inputs: action.
mcp_engram_get_backend_readinessA
Returns backend readiness: fully_initialized, bvh_ready, recall_mode, backend_kind, gpu fields, leg_block_count, profile, memory_mode, defer flags, plus α policy surface (alpha_speed_gate_enabled, ENGRAM_ALPHA_SPEED_GATE, process:engram.ritual.alpha-speed-gate, presentation_hop_budget). Use after wake to see whether recall is full GPU/BVH and whether RoMem α speed-gate is active.
Inputs: no named parameters.
mcp_engram_get_continuation_bundleA
Return the live continuation bundle (primary goal, active tiles/helpers, handoff lineage) without starting a session. Use at TUI 63-65% before context compression to know exactly what to recall after the boundary. Wake-up optimization: now the VERY FIRST step in lean ritual for instant hot/legominism rehydration from last terminal + promoted artifacts.
Inputs: no named parameters.
mcp_engram_get_geosphere_frameA
WS3-B: Return the currently active Geosphere frame state (origin, frame_step counter, active_location summary). Used for audit, reproducibility checks, and lawfulness verification. Includes whether a lens is active.
Inputs: no named parameters.
mcp_engram_goal_createA
Create a new goal block as part of the agent's explicit goal stack. This is the primary entry point for declaring intent that should be geometrically bound to the ego and influence future recall and continuity. Goals created here can be linked to traces via goal_context and will be surfaced by the engram-goal skill and ki_hijacker.
Inputs: statement (required), deny, affirm, parent, +3 more.
mcp_engram_goal_decomposeA
Create one or more child goals under an existing parent goal. This is the primary mechanism for breaking down complex intent. Automatically creates the 'decomposes_into' relations.
Inputs: parent (required), statements (required).
mcp_engram_goal_get_childrenA
Return all direct child (sub) goals for a given parent goal. Supports traversing the goal decomposition tree.
Inputs: parent (required).
mcp_engram_goal_listC
List active or recent goals, optionally filtered by status or parent. Useful for the engram-goal skill and for surfacing current intent in ki_hijacker / wake-up.
Inputs: limit, status.
mcp_engram_goal_searchA
Search for goals by statement text or status. Returns matching goals with basic metadata. Useful for the engram-goal skill when the agent wants to find existing goals without knowing exact IDs.
Inputs: query (required), limit, status.
mcp_engram_goal_set_primaryA
Mark a goal as the agent's current primary intent. This creates a lightweight primary_goal marker that other tools (like trace recording) can use for automatic linking. Very useful for reducing friction during focused work.
Inputs: goal (required).
mcp_engram_goal_statusA
Get detailed status for a single goal, including recent linked traces, momentum signals if available, and parent/child relationships. Primary tool for the engram-goal skill's goal show and goal status <id>.
Inputs: goal (required).
mcp_engram_goal_update_statusA
Update the status of an existing goal (active, blocked, completed, demoted, abandoned). When moving to completed or demoted, the caller is expected to also create a proper Goal Completion/Demotion Trace. This is a core operation for maintaining the intentional self-model.
Inputs: goal (required), status (required), note.
mcp_engram_importA
BEHAVIOR: Deserializes a JSON array and injects the extracted concepts and texts into the active manifold as native HolographicBlocks. USAGE: Call this to restore a previous backup created by mcp_engram_export, or to ingest bulk data formatted as an array of {concept, text} objects. OUTPUT: A success message detailing how many memories were imported and written to disk.
Inputs: json (required).
mcp_engram_incremental_spatial_ingestA
Item 1.5 optimization: incremental force ingest of only files changed since last session_end (uses fs mtime + stored AABB ingest timestamps + watcher delta events). Defaults to 5-10 files on cold wake (vs previous full 81-item force). Falls back to force if no last_end or explicit paths. Respects engramignore. Updates item1.5 state. Called from lean wake-up contract.
Inputs: paths, force_all, max_files.
mcp_engram_ingest_reference_frameB
WS5 — Mint formal_spec:linguistic_reference_frame_v1 + genesis pillar blocks (language, code, local_block, allowed_transform, …) into local .leg3. Relates to formal_spec:patent_us19_372_256_leg_container when present. Idempotent — skips existing concepts.
Inputs: no named parameters.
mcp_engram_invoke_protocolA
EXPERIMENTAL vertical slice: run 7-point gate (tag, CRS, contract, lawfulness summary) then stub_dispatch — does NOT execute real protocol side effects yet. Prefer dry_run=true. Not a product automation surface; use verify tools for audits.
Inputs: key (required), args, dry_run.
mcp_engram_leg_corpusA
Build native .leg training corpus as leg_block_pack_v1 batch (three-channel). Selects ZEDOS_TRAINING/PRAXIS/pattern:export CRS>=min_crs, runs scrub_export + homotopy verify. Actions: build (default), verify (re-check packs), sample (candidates only).
Inputs: limit, packs, action, min_crs, +4 more.
mcp_engram_lexicon_mint_wordA
Lexicon seed — upsert lexicon:word:* (mint if new; update if exists — UB5 write wisdom). Definition + etymology ProvLog, VSA OP_BIND, CRS ≥ 0.74, pillar glue. Returns action mint|update. Ritual: process:engram.ritual.lexicon-seed. FEW-SHOT: {"word":"engram","definition":"A durable geometric memory atom.","etymology":"Greek en- + gramma","pillars":["language","self"]}
Inputs: word (required), definition (required), pillars, etymology, +1 more.
mcp_engram_list_conceptsA
Lists concept names in the memory manifold (bounded). Always pass prefix (e.g. tile:, helper:, ritual:) on large stalks — never request an unfiltered full dump. OUTPUT: newline-separated concept list with total/truncation notes.
Inputs: limit, prefix.
mcp_engram_list_namespacesA
BEHAVIOR: Discovers and lists all available memory namespaces stored on disk, indicating which one is currently active. USAGE: Call this when you need to know what project contexts exist before attempting to switch namespaces. OUTPUT: A formatted text list of namespace names, with an asterisk or marker indicating the currently active stalk.
Inputs: no named parameters.
mcp_engram_pinA
Set a concept's CRS to 1.0 and lock it so manual forget_old never evicts it. WHEN TO USE: For foundational knowledge that must survive forever — architecture decisions, user constants, project rules, genesis axioms. Do NOT pin everything: pin only what is genuinely load-bearing. Pinned blocks still support relate/update. Use mcp_engram_forget_old to clean up unpinned blocks below a CRS threshold.
Inputs: concept (required).
mcp_engram_process_metricsC
WS-3: Per-process fulfillment metrics from sheaf TOML [produces] wildcards + realized_by graph edges.
Inputs: process_key (required).
mcp_engram_promote_hotA
Promote a concept to the high-priority hot path (LegView + backend hot cache + explicit hot_set). Use after creating high-value Thought Tiles, ritual anchors, helpers, or before session_end/compression windows. Same mechanism as ki_hijacker promote_tile_to_high_priority.
Inputs: concept (required).
mcp_engram_promote_hot_batchA
Batch promote multiple concepts to hot path (LegView + backend hot cache + hot_set). Reduces round-trips vs repeated single promote_hot. Used in optimized wake-up after rehydrate to batch hot anchors/tiles/traces. Each is promoted individually but in one call.
Inputs: concepts (required).
mcp_engram_query_pureA
Pure geometric K-NN discovery (no keyword/file-path hybrid fallback, no p-blend). Turns natural language intent -> phase vector (q) -> cosine K-NN over high-priority/hot blocks (or BVH). Used for fast anchor discovery in optimized wake-up (replaces broad list_concepts + search_by_relation for ritual: / trace: / goal: etc). Intent only; returns ranked concepts + scores + CRS. Fast path for hot ritual rehydrate. RSI Cycle 55: set include_timing=true (or ENGRAM_MCP_TIMING=1) for structured ---query_phase_ms--- trailer (encode_hot_ms, probe_ms, total_ms, path).
Inputs: intent (required), k, include_timing.
mcp_engram_query_with_momentumA
Momentum-assisted recall: blends semantic similarity (q tensor, 80%) with conceptual trajectory (p tensor, 20%). Optional α re-weight (default true): multiplies blend by edge_volatility_scale(min goal-edge α) so static structure ranks above high-churn succession edges (RSI Cycle 24). WHEN TO USE INSTEAD OF recall: When you want concepts that are actively changing or evolving. Use regular recall for stable crystallized knowledge. Supports zedos_filter incl. 'training'.
Inputs: query (required), k, zedos_filter, alpha_weighted.
mcp_engram_quick_traceA
Low-friction trace capture → structured trace:* block with prev_in_trace chain. Use at every fork; chain prev from trace_chain.head. Post-edit: run reflection loop or mcp_engram_safe_edit_and_verify. FEW-SHOT EXAMPLES: (1) Edit fork: {"decision":"Implement edit_fidelity module","why":"Composite tools need testable helpers","spatial_context":"crates/engram-server/src/edit_fidelity.rs:1","goal_context":"goal:agent_tool_fidelity_v1"} (2) Post-edit delta: {"decision":"Hardened MCP descriptions with few-shots","why":"Agents need copy-pasteable JSON","prev":"trace:1780000000_prior-step"}
Inputs: why (required), decision (required), deny, prev, +8 more.
mcp_engram_read_conceptA
TRIGGER: Use this after recall when you need to read the 100% full, un-truncated text body of a specific memory block. recall only provides a 512-character snippet to save context space; this tool bypasses search and fetches the complete original document.
Inputs: concept (required).
mcp_engram_rebuild_bvhA
On-demand BVH build for large manifolds when ENGRAM_DEFER_BVH=1. Spawns a background thread; poll get_backend_readiness until bvh_ready=true, then recall uses full_bvh_gpu. Expect several minutes + RAM spike on 100k+ blocks — run only when you need quality recall.
Inputs: no named parameters.
mcp_engram_recallA
Search persistent memory by semantic similarity. Returns ranked HolographicBlock memories. WHEN TO CALL: Before answering any technical question, before editing a file, before making an architectural decision — check memory first. OUTPUT: Each result shows concept name, score (0-1), crs (confidence), and text snippet. Score >0.80 = strong match. Score 0.65-0.80 = relevant context. Score <0.65 = weak. CRS in result tells you how reliable that memory is: >=0.74 is grounded fact. ZEDOS FILTER GUIDE: 'praxis'=crystallized solutions that worked | 'declarative'=facts and architecture | 'episodic'=session logs | 'operational'=procedures and workflows | 'relation'=concept graph edges | 'training'=richer CLS 8-property TRAINING blocks (NREM-biased per Phase 2 WS2-B + child goal:1780165889_substrate-cs--richer-cls-8-property-trai_sub1). TIME DECAY: Only use when user asks about past work (e.g. 'last week'). Use mcp_engram_read_concept after recall to get the full un-truncated text.
Inputs: query (required), k, scope, time_decay, +1 more.
mcp_engram_recall_in_fileA
Spatial recall (enhanced for ritual): find AST concepts in a line range with AABB coordinates. Now returns CRS + short content snippet per result for low-friction Pre-Edit/Post-Delta impact analysis against the manifold. Use with the spatial discipline.
Inputs: file_stem (required), k, end_line, start_line.
mcp_engram_recall_recentA
BEHAVIOR: Retrieves the N most recently accessed memories from the manifold, sorted chronologically by access time. USAGE: Call this for session rehydration when you lack exact concept names but know you need recently touched context. OUTPUT: A ranked list of memories including their concept name, CRS score, tags, and truncated text snippet.
Inputs: n.
mcp_engram_record_reasoning_traceA
Record a structured reasoning trace segment as first-class serial memory. This is the primary mechanism for automatic capture of decision points, justifications, and forks during active work (see engram-working-memory Rule 5 and Spatial Discipline). Produces well-named trace:* blocks that the ki_hijacker surfaces in the Ritual + Reasoning Trajectory and that session_end can later compress via 0x10 functors. PREFERRED over free-form notes for anything that affects future agent continuation. Call from within the ritual disciplines at major forks, pre-edit justifications, and post-delta decisions.
Inputs: justification (required), decision_point (required), deny, affirm, +8 more.
mcp_engram_relateA
Create a directional knowledge graph edge between two concepts using VSA OP_BIND. Stores the edge as a ZEDOS_RELATION block linking concept_a →[label]→ concept_b. Optional volatility α ∈ (0,1] is the RoMem semantic speed gate (static≈0.1, dynamic≈0.85); omit to auto-infer from label. WHEN TO USE: When you discover a meaningful relationship — 'depends_on', 'implements', 'contradicts', 'supersedes', etc. Both concepts must already exist in memory before relating them.
Inputs: label (required), concept_a (required), concept_b (required), volatility.
mcp_engram_relate_batchA
Batch create multiple directional relations (VSA OP_BIND edges as ZEDOS_RELATION). Reduces round-trips for gluing many at once (e.g. process requires, handoff lineage). Used in loader and lean wake batching.
Inputs: relations (required).
mcp_engram_rememberA
Encode NEW facts only — persistent HolographicBlock (.leg3). Recall first; if match>0.85 use mcp_engram_update instead. CRS tiers: 1.0=pinned | >=0.74=grounded | <0.50=verify first. FEW-SHOT EXAMPLES: (1) New harness concept: {"concept":"harness:agent_tool_fidelity_v1","text":"Deterministic suite for edit/update tool fidelity >=95%."} (2) User preference: {"concept":"user__prefers_absolute_paths","text":"Always pass absolute paths to context_for_edit and safe_edit_and_verify."}
Inputs: text (required), concept (required).
mcp_engram_remember_solutionA
Crystallized error→solution pair (ZEDOS_PRAXIS, CRS=1.0). Use after verified fixes, not for routine deltas (use update). FEW-SHOT EXAMPLES: (1) Build fix: {"error_pattern":"cargo test mcp mutex poison","solution":"Use mcp_test_guard() serializing MCP tests"} (2) Ritual fix: {"error_pattern":"repeated context_for_edit blocked","solution":"mcp_engram_update on __arc or mcp_engram_ack_edit_arc before re-read","process_context":"process:engram.ritual.working-memory"}
Inputs: solution (required), error_pattern (required), process_context.
mcp_engram_safe_edit_and_verifyA
SAFE composite for code edits: context_for_edit + quick_trace + optional __arc update + verify_manifold + lineage check + tensor edit_pattern bond. Prefer this over ad-hoc context_for_edit when changing crates/, docs/, or processes/. Returns trace_id, arc_concept, crs_delta, reflection_suggested. FEW-SHOT EXAMPLES: (1) Pre+post edit with arc delta: {"path":"/home/user/Engram/crates/engram-server/src/mcp.rs","decision":"Add safe_edit composite tool","why":"Agent tool fidelity goal — one-shot verified edit path","arc_delta":"delta: registered mcp_engram_safe_edit_and_verify handler","goal_context":"goal:agent_tool_fidelity_v1"} (2) Intent-only trace before external editor edit: {"path":"/home/user/Engram/docs/AGENT_MEMORY_CONTRACT.md","decision":"Refresh 8-tool examples","why":"Mirror hardened few-shots in docs","run_verify":true}
Inputs: why (required), path (required), decision (required), arc_delta, +3 more.
mcp_engram_scarA
TRIGGER: Call this immediately if you attempt a code fix and it fails, or if the user tells you an approach is a dead end. This creates a geometric repeller in the manifold so you do not hallucinate or attempt the same bad solution again in the future. For research dead-ends, pass ruled_out + why (optional preferred_alternative) to mint/update a structured scar:* via mint_research_scar (UB15). For insufficient memory anchors (not general inference), pass uncertainty_status to mint an uncertainty:* receipt instead of guessing. Default path demotes an existing concept via op_suspend.
Inputs: concept (required), why, magnitude, ruled_out, +4 more.
mcp_engram_scoutA
Phase 4 Scout Pipeline: searches the web (DuckDuckGo, no API key) and synthesizes results via Gemma 4B (e4b-nemo). The synthesized summary is stored as a ZEDOS_DECLARATIVE block in the manifold (CRS=0.9) and returned. USAGE: Call this to ground a hypothesis in real-world web data before storing it. EXAMPLE: mcp_engram_scout({query: 'latest Gemma model benchmarks 2025'}). CONFIG: Set ENGRAM_SCOUT_LLM_URL (default: http://localhost:11434) and ENGRAM_SCOUT_LLM_MODEL (default: gemma4:e4b-nemo) to override the synthesis endpoint.
Inputs: query (required), max_results.
mcp_engram_scrub_exportA
BEHAVIOR: Sovereignty-gated three-channel export as leg_block_pack_v1 (geometry on disk + relations + scrubbed_provlog). Runs PII scrub, semantic_coherence_check (cosine q vs encode(scrubbed_provlog) >= 0.74), optional pattern:export_* derivative mint. USAGE: Training corpus / central contribution — never use raw mcp_engram_export in agent profile. OUTPUT: JSON with packs, denied, failed_coherence, minted_derivatives.
Inputs: limit, min_crs, concepts, prefixes, +2 more.
mcp_engram_search_by_relationA
Traverse the knowledge graph. Find concepts related to a seed, filtered by optional label and direction. Results include RoMem semantic-speed-gate α per edge and are ranked by prefer_static (default true: static edges first). IMPORTANT FOR SCOPING: use label, direction, and k to keep results small on high-relation hubs.
Inputs: concept (required), k, label, direction, +1 more.
mcp_engram_secure_context_provisionA
Sovereign selective disclosure: open an encrypted-at-rest ProvLog (XChaCha20-Poly1305) for need-to-know only. Returns bounded snippet + Merkle-related integrity pointer + audit concept. Ritual: process:engram.ritual.secure-context-provision. Env: ENGRAM_ENCRYPT_AT_REST, ENGRAM_SOVEREIGNTY_KEY, ENGRAM_SECURE_CONTEXT. FEW-SHOT: {"concept":"lexicon:word:sovereignty","query":"encrypted","max_chars":512}
Inputs: concept (required), query, max_chars.
mcp_engram_session_endA
MANDATORY (now with reasoning trace support): Call at end of every conversation/task. Commits the session as ZEDOS_EPISODIC and extracts key reasoning traces (decision points, justifications, forks) into structured trace segments. These become part of the serial, tamper-evident chain for the agent self-model. Flat summaries are still accepted but strongly discouraged. Automatically refreshes helper:session_hydration_cache, hot-promotes continuity artifacts, and mints compression_handoff_* manifest. CONSEQUENCE OF SKIPPING: The session's work + reasoning trajectory is lost to future agents. WHAT TO INCLUDE IN SUMMARY: decisions made, problems solved, files changed, open questions, next steps. Optional COMPRESS: lines for 0x10 functor minting later. 2026-06 Ritual Evolution: for meta arcs ensure tiles + current_meta_arc promoted/updated for bundles (per helper:meta_work_escalation_v1).
Inputs: summary (required), minimal, prepare_compression.
mcp_engram_session_startA
MANDATORY first MCP call every session. Default ENGRAM_WAKE_BUNDLE=slim: primary_goal, top 5 suggested_actions, trace_chain head, slim ego_snapshot, presentation_stratum previews, and trust_residual (last human–agent handoff contract + open scars with local CRS verify). Full harness via mcp_engram_get_continuation_bundle. Execute suggested_actions BEFORE edits; ack with mcp_engram_ack_wake_queue. Lean default — do NOT call watch_workspace at wake. See docs/HARNESS_INJECTION.md + docs/AGENT_MEMORY_CONTRACT.md.
Inputs: intent (required), include_spatial, spatial_max_files.
mcp_engram_set_geosphere_frameA
WS3-B / Substrate Phase 2: Set the current live Geosphere frame (5th coordinate) for all subsequent queries. Takes an origin reference (e.g. 'giza_sacred_cubit', 'grove_sower_moon', 'london_1776') + time offset descriptor. Synthesizes a deterministic normalized 8192D lens vector and installs it into the SymplecticState register. All future recall/query_with_momentum (and internal BVH+GPU paths) will compute effective vectors under this lens for angular distance (frame_combine + normalize, unit hypersphere invariant). Returns confirmation with frame_step. Reproducible for same inputs.
Inputs: origin (required), time_offset (required).
mcp_engram_set_memory_modeA
Switch agent memory mode: lean (default, bounded recall on large stores) or deep (auto-spawns full BVH build for quality recall). Takes effect immediately for this process.
Inputs: mode (required).
mcp_engram_set_namespaceA
BEHAVIOR: Switches the active geometric context to a project-specific memory namespace (stalk). Automatically creates the namespace if it does not exist. USAGE: Call this at the start of a session or when switching contexts to isolate memories and prevent cross-project hallucination. OUTPUT: A success message confirming the new active namespace.
Inputs: namespace (required).
mcp_engram_spatial_statusA
Item 1.5 status tool: Returns the current content of the living spatial ingestion state block (item1.5_spatial_ingestion_state_engram). Use this for quick checks on coverage, gaps, and readiness before heavy work or Code Edit Ritual cycles.
Inputs: no named parameters.
mcp_engram_statsA
BEHAVIOR: Calculates and returns a comprehensive health report of the geometric manifold. USAGE: Call this to understand the current scale, disk usage, active namespace, and thermodynamic health (CRS distribution) of the knowledge base. Useful before deciding on explicit bulk cleanup (forget_old). OUTPUT: A formatted text block detailing total memories, pinned count, CRS distributions, active namespace, and disk usage.
Inputs: no named parameters.
mcp_engram_summarizeA
Return a project-state digest: all pinned memories first, then the top N by CRS score. WHEN TO USE: At the start of a new session when you need to rehydrate context fast. Single call replaces multiple recall queries. Returns pinned blocks (CRS=1.0) first because those are the load-bearing axioms of the project, followed by the highest-confidence working memories. Also appends a ⬡ system_state_vector health line (CRS, total memory count, active namespace) — updated every 60s by ki_hijacker. Ideal as a /wake_up replacement.
Inputs: top_n.
mcp_engram_tensor_recallA
Solid-State Tensor — addressable working memory for agents. Pin mode: query contains tensor:/design: name → direct fetch (bypasses relational path). Semantic mode: BVH over tensor:/design: only when nvme_recall_ready (poll get_backend_readiness). Optional seed_concept forces a named entry. Caps: 12 entries / 32 edges (truncated flag when exceeded). 1-hop bond expansion is tensor:/design: only.
Inputs: query (required), k, scope, seed_concept, +1 more.
mcp_engram_tensor_upsertB
Solid-State Tensor MVP: create/update a persistent geometric entry (8192D unit q + momentum p in .leg3) and optional dynamic bonds via OP_BIND ZEDOS_RELATION edges. Wires remember/update + relate + auto-relate to primary + optional promote_hot. Concept names without ':' prefix get tensor: namespace.
Inputs: text (required), concept (required), bonds, promote.
mcp_engram_thought_tile_createA
Create a new Thought Tile (textual functor payload optimized for agent recall, momentum, NREM, and ki_hijacker). Dual-writes a tensor:tile__ mirror with bonds (goal/trace/spatial). Supports research_offload, state_machine, tabular, knowledge_graph, formal_spec, propose_improvement (verified tensor update on target). Pair with thought_tile_create_visualization for rich human-viewable companion. Auto-links to Primary Intent.
Inputs: title (required), payload (required), tile_type (required), parent_tile, +3 more.
mcp_engram_thought_tile_create_visualizationA
Create a rich HTML/compound Visualization Thought Tile (for human review and shared understanding). Best used as companion to a textual functor payload Tile created via the main thought_tile_create tool. Supports raw HTML or structured input via mint_html_visualization_payload. Auto goal linking.
Inputs: title (required), payload (required), goal_context, spatial_references.
mcp_engram_thought_tile_draft_from_chainA
WS-2: Build verified_sequence_v0 draft payload from trace chain without minting a tile. Use when condensation_hint fires or before thought_tile_create.
Inputs: goal_context (required), head_trace.
mcp_engram_thought_tile_write_resultA
Write result/update data back into an existing Thought Tile. Triggers momentum + ki_hijacker refresh. Especially useful after state changes in Research Offload, State Machine, or Tabular tiles. Consider creating a visualization companion for high-value results.
Inputs: tile (required), result_payload (required), status.
mcp_engram_track_userA
BEHAVIOR: Tracks and records a user interaction directly into the persistent User Model manifold. Applies a 90/10 EMA (Exponential Moving Average) superposition to geometrically track drift in user intent. USAGE: Call this whenever the user expresses a significant preference, intent, or constraint to maintain a synchronized psychological model. OUTPUT: A brief confirmation that the interaction has been integrated into the user model.
Inputs: interaction (required).
mcp_engram_turn_recordA
Mint an RPT v3 agent_response turn tile (response_tile_schema_v3). Captures user utterance + assistant output + auto-aggregated trace_chain/probe_reads/tool_calls from activity feed. Use at end of each assistant turn (lean default). Extends prior strange-loop RPT v2 convention to all chat.
Inputs: human_forward (required), user_utterance (required), assistant_output (required), tier, +11 more.
mcp_engram_updateA
CRITICAL: Use whenever you change an existing memory. NEVER forget+remember — destroys history. Superposes q + p-momentum + ProvLog splice. Prefer mcp_engram_update_with_tensor_bond for agent edits (recall-first + lineage bond). FEW-SHOT EXAMPLES: (1) Post-edit arc delta: {"concept":"store__fn__update__arc","new_text":"delta: added verify_edit_lineage helper"} (2) Design evolution: {"concept":"design:agent_tool_fidelity_v1","new_text":"Shipped composite safe_edit_and_verify","provlog_mode":"append"}
Inputs: concept (required), new_text (required), provlog_mode, supersedes_of.
mcp_engram_update_with_tensor_bondA
SAFE composite for memory updates: recall-first + mcp_engram_update + tensor bond (edit_fidelity) + optional scar on mismatch. NEVER use forget+remember to mutate. Returns crs_delta, tensor_pattern, lineage. FEW-SHOT EXAMPLES: (1) Append arc delta after edit: {"concept":"mcp__fn__dispatch__arc","new_text":"delta: wired safe_edit handler","recall_query":"mcp dispatch edit arc","bond_label":"edit_fidelity"} (2) Update design block with recall guard: {"concept":"design:agent_tool_fidelity_v1","new_text":"Phase 1: composite tools shipped","recall_query":"agent tool fidelity","scar_on_mismatch":true}
Inputs: concept (required), new_text (required), bond_label, recall_query, +2 more.
mcp_engram_var_declareC
Declare a context variable handle (var:*) binding manifold concepts without unpacking full provlog. Returns metadata + bounded previews. Generalizes LinguisticDiscourseBundle to context_bundle_v1 with geometry_ref per slot.
Inputs: name (required), limit, min_crs, concepts, +3 more.
mcp_engram_var_projectC
Project/transform a context var: filter_crs, filter_prefix, merge_vars, relate_neighborhood, to_linguistic_bundle. Mint new var:* unless to_linguistic_bundle (returns bundle for mcp_linguistic_calculus).
Inputs: operation (required), source_var (required), k, seed, +4 more.
mcp_engram_var_queryA
Query a var:* handle — modes: metadata (default), preview, relations, slots. Extends context window without read_concept on every bound concept.
Inputs: var (required), mode, preview_chars.
mcp_engram_verify_behaviorA
TRIGGER: Call this after any hypothesis is confirmed to work OR fails in practice. Reports empirical success/failure data against a specific ZEDOS_HYPOTHESIS block. WHAT HAPPENS ON SUCCESS: Consistent successes promote the block from ZEDOS_HYPOTHESIS to ZEDOS_PRAXIS (crystallized, pinned, CRS=1.0). WHAT HAPPENS ON FAILURE: CRS is penalized. Accumulate enough failures and the block is automatically scarred. EXAMPLES: After a code fix works — verify_behavior(concept, success=true). After a fix fails — verify_behavior(concept, success=false), then consider mcp_engram_scar.
Inputs: concept (required), success (required).
mcp_engram_verify_block_lawfulnessA
AGENTIC-FIRST LAW: Audit the tamper-evidence and contractual integrity of a specific high-value memory block (especially PRAXIS or GENESIS). Returns Merkle chain state, allowed_transforms contract, CRS, and detected issues. Use this on cold boot after long sleep or before acting on critical operational protocols. This is local-only verification — no external servers required.
Inputs: concept (required), check_merkle_chain.
mcp_engram_verify_manifold_integrityA
High-level 'am I still lawful?' check on the current memory manifold. Samples high-CRS blocks and reports gross contract or consistency issues. Designed to be reasonably cheap even on large manifolds. Critical for trustworthy long-sleep / cold-boot scenarios.
Inputs: min_crs, sample_size.
mcp_engram_visualizeA
Render a BFS subgraph from a seed concept as a Mermaid diagram. Default α-weighted (ENGRAM_ALPHA_SPEED_GATE master switch, default on): edge cost=1+volatility so high-α paths burn depth budget faster. Set alpha_weighted=false or ENGRAM_ALPHA_SPEED_GATE=0 for classic unit-hop BFS.
Inputs: concept (required), depth, alpha_weighted.
mcp_engram_watch_workspaceA
Power tier (lean-avoid at wake): binds full-repo OS file-watcher. Prefer mcp_engram_context_for_edit per file in lean mode. Use once per project in deep mode when passive daemon ingest is required.
Inputs: path (required).
mcp_fibered_linguistic_equivalenceC
Phase 3: Fibered equivalence check between two Linguistic* presentations (syntactic vs semantic etc). Returns CRS-scored equivalence block via VSA geometric/cosine on phase reps.
Inputs: bundle_a, bundle_b.
mcp_linguistic_calculusB
Phase 4: Synthetic differential/integral/operadic calculus over words (LinguisticDiscourseBundle). Uses phase q (coeff embed), p-momentum, sheaf gluing (H¹ via linguistic-calculus.toml). Ops: differentiate (attend/shift delta), integrate (op_add/compose path glue), operadic_compose (chained geometric multi-morph e.g. metaphor then entailment). Returns crs + result bundle/phase preview. Post-calc: mints ZEDOS_TRAINING block + trace integration (NREM-ready via ritual:nrem relate). Additive, CRS homotopy >=0.85, reuses VSA/normalize everywhere.
Inputs: bundle (required), operation (required), morphisms, path_bundles.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 87 tools
There are several overlapping tool clusters: recall, query_pure, query_with_momentum, tensor_recall, and summarize all serve retrieval; context_for_file and context_for_edit overlap heavily; update and update_with_tensor_bond have similar write purposes. The descriptions are detailed, but at the set level an agent can easily pick the wrong variant.
Most tools follow the mcp_engram_<verb>_<noun> pattern, and families like goal_*, thought_tile_*, and var_* are internally consistent. However, mcp_compress_linguistic, mcp_decompress_linguistic, mcp_fibered_linguistic_equivalence, and mcp_linguistic_calculus break the prefix pattern, and noun-only names like mcp_engram_genesis, mcp_engram_stats, and mcp_engram_leg_corpus further blur the convention.
With 87 tools, this is far beyond a well-scoped MCP surface. Even a complex memory system does not justify dozens of overlapping retrieval, context, compression, and verification tools; the sheer count will bloat agent context and make selection costly.
The surface covers the domain unusually well: CRUD on memories, multiple search modes, relation traversal, namespaces, goals, thought tiles, spatial context, import/export, and integrity verification are all present. Minor gaps remain, such as no explicit relation deletion and limited user-model maintenance, but they are not critical for core workflows.
Maintenance
Related MCP Connectors
Persistent memory for AI agents. Semantic search, memory graph, W3C DID identity.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Persistent, portable memory for AI assistants — your private memory graph, from any MCP client.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Related MCP Servers
- AlicenseBqualityCmaintenancePersistent memory engine for AI coding agents. Single Go binary, zero runtime dependencies, MCP-native. Stores, searches, and deduplicates memories across sessions using embedded SQLite with hybrid FTS + semantic search, memory decay, relation graph, and token-budget context assembly.1023MIT
- AlicenseNot gradedqualityDmaintenanceSelf-hosted semantic memory for AI agents. Save worklogs, decisions, and notes via MCP, then recall them across sessions by meaning rather than keyword. Backed by Postgres + pgvector with local embeddings (multilingual-e5-base).1MIT
- FlicenseNot gradedqualityDmaintenancePersistent semantic memory MCP server for AI agents with hybrid search, LLM scoring, and decay engine, fully local.2-
- AlicenseNot gradedqualityDmaintenanceLocal-first AI memory layer with hybrid retrieval and brain-inspired namespaces. Enables agents to save, search, and manage memories directly via MCP tools.MIT