ContextLattice

Agent frameworks and SDKs

Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.

Your AI app calls the ContextLattice MCP server, which does the agent frameworks and SDKs work and sends the result back to the chat.

About ContextLattice

ContextLattice is a community MCP server from sheawinkler, filed in our directory under agent frameworks and sdks. Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.

ContextLattice runs as a remote server at https://contextlattice.io/mcp, so there is nothing to install: your AI app connects over streamable HTTP, and most remote servers ask you to sign in with OAuth the first time.

ContextLattice is listed in the official MCP registry as io.github.sheawinkler/contextlattice, version 1.0.0.

At a glance

Publisher
sheawinkler (community)
Runs
As a hosted remote server
Written in
Go
License
Apache-2.0
GitHub stars
156
Official MCP registry
io.github.sheawinkler/contextlattice

How to set up ContextLattice

  1. Nothing to install: ContextLattice is a remote server, so all you need is an AI app that accepts a remote MCP URL.
  2. Check the ContextLattice README for keys or settings; the registry lists none that ContextLattice requires.
  3. Add ContextLattice to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the ContextLattice tools to confirm the connection.
  5. Run one read-only task with ContextLattice first, and keep your app asking before each tool call until the results look right.

ContextLattice compared with similar servers

  • Kingdee K3Cloud (Cloud Galaxy) ERP by WaHaiLong has fewer GitHub stars than ContextLattice (155 against 156); both are community servers, and Kingdee K3Cloud (Cloud Galaxy) ERP runs on your own machine and ContextLattice runs as a remote server.
  • Gopher by GopherSecurity has more GitHub stars than ContextLattice (157 against 156); both are community servers, and Gopher runs on your own machine and ContextLattice runs as a remote server.
  • Dsh MCP Connector by duhu2000 has fewer GitHub stars than ContextLattice (154 against 156); both are community servers, and Dsh MCP Connector runs on your own machine and ContextLattice runs as a remote server.

Before you connect ContextLattice

  • Give ContextLattice its own sign-in or token with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each ContextLattice tool call until you trust what it does with them.
  • Treat text that ContextLattice fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for ContextLattice on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for ContextLattice

How marketing and sales teams put ContextLattice to work, by company size. Pick the size closest to yours and start ContextLattice on one use case.

Small business

  • A small business with a developer can use ContextLattice to build one focused agent, such as lead follow-up, without a big platform.
  • Technical founders can prototype marketing agents with ContextLattice and keep what works as a small, owned tool.
  • ContextLattice runs as a remote server, so a small team can connect it in a few minutes with no install to maintain.

Mid-market

  • Growth engineering teams can use ContextLattice to build agents that combine CRM, analytics and content tools behind one workflow.
  • Marketing ops can standardize on ContextLattice so every agent they ship has the same logging, approvals and error handling.
  • Start ContextLattice on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can build on ContextLattice with their own identity, policy and evaluation layers, so agents meet the same bar as other software.
  • Platform teams can use ContextLattice to give business units a governed way to ship agents without each one starting from scratch.
  • ContextLattice is a community server, so have security review the code and pin a version before ContextLattice touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

ContextLattice README

From sheawinkler/ContextLattice on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

ContextLattice

Open an agent. Already there.

The local-first intelligence layer that gives AI agents durable continuity, explainable retrieval, portable context, and verified learning across harnesses.

Quickstart · How it works · Agent setup · Architecture · Docs (contextlattice.io/docs) · Updates

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.

Follow the evidence. Inspect the proof chain, dated results, public reproduction paths, and the claims those results do not establish.

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
3. Update Without Reinstalling

For a managed installer release, check first and then apply through the same verified installer path:

contextlattice update --check --install-dir /path/to/managed-install
contextlattice update --apply --install-dir /path/to/managed-install

Normal apply checks running-runtime readiness and refreshes agent tools. Source checkouts keep their explicit Git/quickstart upgrade procedure; the updater never overwrites a checkout or crosses from paid to public. Windows applies its native MSI. See the CLI update guide for scope and recovery.

Connect your agents

Already running the CLI? Install a native recall plugin or skill for Codex, Claude Code, Prime Agent, Mercury, or Hermes Ultra. Python Hermes can instead select ContextLattice as its memory provider. Neither path installs the agent itself.

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

# Project the next bounded move or bind a completed response to durable proof.
contextlattice_continuous_cognition status "prepare the next verified move" \
  --project contextlattice --session-id <session-id> --agent-id codex_gpt5 \
  --task-id <task-id> --objective-id <objective-id> --as-of <rfc3339> --pretty
contextlattice_continuous_cognition evaluate "verify the completed response" \
  --project contextlattice --session-id <session-id> --agent-id codex_gpt5 \
  --task-id <task-id> --task-identity-id <task-identity-id> --as-of <rfc3339> --pretty

# Prepare context for an external worker without exposing its one-shot claim.
contextlattice agent-fit context-prep-schedule --project contextlattice \
  --session-id <session-id> --agent-id codex_gpt5 --payload-file prep-request.json --raw
contextlattice agent-fit context-prep-claim --project contextlattice \
  --session-id <session-id> --agent-id codex_gpt5 --prep-id <prep-id> \
  --worker-id <worker-id> --claim-token-file prep.claim --raw
contextlattice agent-fit context-prep-complete --project contextlattice \
  --session-id <session-id> --agent-id codex_gpt5 --prep-id <prep-id> \
  --claim-token-file prep.claim --payload-file prep-artifact.json --raw
contextlattice agent-fit context-prep-use --project contextlattice \
  --session-id <session-id> --agent-id codex_gpt5 --prep-id <prep-id> \
  --task-id <task-id> --effective-profile-digest <sha256-digest> \
  --source-generation <generation> --raw

Continuous Cognition is advisory-only: each invocation makes one bounded request, returns opaque evidence references, and never dispatches a runner or performs an external mutation. Context-preparation claims stay in an owner-only file and cross the completion/failure boundary only through the protected header; successful explicit use consumes the artifact once.

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

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 · v5.2.0 release notes
Roadmap Public roadmap
Agent hooks Agent hook contract
Retrieval trust Retrieval receipts
Decision/session evidence Manual decision continuity
Decision operator guides (source checkout; not released) Authorized conflict source check · Correction receipts · Artifact section witness
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

In a source checkout, freeze a prediction before recording the result to test whether a lesson holds in another project.

The current public release baseline is v5.2.0.

Commercial distribution follows its separately verified release; this public release does not authorize paid automation.

License

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

Questions about ContextLattice

What is the ContextLattice MCP server?

Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents. ContextLattice is maintained by sheawinkler on GitHub at sheawinkler/ContextLattice, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I add ContextLattice to Claude Code?

ContextLattice is a remote server, so you add its URL instead of installing a package: run claude mcp add --transport http contextlattice https://contextlattice.io/mcp in your terminal. In other apps, add the ContextLattice URL as a remote or custom connector.

Does ContextLattice need an API key?

The registry lists no required keys for ContextLattice. Check the ContextLattice README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is ContextLattice an official MCP server?

No. ContextLattice is a community server maintained by sheawinkler. Community servers can be excellent; read the code and the open issues before you give ContextLattice access to company data.

What license is ContextLattice under?

ContextLattice is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of ContextLattice; the service it connects to has its own terms.