
Pulse8 Ai Cortex Knowledge Vault
io.github.synpulse8-opensource由 GitHub 账号 synpulse8-opensource 发布v1.6.0更新于 Oct 24, 2026
Agent-native knowledge OS on Markdown: typed graph, hybrid search, and compiler over MCP.
概览
让助手通过 MCP 使用一个持久化的 Markdown 知识库,支持类型化图谱、混合检索和文件编译。
- 可以做什么
- Pulse8 Ai Cortex 是构建在普通 Markdown 目录之上的智能体知识层。vault_read、vault_write、vault_search、vault_link、vault_context、vault_ingest、vault_compile 等工具让助手读写笔记、导入并把原始文件(PDF、DOCX、PPTX、XLSX、HTML、图片)转换为 Markdown、以关键词、语义或混合模式检索,并构建排序后的上下文子图。图谱工具 vault_trace、vault_path、vault_impact、vault_explain 用于回答来源与变更影响问题,vault_feedback 用于记录质量反馈。
- 适用场景
- 适合希望助手跨会话积累可持久、可用 Git 版本管理的知识,而不是每次重新推导的场景,也适合多个智能体与人类共享同一个 Markdown 知识库。它不适合简单的全文文档检索、没有图谱的纯向量检索,或短暂无状态的对话。
- 运行要求
- 以本地进程运行;清单列出通过 uvx 以 stdio 方式运行的 PyPI 包,README 还描述了在 8420 端口暴露 MCP 的 Docker 部署方式。必须设置 CORTEX_VAULT_PATH(Markdown 知识库的绝对路径)。CORTEX_LLM_API_KEY 为可选项,仅用于编译时的 LLM 交叉引用;文件转换与检索无需该密钥。可选配置包括 LLM_BACKEND、LLM_BASE_URL、AUTH_METHOD、API_KEY、OIDC_* 和 TEAMS_WEBHOOK_URL。
安装
在 SourceWeft 中
- 打开 控制台中的 Pulse8 Ai Cortex Knowledge Vault,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
PULSE8.ai Cortex
The open-source knowledge layer for AI agents
Knowledge that compounds.
[Python] [FastAPI] [MCP] [Docker] [NetworkX]
PULSE8.ai Cortex is the open-source knowledge layer for AI agents: Git-native memory, a typed knowledge graph, and MCP-powered retrieval on top of plain Markdown — so agents can build, evolve, and reuse persistent knowledge instead of re-deriving it on every query.
Under the hood it's a unified vault for AI agents and humans, backed by a typed knowledge graph, full-text + hybrid search, and a MarkItDown-powered file compiler. Drop files in (PDF, DOCX, PPTX, XLSX, HTML, images, and more), let agents read, write, search, link, and compile knowledge — no database required.
Inspired by Andrej Karpathy's LLM Wiki pattern — a persistent, compounding knowledge base maintained by LLMs instead of re-derived on every query. Search powered by Tobi Lütke's QMD.
Why PULSE8.ai Cortex?
Most AI agents can access tools, but they cannot accumulate knowledge.
Traditional RAG systems retrieve documents. PULSE8.ai Cortex builds a persistent, evolving knowledge layer that grows over time and becomes more valuable the more agents and humans interact with it.
With PULSE8.ai Cortex, agents can:
- Learn from interactions — every read, write, ingest, and compile event is logged and graph-linked
- Build and traverse knowledge graphs — wikilinks, tags, and typed edges, maintained automatically
- Store structured insights — Markdown notes with typed nodes (
note,agent_def,session,daily,feedback) - Retrieve context across projects —
vault_contextbuilds a ranked subgraph from any seed query - Share knowledge through MCP — one vault, every MCP-compatible client
- Maintain long-term memory — files survive sessions, deployments, and model upgrades
- Version knowledge through Git — the vault is a plain directory of Markdown, diff-friendly out of the box
When to use PULSE8.ai Cortex
Ideal use cases
- ✅ Persistent memory for AI agents
- ✅ Shared knowledge across multiple agents
- ✅ Git-versioned organisational knowledge
- ✅ MCP-compatible knowledge retrieval
- ✅ Knowledge graphs without a dedicated graph database
- ✅ Long-term accumulation of institutional knowledge
- ✅ Human + AI collaborative knowledge management
Not ideal for
- ❌ Simple full-text document search (use a search engine)
- ❌ Pure vector-only retrieval with no graph (use a vector DB)
- ❌ Short-lived, stateless conversations
- ❌ Workflows that don't need persistent knowledge evolution
PULSE8.ai Cortex vs alternatives
Works with
PULSE8.ai Cortex speaks MCP — so it plugs into any AI client that does. The same vault is reachable over streamable HTTP or stdio, and mirrored 1:1 by a REST API at /api/v1/.
Because the vault is just files, humans and agents collaborate on the same knowledge — no proprietary format, no lock-in.
Get started
[!NOTE] PULSE8.ai Cortex requires Docker. An OpenRouter API key is optional — needed only for LLM-powered cross-referencing between wiki articles. File conversion works out of the box without any API key.
- Clone the repository:
- Launch PULSE8.ai Cortex:
3. Connect your MCP client (e.g. Claude Desktop) to http://localhost:8420/mcp/.
To stop: ./scripts/stop.sh
Native QMD mode (macOS / Metal GPU)
Docker Desktop on macOS cannot expose the Metal GPU to containers, so containerized QMD embeds on CPU only — over an order of magnitude slower on non-trivial vaults. Run QMD natively instead; the qmd binary uses Metal automatically:
The QMD daemon's pid and log are kept in .qmd-native.pid / .qmd-native.log. To stop both: ./scripts/stop.sh --native-qmd (a plain ./scripts/stop.sh also cleans up a native QMD if one is running).
Cortex-only mode (external QMD)
If you manage QMD yourself (already running elsewhere), start only the Cortex container:
To stop: ./scripts/stop.sh --cortex-only
GPU-accelerated QMD (EC2 / Linux with NVIDIA GPU)
For production deployments with NVIDIA GPU acceleration:
See docs/ec2-gpu-setup.md for a full guide on instance selection, NVIDIA toolkit installation, and cost estimates.
Features
Benchmarks
45.0% overall accuracy on LongMemEval-S (500 questions, full haystacks, hybrid search) with 65.6% evidence recall@8 and zero judge errors — measured end-to-end through the public REST API: ingest → compile → graph → search → answer.
Every number is reproducible from a pinned config (dataset SHA-256, models, seed) with one command:
The harness (evals/) publishes per-question JSONL traces, separates the judge model from the answer model, uses the official LongMemEval per-type grading prompts, and includes blind human validation of the judge. Full methodology, caveats, and raw results: docs/benchmarks/.
Runs without an LLM
Cortex is deterministic-first: ingestion (MarkItDown conversion), the knowledge graph (wikilinks, tags, derived_from edges), and QMD search all work with zero LLM calls. The LLM is an optional enrichment pass — cross-referencing, tagging, image captioning — not a dependency.
Pick a backend with LLM_BACKEND (env) / CORTEX_LLM_BACKEND (Python):
Air-gapped example with a local Ollama:
Or fully deterministic: LLM_BACKEND=none ./scripts/start.sh (no API key needed).
MCP resources (token-light large payloads)
PULSE8.ai Cortex implements the resources-as-tool-inputs pattern recommended by the Microsoft Copilot Studio CAT team: token-heavy tool outputs (large search result sets, full context windows) can be kept server-side and passed between tools as lightweight handles, so the LLM context window stays small.
How it works. Pass as_resource: true to vault_search or vault_context (or ?as_resource=true on GET /api/v1/search). Instead of inlining the full payload, you get a handle:
Read it back through any of the three transports:
- MCP resources protocol —
resources/readwith thecortex://resource/{id}URI (Claude Desktop, Cursor, Copilot Studio MCP). - Fallback tool —
vault_resource_readfor clients that only expose tools to the planning layer (some Copilot Studio configurations). - REST —
GET /api/v1/resources/{resource_id}(accepts the bare ID or the full URI).
The store is in-memory, asyncio-safe, TTL-evicted, and LRU-bounded:
The same ResourceStore is shared between MCP and REST — produce a handle via MCP, read it back via REST (or vice versa).
Microsoft Copilot Studio setup — agent instructions, tool selection, and the Custom Connector fallback — is documented in docs/copilot-studio.md. No Cortex code change required.
MCP tools
Architecture
Vault layout
The vault is a plain directory of Markdown files organised by purpose. Cortex classifies each file into a typed node (NodeType) used by the graph engine and exposed in REST and MCP responses.
How classification works
Order of precedence (first match wins):
- *Frontmatter
type:*— explicit override always wins (e.g.type: noteinagents/foo.mdresolves toNodeType.NOTE) - Folder prefix — files under
raw/ agents/ sessions/ daily/ feedback/inherit the folder's type with no filename suffix needed (e.g.daily/2026-06-10.md→daily) - Filename suffix (backward-compatible) —
.agent.md,.session.md,.memory.mdare still honored anywhere (e.g.wiki/legacy.agent.md→agent_def) - Default —
NodeType.NOTE
In practice this means you can drop YYYY-MM-DD.md straight into daily/, or an unsuffixed planner.md into agents/, and the graph and API will classify them correctly without any renaming.
Daily activity log
Every vault_write, vault_ingest, and successful compile event (MCP and REST paths) is automatically mirrored into today's UTC daily note at daily/YYYY-MM-DD.md. The file is created on first event of the day and each subsequent event appends a ## [HH:MM] event | summary block plus a [[wiki-stem]] wikilink (so the watcher draws a LINKS_TO edge to the affected note). The format follows the Karpathy log.md greppable-prefix pattern — grep "^## \[" daily/2026-06-10.md gives a clean timeline of the day.
Writes targeting daily/, feedback/, or .cortex/ are deliberately not mirrored (would be self-referential noise). The hidden .cortex/log.md audit log is unaffected and continues to receive every operation.
Bulk ingest
For ingesting many files at once (dozens or hundreds of PDFs, papers, docs), use the one-click shell script instead of feeding them one at a time through MCP. It reads directly from a local directory (recursively, including subfolders) — no wire overhead, no running server required — deduplicates via SHA-256 hashing, compiles with bounded concurrency, and rebuilds the index once at the end. Subpaths are preserved under the vault raw folder (e.g. source/abcde/doc.html → raw/abcde/doc.html).
One-click script (recommended)
The script automatically loads your .env for the LLM key and vault path, prints a summary, then runs the full pipeline (copy, compile, reindex). No running Cortex server needed.
Python CLI (direct)
Inside Docker
Via REST API
For programmatic use without MCP (requires running Cortex server):
Deduplication
The dedup manifest is stored at .cortex/ingest-manifest.json. Files are matched by content hash, not filename — renaming a file won't cause re-ingestion, and the same content under a different name will be skipped.
Configuration
Copy the example and fill in your values:
OPENROUTER_API_KEY and CORTEX_LLM_API_KEY are accepted as aliases for LLM_API_KEY. Variables above are set in .env (Docker reads them via Compose) and map to the CORTEX_* settings used by the app.
Authentication
Cortex supports two authentication methods that protect both the REST API (/api/v1/) and the MCP endpoint (/mcp/). Set AUTH_METHOD in .env to choose:
API Key (AUTH_METHOD=apikey)
The simplest option. Set the method and key in .env:
Clients pass it via the x-api-key header:
No OAuth discovery endpoints are served — no login popups. Requests without a valid key receive a 401.
Microsoft Entra ID (AUTH_METHOD=oidc)
For enterprise environments that require interactive login with MFA support:
This enables:
- REST API: OAuth 2.0 Authorization Code Flow via
GET /api/v1/login. After login, pass the access token asAuthorization: Bearer <token>. A validx-api-keyheader is also accepted as a fallback whenAPI_KEYis set. - MCP endpoint: FastMCP's built-in OIDCProxy handles interactive browser-based login.
Azure AD app registration
To use OIDC, register an app in the Azure Portal:
- Go to Azure Active Directory → App registrations → New registration
- Set the redirect URI to
http://localhost:8420/api/v1/auth/callback(Web platform) - Under Certificates & secrets, create a client secret
- Under API permissions, add
openid,profile, andemail(Microsoft Graph → Delegated) - Copy the Tenant ID, Client ID, and Client Secret into
.env
MCP client setup
Claude Desktop
An example config is included at [claude_desktop_config.example.json](claude_desktop_config.example.json).
HTTP with API key (recommended) — PULSE8.ai Cortex runs as a persistent server:
HTTP without auth — when no authentication is configured:
Stdio — Claude Desktop launches the server on demand (no auth needed):
Cursor
Add to your .cursor/mcp.json:
How it works
Watcher and Compiler are independent components:
- The Watcher maintains the graph. Any
.mdfile added, modified, or deleted triggers automatic node/edge updates. - The Compiler converts raw source files to Markdown using MarkItDown and writes them to
wiki/. Supported formats include PDF, DOCX, PPTX, XLSX, HTML, CSV, JSON, XML, images (EXIF/OCR), and plain text. The LLM is only used for optional cross-reference detection between articles.
They connect indirectly: the compiler writes to wiki/, the watcher picks those up and updates the graph.
Supported file formats
Search uses a two-stage pipeline:
- QMD performs keyword/semantic search on file contents
- PULSE8.ai Cortex enriches results with graph edges (wikilinks, tags, relationships between matched notes)
QMD answers "what's relevant?" — the graph answers "how are these results connected?"
Real-world use cases
Software engineering knowledge base
- Architecture Decision Records (ADRs)
- Coding standards and conventions
- Engineering handbooks and runbooks
- Platform and service documentation
- Domain-driven design models
Banking & financial services
- Product documentation
- Regulatory and compliance knowledge
- Business domain models
- Wealth management expertise
- Institutional process know-how
Enterprise knowledge management
- Internal wikis
- Project documentation and post-mortems
- Lessons learned and retrospectives
- Organisational memory
- Best practices and playbooks
AI agent memory layer
- Shared memory across agents
- Long-term reasoning context
- Knowledge accumulation across sessions
- Multi-agent collaboration on a single vault
Roadmap
Near-term
- Enhanced knowledge-graph visualisation
- Agent activity timeline
- Knowledge quality scoring
- Additional MCP integrations
Mid-term
- Multi-vault federation
- Enterprise governance and access policies
- Knowledge lineage tracking
- Cross-agent learning signals
Long-term
- Self-improving organisational memory
- Autonomous knowledge curation
- Knowledge-driven agent ecosystems
Development
Utility scripts
Data persistence
The vault directory is bind-mounted from your host into the containers. All data lives on your local disk and survives container restarts.
The QMD search index is stored in a Docker volume (qmd-cache). To force a full re-index:
Releasing
Releases are automated through GitHub Actions. Publishing a GitHub Release triggers three workflows that build and publish everything:
To cut a release:
-
Bump the version in
pyproject.tomlandserver.json(keep them in sync), updateCHANGELOG.md, and commit tomain. -
Create the GitHub Release — via the UI (Releases → "Draft a new release" → new tag
vX.Y.Z) or the CLI: -
That's it — the release event fires all three workflows.
publish-mcp.ymlwaits for PyPI to serve the new version (so themcp-nameownership marker in this README is verifiable), then publishes the server via GitHub OIDC underio.github.synpulse8-opensource/*(no token or localmcp-publisherneeded). -
Verify the registry entry once the workflow finishes:
[!IMPORTANT] PyPI versions are immutable — a version number can never be reused, even after deletion. Always increment to a new version; never re-release an existing one.
Community
We believe AI agents need a dedicated knowledge layer — not another document store. If you share that vision:
- Star the repository
- Open a discussion or issue
- Submit a pull request (see Contributing)
- Share your use cases — banking, engineering, research, or anything else
Together we can build the knowledge layer for agentic AI.
Contributing
We welcome contributions! Please open an issue to discuss your idea before submitting a pull request.
Reporting issues
Use GitHub Issues to report bugs or request features.
Acknowledgements
PULSE8.ai Cortex builds on ideas and tools from the open-source community:
- LLM Wiki by Andrej Karpathy — the core pattern of an LLM-maintained, persistent knowledge base that compiles and interlinks knowledge incrementally rather than re-discovering it from raw documents on every query. This gist is the direct inspiration for Cortex's architecture.
- QMD by Tobi Lütke — the on-device search engine powering all full-text and hybrid search in Cortex. QMD combines BM25, vector search, and LLM re-ranking, all running locally.
- MarkItDown by Microsoft — the file-to-Markdown converter powering the Cortex compiler. Converts PDF, Office documents, HTML, images, and more into structured Markdown for ingestion into the vault.
License
This project is licensed under the PULSE8.ai Cortex Open Source License (Apache License 2.0 with additional terms).
来源:README.md,提交 3d55f39
工具
0版本历史
1- v1.6.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分