context-lattice
Context Lattice
Context Lattice — это автономный, проверяемый по источникам индекс памяти для экспорта диалогов ИИ-агентов разработки. Укажите ему JSON или JSONL, созданный такими инструментами, как Codex, Cursor, Kiro или ваш собственный агент, и вместо повторного воспроизведения всей истории в следующем окне контекста вы получите компактный набор подтверждений.
Сырые записи остаются неизменяными. Иерархические сводки — это навигационные индексы, потетерические (lossy) и одноразовые. Каждый результат указывает на исходный файл, JSON-запись и хэш SHA-256.
Быстрый старт
Не требутся API-ключ or внешней базы данных. Поддержавается Python 3.11+.
cd /path/to/context-lattice
python3 -m pip install -e .
context-lattice init --root ~/exports/coding-sessions/
context-lattice ingest ~/exports/coding-sessions/
context-lattice query "Why did we change the retry policy?"
context-lattice query "What is the latest payment reference?" --json --debug
context-lattice inspect
context-lattice verify
context-lattice doctorПо умочанию база даннных создётся в ~/.context-lattice/memory.db. Переопределите её с помощью --db /path/to/memory.db. Импорт принимает один файл .json, один файл .jsonl или дерево каталогов, содержащих обе формы. init печатает готовую в вставке конфигурацию MCP, используя ту же базу даннных и те же корни источников, избгая расхождения конфигураций CLI/сервера.
Related MCP server: TimeReverse
Установка в качест mcp-сервер
Context Lattice предостает memory_search, memory_get, memory_explain, memory_sync и memory_status по локальному stdio MCP. Настройте базу данных и явный список разрешённых источников, а затем укажите любой совместимый с MCP клиент на установленном исполняемом файле:
{
"mcpServers": {
"context-lattice": {
"command": "context-lattice-mcp",
"env": {
"CONTEXT_LATTICE_DB": "/absolute/path/to/memory.db",
"CONTEXT_LATTICE_ALLOWED_ROOTS": "/absolute/path/to/agent/sessions"
}
}
}
}Несколько разрешённых корней разделяются разделителем пути, принятым на пlatform (: на macOS/Linux, ; на Windows). memory_sync — единственная операция MCP, изменяющая состояние. Результаты поиска явво помечare как недостоверенные, ограничены токен бюджетом и могут быть сопоставлены с хээшами источников. См. docs/MCP.md.
Адаптеры входных данных
--adapter auto изучает конверты записай и в настоящее время распознаёт:
codex: неверные события JSONL, содержащие запи السsession_metaиresponse_item;cursor: экспорé, containing сообщения, пузыри or responses;kiro: role/content JSONL with metadata header;claude: JSONL of the Claude Code project with embedded message blocks;canonical: stable format Context Lattice v1;generic: common role/content, speaker/text and embedded messages formats.
Provider formats may change. The Codex, Cursor and Kiro adapters are intentionally tolerant and fixture-tested, but the canonical schema is the guaranteed integration boundary:
schemas/conversation-v1.schema.json. Complete example https://ра, see examples/canonical.json.
{
"schema": "context-lattice/v1",
"conversation_id": "release-planning",
"messages": [
{
"role": "user",
"content": "The deployment region is ap-south-1.",
"timestamp": "2026-08-20T10:00:00Z",
"fact_key": "deployment-region",
"entities": ["ap-south-1"]
}
]
}Записий without безисзнаваемого содержаية разговор counted are прекипнут. Поврежённые or failed записи are displayed in impors result and save in import audit log. Repeated import of the same file is idemсколько.
Retrieval model
Прозависимые, init-time
append-onlyraw events in SQLite;исходый raw JSON плюс данных о source запи/game и хэshi;
FTS5/BM25 for точ сеточных идентификаторов;
инвертированный индекс ratio of these conjunction with of the offline baseline on the basis of feature-hashing;
chronological summary trees with this established ветвени:
fusion through reciprocal-rank among lexical, semantic and hierarchical candidates;
correction chain through optional
fact_keyvalue;search extension in расхождений and containment from result to based on confidence;
explicitмевали budgets for evidence tokens and observative retail trace verbose.
The indeXing and abtender of search are deterministic and do not call. The built-in semantic model is feature-hashing, so it is portable and exactly reproducible, but stronger than a trained embedding model. An external LLM can consume the evidence; it not is trusted to maintain the memory index. Theembeddingboundary can be replaced without changing theю the evidence contract.
Хронологическая иерарх حيه — навигационнq, похОЖНнq на дерево отрезков. ОНа не может заменить семантический или лексический поиск: trees отсекаю временные диапазоны, а FTS5 и спarsely лиsтsing localаize термины и понятия. В момент запроса сcalяйные проев the SQLite, а по дере сутся спускаются только ограниченные набор корневых узлов и луч (beam). См. docs/ARCHITECTURE.md.
Тестирование и оценка
python3 -m unittest discover -s tests -v
python3 -m context_lattice.cli eval --output benchmark-results.json
python3 -m context_lattice.cli golden-eval --output golden-results.json
python3 -m context_lattice.cli demo \
"What is the current meeting room for team-3?"Детерминированная опенка на 50 вопрсовах compares "recent" token window, "rolling" summary, в последнее век уравня"...
"answer_accuracy" — это показатели sufficiency facts, а не LLM-judge estimate. See benchmark-results.json and DESIGN.md.
The manually tested control package golden-v1 is a release gate for probe and точности sources, ranking, accuracies and unresolved results, integrity of цитат and completeness of fine. Executive deliberately fails the command.
When thresholds regress. See docs/GOLDEN_EVAL.md.
Продуктовая готовность
The local-first kernel has atomic per-version update of the index. The first byte in the early version is artificial. The first byte is started locally at the beginning.
"keep"/"внутри". and two digit:
"context-lattice doctor" checks database integrity, relevance, validity, access rights, SQLite, Python and MCP. Provider formats are trusted before presentation. Without the canonical v1 schema, it can be provided. Uses SECURITY.md is not decided no. Full list on the page and the latest pre-release list: check the docs REASES_GATES.md.
Ответ:Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables contributing, challenging, discovering, verifying, and querying contestable public records from AI coding tools via MCP.6461MIT
- AlicenseNot gradedqualityAmaintenanceProvides verifiable, append-only context handoffs for Codex and MCP clients, enabling memory persistence and resume across chat sessions.1MIT
- AlicenseAqualityCmaintenanceEnables LLM agents to acquire token-budgeted, deterministic context packs from repositories, with hash-chained provenance for auditability.2MIT
- AlicenseNot gradedqualityAmaintenanceEnables semantic search and retrieval of archived AI conversations from multiple providers via the MCP protocol, allowing thread continuation and integration with MCP-capable tools.5MIT
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Token-efficient search for coding agents over public and private documentation.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arin016/context-lattice'
If you have feedback or need assistance with the MCP directory API, please join our Discord server