
Growmos
com.codician由 codician.com 發布v0.1.5更新於 Oct 24, 2026
Living knowledge graph for your repo: query with citations, remember/link facts, fact-check claims.
概覽
Growmos 是本地 MCP 伺服器,為助理提供隨儲存庫成長、可附引用的持久知識圖譜。
- 可以做什麼
- 查詢圖譜:以 k 跳子圖檢索並回傳邊的引用,也可依名稱或描述查找單一實體,讓回答有出處而非片段回憶。寫入圖譜:記住實體、以簡短述詞建立關聯、附加日誌條目,每筆都帶工作階段出處標記。核對與健檢:用圖譜的邊對主張做事實查核,檢視圖譜狀態、健康指標與取樣。驅動抽取流程:取得下一個任務包,並把助理產出的 JSON 套用回儲存。
- 適用情境
- 適合在程式碼庫上長期或多代理協作、上下文在每次工作階段後消失、且問題需要跨多份文件串接的情境,例如某個被替換的元件有哪些相依、由誰決定。也適合希望把文件、架構決策記錄與設計筆記當成可 diff 的共享記憶,隨儲存庫一起提交的團隊。
- 執行需求
- 本機 Python 3.9 以上環境,安裝 growmos 套件(pip、pipx 或 uv),以 growmos mcp 的 stdio 指令執行。儲存庫需先以 growmos init 初始化,產生 .growmos 儲存。MCP 工具本身不需 API 金鑰;選用的無介面 ingest 模式使用 ANTHROPIC_API_KEY、OPENAI_API_KEY 或 XAI_API_KEY。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Growmos,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
growmos
[PyPI] [CI] [Python] [MIT] [zero dependencies]
A living knowledge graph that grows with your repo. Shared, provenance-carrying memory for humans and AI agents — plug & play with Claude Code, Codex, Grok, Cursor, Gemini, or any MCP-capable CLI. Zero dependencies. MIT.
"Each agent's memory dies with its context window." growmos is the layer underneath: the durable, queryable world model that lets today's session pick up where yesterday's left off — and lets five agents share one picture of the codebase without passing it through anyone's context window.
Built by Codician as an open, tool-agnostic implementation of the knowledge-graph methodology described in Knowledge Graph Engineering for Multi-Agentic Systems: The Anthropic Playbook (extraction → resolution → assembly → querying, with an evaluation loop closing the circle). See METHODOLOGY.md for the full methodology.
▶ Live demo — click around growmos's own graph · Apollo corpus demo · site
[growmos view — interactive graph explorer]
growmos view — after a few days of development, this is what lays in your graph: hubs sized by degree, colored by type, every edge with provenance, profiles on click.
Why
Multi-agent systems and long-running coding sessions share one weakness: memory dies with the context window. RAG surfaces chunks but cannot chain facts. A knowledge graph — entities as nodes, short-verb-phrase relations as edges, every edge carrying provenance — turns multi-hop questions ("what depends on the thing we replaced in ADR-7, and who owns it?") into graph traversal, gives evaluators ground truth instead of vibes, and survives restarts.
growmos makes that a living organism inside your repo:
- It eats what you write. Docs, ADRs, READMEs, design notes, sessions. Content-hashed; only what changed goes back into the pipeline (incremental by construction).
- It grows as agents develop.
growmos remember/link/journalare one-line write paths with provenance (session:2026-08-17). Git hooks queue changed docs after every commit. - It resolves itself. New names are matched against the canonical set; unmatched names become provisional single-element clusters (nothing is ever silently lost); the agent then clusters provisional entities using descriptions ("Edwin Aldrin" → "Buzz Aldrin").
- It answers with citations.
growmos queryserializes the k-hop subgraph around a question; the answer must cite edge ids;growmos checkfact-checks claims against edges. - It measures itself — with no manual step.
growmos nextalso hands out gold-set packets (the agent writes the reference answer from the source document) and periodic review packets (verify one node's edges against its sources), sogrowmos eval(P/R/F1, raw and resolved), the 10-itemgrowmos doctorchecklist and the health signals (components, density, compression) all stay green on autopilot. Every gold file records who reviewed it (agent/human) — humans can overrule at any time, but never have to. - It shows itself.
growmos viewopens a self-contained, offline interactive explorer (force layout, search, type filters, click a node for its profile, edges and provenance) — no server, no dependencies.growmos export --format html|json|dot|mermaid|cypher|sqlfor everything else. - It is agent-native. No API key needed: the CLI does the deterministic work, and hands the
judgment work (extraction, resolution, summarization) to whatever agent you already run as
a task packet — prompt + JSON shape + the exact
growmos apply …command. Optional headless mode (growmos ingest) calls Anthropic / OpenAI-compatible / xAI APIs for cron & CI.
Install
Python ≥ 3.9, no dependencies. (From source: pip install .)
60-second start
From here it runs itself:
- Claude Code (hooks): at session start the brief is injected and, if work is pending, the
agent is told to run the loop; at the end of a turn a
Stophook scans your docs and, if new packets appeared, keeps the agent going until the graph is up to date and journaled. You never have to ask. - Codex / Grok / Cursor / Gemini (no hooks): the same protocol lives in
AGENTS.md/.cursor/rules— "if the brief shows pending work, run the loop before you stop." Agents follow it; you can still say "grow the knowledge graph" or "what does the graph say about X?". - Nobody at the keyboard: git hooks queue changed docs after every commit, and
growmos ingeston cron/CI (headless mode) does the whole loop with an API key.
Manually, the loop is:
Plug & play with agent CLIs
growmos init --agent all does all of the above. Everything is idempotent (marker blocks, JSON merges).
MCP server (any MCP-capable client)
growmos mcp is a zero-dependency MCP stdio server. Register it the same way you register any
MCP server — growmos integrate mcp writes this for you, or paste it yourself:
mcp-name: com.codician/growmos
Tools exposed: growmos_context, growmos_query, growmos_entity, growmos_search,
growmos_remember, growmos_link, growmos_journal, growmos_check, growmos_next,
growmos_apply, growmos_status, growmos_sample. Once registered, the agent calls them
directly instead of shelling out — e.g. "what depends on the Store?" → growmos_query; "remember
that Scheduler now uses Kafka" → growmos_remember + growmos_link; "grow the graph" →
growmos_next / growmos_apply in a loop.
What lives in .growmos/ (commit it)
Plain JSONL: diff-able, merge-friendly, greppable, viewable (growmos view) and exportable
(growmos export --format html|json|dot|mermaid|cypher|sql). Storage is an infrastructure decision, not a pipeline decision:
the same schema maps onto Neo4j or three Postgres tables.
Configuration & big projects
Everything tunable lives in .growmos/config.json (growmos config <key> [value]). Defaults are
sized for a normal repo; for a big one, three knobs matter:
max_docs_per_run(default 50/day) — a speed bump against runaway unattended runs, not a wall. When you or your agent are driving a backfill:growmos next --forceorgrowmos config max_docs_per_run 0. Agents are told this, so they won't stall on it.include/exclude— which docs are knowledge (READMEs, ADRs, design docs by default; never source code — agents write what code means viaremember/link).chunk_chars(6 000) — packet size for long documents.
Full reference (all keys, monorepos, cost notes): docs/configuration.md.
Presets
growmos init --preset software|general|research|business — same prompts, extended entity
vocabulary (the playbook's five base types + domain types). growmos remember --type NEWTYPE
extends the schema on the fly (schema version bumps).
Headless / overnight mode (optional)
Follows the playbook's model split (a fast model for high-volume extraction, a stronger model
for judgment). Cap runs with max_docs_per_run (default 50/day; growmos next --force or growmos config max_docs_per_run 0 when you're driving a big backfill). Prompt caching and batching are the natural
next optimizations for large corpora.
Operational discipline (baked in)
- Sample the graph —
growmos sample(doctor warns after 7 days). - Cap extraction volume —
max_docs_per_run(50/day; a speed bump, not a wall:growmos next --force, orgrowmos config max_docs_per_run 0for a big backfill),max_entities_per_doc. - Version the schema —
growmos schema bump --note … --add-type …. - Never lose a name — unmatched names get single-element clusters.
- Every edge has provenance — and a corroboration count.
- Re-summarize only when the source set changes — profiles carry a source-set hash.
- Watch connectivity & density —
growmos statusprints components / density / compression.
Docs
- METHODOLOGY.md — the living-knowledge-graph methodology, tool-agnostic
- docs/agents.md — per-CLI setup and the agent protocol
- docs/file-format.md — store layout & JSON shapes
- docs/evaluation.md — gold sets, scoring, prompt tuning loop
- docs/configuration.md — every config key, big projects, monorepos
- docs/headless.md — provider mode, cron, CI
- examples/apollo — the playbook's Apollo corpus rebuilt in one script
Contributing
PRs welcome — see CONTRIBUTING.md. Run python -m unittest discover -s tests.
MIT © 2026 Codician. Not affiliated with Anthropic; the methodology it implements is a synthesis of Anthropic's public knowledge-graph cookbook and agent-pattern writing.
來源:README.md,提交 510deb2
工具
0版本歷史
1- v0.1.5最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分