
Mitos
io.github.dovahkiin-v由 GitHub 帳號 dovahkiin-v 發布v0.20.0更新於 Oct 24, 2026
Architectural decision memory for LLM-native workflows — markdown for humans, a graph for agents.
概覽
Mitos 是為 AI 輔助開發設計的本地架構決策記憶:記錄決策與被否決的方案,並在助手做決定前把歷史回饋給它。
- 可以做什麼
- 在決策前查找先例,並附上先前已否決的替代方案與原因
- 記錄已定案的決策、被否決的路徑,以及它與舊決策的取代或修訂關係
- 依語意或精確識別碼查詢決策,也可只搜尋被否決的選項
- 以人類可讀的 decisions.md 與季度封存為事實來源,圖與語意索引可隨時重建
- 稽核語料中彼此矛盾的決策,並可在 git 提交時要求先執行檢查
- 適用情境
- 適合助手長期參與同一程式庫、反覆提出你已否決的方案,或與既有設計決策衝突的情況。特別適合由 AI 助手持續產生與使用架構決策的獨立開發者。
- 執行需求
- 以本機程序執行:從 PyPI 安裝 mitos-adr 套件(pipx),用 Docker 啟動監聽 7333 埠的本地 Qdrant 容器,並在每台機器上註冊一次伺服器。需要 Gemini API 金鑰做向量化,強烈建議再提供 Anthropic 金鑰供衝突稽核層使用,金鑰透過命令列設定而非 MCP 設定。每個專案需初始化並依名稱註冊。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mitos,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Mitos
[Status: Alpha] [PyPI] [Python 3.13+] [License: Apache-2.0] [MCP Registry]
🔧 Early release — actively developed
When you build software with AI assistants over months, the reasoning behind your decisions gets lost. The assistant forgets why you chose one approach, re-suggests options you already rejected, and your design notes drift out of sync with what was actually decided. Mitos is a memory layer for those decisions: it records each decision, the alternatives you ruled out, and how later decisions replace earlier ones — then feeds that history back to your AI assistant in a compact, trustworthy form.
The result: your AI collaborator stays consistent with the calls you've actually made — it stops contradicting a past decision or re-opening a settled question, and your decision record never silently rots.
Under the hood: markdown for humans (decisions.md and its quarterly archives under decisions/archive/ are the source of truth you can always read and grep), a typed graph for the agents (SQLite + a local Qdrant for semantic recall), and an MCP server so agents check precedent before deciding and record decisions as they make them.
Available on PyPI and the MCP Registry.
Fastest install: hand it to your agent
If you work with an AI coding agent (Claude Code, Cursor, Gemini CLI, …), the easiest path is to let it do the setup. In the project you want mitos in, give your agent:
What your agent will end up doing — the same steps a human follows, all in SETUP.md where you can read them first:
- install the
mitosCLI via pipx (from PyPI or this repository); - start a local Qdrant container (
qdrant/qdranton port7333, isolated from any Qdrant you already run); - register the MCP server once for the whole machine, if it isn't registered already;
- initialize the project workspace, which also registers the project by name;
- ask you to set your API keys yourself (
mitos set-key) — a Gemini key (required), and an Anthropic key for the conflict-audit layer (strongly recommended); the setup guide tells agents not to handle key values.
How much your agent asks along the way is governed by your own agent's settings, not by this prompt.
Manual setup
The same steps by hand — full detail in SETUP.md:
- Install (once per machine):
pipx install mitos-adr - Start Qdrant (once per machine, shared by all projects):
docker compose up -dfrom this repo — mitos runs its own instance on:7333, so it never touches a Qdrant you use for other work. - Register the MCP server (once per machine, recommended for agents):
claude mcp add --scope user mitos -- mitos serve. One registration serves every project — see SETUP.md for what it costs, for other harnesses, and for why a leftover per-project.mcp.jsonentry has to go. - Per project:
mitos initfrom the project root, thenmitos set-key --global <your-Gemini-key>(one key covers everything; get it at https://aistudio.google.com/app/apikey). Gemini is the tested embedding provider today; a multi-provider abstraction is on the roadmap. - Verify:
mitos status .→READY ✓.
mitos status . is the compass throughout: it says exactly what's done, what's missing, and what to do next for that project. With no project named, mitos status answers the other question — what does this machine have — listing every registered project and checking Qdrant.
Every command names its project. There is no default target: mitos init registers the project by name, and from then on each verb takes -p <name>, -p <absolute path>, or -p . from the project root (agents pass the same thing as a project argument). mitos projects lists what's registered, and mitos unregister <name> removes a registration (the workspace stays as it is). That is what lets one install and one MCP server serve every project on the machine without a call ever landing in the wrong corpus.
How it runs
Mitos is per-project — each project gets its own decision graph and its own Qdrant collections. Day to day, three verbs carry the loop (as MCP tools for agents, with CLI twins):
A few properties worth knowing:
- The markdown is the source of truth. Every decision lands in
decisions.md, and rotation moves committed entries intodecisions/archive/; both are human-readable and greppable, and the graph and the search index are derived from them and can always be rebuilt from them (mitos rebuild). - A decision's axiom is never edited — it's superseded. The axiom and its mechanisms change only through a later decision that supersedes, corrects or amends it, and state (active / superseded / amended) is computed from those typed relations, so the history of why always survives. Commentary (rejected paths, context, scope) can be fixed in place with
mitos amend-commentary. - It fails safe. If the search index or the embedding API is down, recording still works and search degrades to an honest text-match over the markdown — nothing blocks, nothing is lost, and degraded output says it's degraded.
- It audits itself. The corpus sweep (
mitos check -p .) finds decisions that silently contradict each other. The commit gate (mitos hook-install -p .) runs ongit commitand holds a commit made after decisions were recorded until a check has been attempted, and--stagedchecks hand-authored entries still pending indecisions.md— see SETUP.md for the commit gate, the staged gate, and the CI and cron recipes.
Explore the rest with mitos --help — the help text doubles as the API reference.
Why it exists
Building software through intensive LLM design reviews produces architectural decisions faster than a person can track. One month of that working style produced close to 900 decision records in a single markdown file — no longer greppable, readable, or manageable by hand. Existing ADR tools are built for human teams logging the occasional decision; mitos is built for a solo developer whose AI assistants generate and consume decisions continuously.
If that's your way of working, project size doesn't matter much — the higher the decision volume, the faster mitos moves from comfort to necessity.
Development
-n auto is safe for the offline suite and not for the live tier: the test-collection
sweep is session-scoped, so parallel workers delete each other's Qdrant collections and
the affected tests degrade to skips rather than failures.
The *_live.py suites and golden Layer B make real Gemini and Anthropic API calls
against your own keys, and need Qdrant on :7333. They skip when no key is resolvable,
so a fresh clone runs the fast path by default.
Keys resolve from the environment, a repo-root .env, or ~/.config/mitos/.env — so if
you already use mitos, a test run can pick up your personal key and spend against it.
Opt out explicitly:
The canonical decision format lives in mitos/format-spec.md. License: Apache 2.0.
來源:README.md,提交 a4f744c
工具
0版本歷史
3- v0.20.0最新Oct 19, 2026
- v0.18.0Sep 18, 2026
- v0.17.3Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分