Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

sheawinkler/ContextLattice MCP server](https://glama.ai/mcp/servers/sheawinkler/context-lattice/badges/score.svg)](https://glama.ai/mcp/servers/sheawinkler/context-lattice) 🏠 🍎 πŸͺŸ 🐧 πŸ¦€ 🏎️ - Private-by-default memory and context layer for agents with...

README.md

ContextLattice

<p align="center"> <a href="https://contextlattice.io/" target="_blank" rel="noopener noreferrer"> <img src="docs/readme/contextlattice-editorial-hero.png" alt="ContextLattice editorial website hero showing a live local context field" width="100%" /> </a> </p>

<p align="center"> <strong>Open an agent. Already there.</strong> </p>

<p align="center"> The local-first intelligence layer that gives AI agents durable continuity, explainable retrieval, portable context, and verified learning across harnesses. </p>

<p align="center"> <a href="#quickstart"><img src="https://img.shields.io/badge/Interface-CLI%20First-111111?style=for-the-badge" alt="CLI first"></a> <a href="https://github.com/sheawinkler/ContextLattice/releases/tag/v4.0.7"><img src="https://img.shields.io/badge/Release-v4.0.7-292929?style=for-the-badge" alt="ContextLattice v4.0.7"></a> <a href="#quickstart"><img src="https://img.shields.io/badge/Runtime-Local%20First-404040?style=for-the-badge" alt="Local-first runtime"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-575757?style=for-the-badge" alt="Apache License 2.0"></a> </p>

<p align="center"> <a href="#quickstart">Quickstart</a> Β· <a href="#how-it-works">How it works</a> Β· <a href="#connect-your-agents">Agent setup</a> Β· <a href="#architecture">Architecture</a> Β· <a href="https://contextlattice.io/docs/">Docs</a> Β· <a href="https://contextlattice.io/updates.html">Updates</a> </p>

Stop replaying the brief

Models can reason. Harnesses can act. Neither reliably retains the mission when a chat, model, tool, account, or computer changes.

ContextLattice gives that work a durable, inspectable context layer. It reconstructs the active objective, selects the evidence that matters, carries it safely, and records what actually workedβ€”without turning every prompt into a transcript dump or making cloud storage mandatory.

| Capability | What changes | | --- | --- | | Durable continuity | Reopen the objective, decisions, repository state, risks, proof, and next move as one bounded packet. | | Explainable retrieval | Rank evidence by impact per token and expose source coverage, omissions, opposition, degradation, and receipts. | | Portable context | Move signed, least-privilege continuation across agents and machines while keeping execution and transport caller-owned. | | Verified skill evolution | Discover skills without loading every file, evaluate repeated wins on holdouts, and require review before promotion. | | Privacy-bounded Aggregate Signal | Learn from explicitly opted-in, clipped statistics while raw memory remains local; production activation stays hard-blocked pending independent privacy and utility review. |

The CLI is the primary interface. The dashboard makes behavior and proof visible. HTTP and MCP are companion integration surfaces for applications and harnesses.

How it works

| Stage | ContextLattice does | | --- | --- | | 01 Β· Reopen | Reconstructs the one active mission from durable checkpoints and current state. | | 02 Β· Select | Retrieves high-signal evidence into a compact Context Pack with provenance. | | 03 Β· Move | Carries signed, bounded context through Agent Packets, Passports, and encrypted continuation envelopes. | | 04 Β· Earn | Records outcomes and promotes reusable behavior only after deterministic proof and human approval. | | 05 Β· Compound | Improves future retrieval while preserving corrections, contradictions, freshness, and retirement semantics. |

ContextLattice does not replace your agent harness, choose goals from retrieved text, or execute imported context. Local tools remain execution surfaces; memory and remote content remain evidence.

Quickstart

Requirements: macOS, Linux, or Windows through WSL2; a Compose v2-compatible container runtime; and gmake, jq, rg, python3, and curl. The tested macOS baseline uses OrbStack through its explicit Docker context; see the container runtime decision.

1. Install

git clone https://github.com/sheawinkler/ContextLattice.git
cd ContextLattice
cp .env.example .env
gmake quickstart

gmake quickstart is the prescribed technical install path; installers are bootstrap alternatives. The command prepares environment wiring, asks for a runtime profile, launches the selected local stack, and validates initial readiness.

2. Verify the runtime and retrieval path

curl -fsS http://127.0.0.1:8075/health | jq
contextlattice doctor --pretty
contextlattice state status --pretty
contextlattice context "verify this ContextLattice installation" \
  --project contextlattice \
  --pretty

Healthy containers are only the first check. The state command verifies the canonical gateway-owned storage inventory; the final command exercises the actual context path and reports source coverage, degradation, evidence, and next actions. Existing installs can use the explicit, reversible procedure in gateway state migration.

For a fuller lifecycle proof from the repository:

scripts/agent/agent-runtime-proof-pack --pretty
scripts/agent/agent-adoption-proof-matrix \
  --skip-provider-smoke \
  --progress \
  --pretty

Connect your agents

Run integration from the repository that should use ContextLattice:

cd /path/to/your/project

contextlattice_adopt integrate \
  --repo . \
  --agents codex,claude-code,opencode,hermes-agent,hermes-ultra,omp,mercury-agent,pi,droid \
  --pretty

contextlattice_adopt integrate \
  --repo . \
  --agents codex,claude-code,opencode,hermes-agent,hermes-ultra,omp,mercury-agent,pi,droid \
  --check \
  --pretty

The integration command writes bounded managed blocks while preserving existing instruction text. It does not install Codex, Claude Code, OpenCode, Hermes, OMP, Mercury, Pi, Droid, or another third-party agent harness.

External provider discovery is network-free. Provider execution remains explicit and caller-authorized; see the external-provider boundary.

If an agent is performing the installation, it should follow the quickstart directly, avoid cloning a second checkout when already inside one, report the exact failing command and path, and rerun the deterministic check after any repair.

The daily agent loop

# Confirm readiness when the environment is uncertain.
contextlattice doctor --pretty

# Retrieve scoped context before substantial work.
contextlattice context "debug the current release regression" \
  --project contextlattice \
  --pretty

# Save concise, durable progress.
contextlattice remember \
  "Root cause verified; regression test added; focused checks pass." \
  --project contextlattice \
  --pretty

# Resume without replaying the transcript.
contextlattice resume --project contextlattice --pretty

# Repair stale or wrong recall without silently rewriting history.
contextlattice correct \
  "The prior deployment record is stale." \
  --category stale \
  --project contextlattice \
  --pretty

# Close the loop with the verified outcome.
contextlattice finish \
  "Regression fixed and verified." \
  --success \
  --project contextlattice \
  --pretty

Find a capability without loading every skill body:

contextlattice_skills_index search "browser automation" --pretty

The active Skills Index scans configured Codex, Hermes, Hermes Ultra, and shared agent roots read-only. It reports each harness and root inventory separately, collapses byte-identical SKILL.md files by SHA-256 digest while retaining every source path as provenance, and requires discriminating query-term coverage instead of ranking generic words such as skill, index, or agent. Quarantine discovery remains separate, read-only by default, and never auto-promotes retrieved content.

Architecture

<table> <tr> <td width="50%"> <a href="https://contextlattice.io/architecture.html"> <img src="docs/public_overview/assets/architecture-service-map.svg" alt="ContextLattice service map" width="100%" /> </a> </td> <td width="50%"> <a href="https://contextlattice.io/architecture.html"> <img src="docs/public_overview/assets/architecture-retrieval-flow.svg" alt="ContextLattice retrieval and learning flow" width="100%" /> </a> </td> </tr> </table>

The default local control path is:

Agent or application
        β”‚
        β–Ό
ContextLattice CLI / HTTP / MCP
        β”‚
        β–Ό
Gateway :8075
        β”œβ”€β”€ durable write and outbox fanout
        β”œβ”€β”€ scoped retrieval and source receipts
        β”œβ”€β”€ session, objective, graph, and outcome state
        └── dashboard-visible proof and operations

Writes are validated and durably persisted before fanout. Retrieval merges the available sources, ranks bounded evidence, and reports missing or degraded coverage instead of hiding it.

The active application path is Go and Rust. Python remains in build, development, migration, and audit tooling rather than the live request path. The exact runtime and toolset choices are recorded in the v4 runtime decision and container decision.

Public and paid boundaries

The public local lane is account-free and useful on its own. It includes the CLI-first memory lifecycle, Context Packs, sessions, graph and claim surfaces, Skills Index discovery, Agent Packets, public Passport and Mesh contracts, and local proof tooling.

Paid artifacts add governed collaboration, protected activation, workspace operations, advanced analytics, and hosted distribution. They do not turn local memory into a mandatory cloud dependency.

See plans and distribution boundaries for the current contract.

Install options

macOS technical preview: unsigned DMG bootstrap launcher; expect Gatekeeper warnings until Developer ID notarization is configured, and prefer the source/CLI path.

| Path | Best for | Status | | --- | --- | --- | | Source + gmake quickstart | Technical users and terminal-capable agents | Recommended | | brew tap sheawinkler/contextlattice && brew install --cask contextlattice | macOS convenience bootstrap | Available | | macOS universal DMG | Guided macOS bootstrap | Unsigned technical preview; expect Gatekeeper warnings | | Windows x64 MSI | Guided Windows bootstrap | Available | | Linux bootstrap bundle | Guided Linux bootstrap | Available |

Resource profiles

| Profile | CPU | RAM | Storage | | --- | --- | --- | --- | | Hugging Face / Glama lite | 2–4 vCPU | 4–8 GB | 20–50 GB SSD | | Local Lite core | 2–4 vCPU | 8–12 GB | 25–80 GB SSD | | Local Lite advanced | 4–6 vCPU | 12–16 GB | 80–140 GB SSD | | Local Full | 6–8 vCPU | 12–20 GB | 100–180 GB SSD |

For heavier ingest, model storage, or the spike-lab adapters, read the installation and storage guidance before selecting a profile.

Security and privacy

  • Local-first and account-free in the public local lane.
  • API-key protection for operational routes.
  • Deterministic secret-like content filtering at write ingress: redact by default, block when configured, and allow only by explicit operator choice.
  • Provenance and trust isolation on retrieved memory.
  • Signed portable context and encrypted continuation envelopes.
  • Dry-run-first graph repair, source backfill, and quarantine workflows.
  • No automatic execution of retrieved instructions or imported continuation content.

Security reports follow SECURITY.md.

Documentation

| Need | Start here | | --- | --- | | Product overview | contextlattice.io | | Installation | Installation guide | | CLI and agent lifecycle | CLI reference | | Harness and app integration | Integration guide | | Architecture and scaling | Architecture Β· Scaling memory | | Troubleshooting | Troubleshooting guide | | Current behavior and release evidence | Updates Β· v4.0.7 release notes | | Roadmap | Public roadmap | | Agent hooks | Agent hook contract | | Retrieval trust | Retrieval receipts | | Skills and verified learning | Skill efficacy review Β· Skill Foundry | | Portable context | Context Passport and Mesh | | Local inference | Local model options | | Full repository-backed manual | Public field manual |

The current release baseline is v4.0.7.

License

ContextLattice's public lane is licensed under the Apache License 2.0.

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Vector & Memory servers.