
Mason
com.adrianczuczka由 adrianczuczka.com 發布v0.24.0更新於 Oct 30, 2026
Engineering decisions, change impact, documentation audits, and CI evidence for coding assistants.
概覽
Mason 把經過審閱的工程決策隨程式碼倉庫一起保存,讓編碼助理能取回程式碼背後的理由,並在程式碼變動時提示複查。
- 可以做什麼
- 記錄附來源的提案,說明程式碼為何這樣實作,再經審閱後接受為專案指引
- 在後續任務中取回已接受的決策理由與審閱狀態,並把擬議的替代方案與現行決策區分開
- 當被引用的程式碼發生變動時提出提示,促使檢查、修訂或廢止相關決策
- 稽核 README 與代理指示檔案中的過時說法,例如缺少路徑、錯誤的工作區數量或缺少的 npm 指令碼
- 以指定基準分支審閱已提交的變更,列出相關引用、相關測試以及歷史上常一起變動的檔案
- 把修復發現一路驗證到最終的文件提交
- 適用情境
- 適合那些重要決策、變通做法與被否決方案會隨時間失去脈絡的倉庫,也適合希望編碼助理在改動程式碼前先查清緣由的情境。它是測試、linter 與程式碼審查的補充,而非替代。
- 執行需求
- 以本機 stdio 程序執行,需要 Git。README 中的安裝指令碼不需要 Node 或 npm,npm 套件則透過 npx 執行。需在倉庫中執行 mason init 與 mason setup,並指定 codex 或 claude 等主機參數,同時檢查主機的信任設定。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mason,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Mason
Preserve why your code was built this way.
Record the reason · Review the lesson · Surface applicable guidance · Reconsider it as code changes
[npm version] [CI] [Monthly downloads] [License]
[Works with Codex] [Works with Claude Code] [MCP compatible] [Supported platforms]
Mason preserves reviewed engineering reasoning with your repository, so future maintainers and coding agents can retrieve the evidence behind consequential decisions. Record workarounds, rejected approaches and constraints while their reasons are available; revisit them when the underlying code changes.
Get started
Install on macOS or Linux:
Windows PowerShell:
No Node or npm required. Git is required. The installer configures PATH for Bash, Zsh, and Windows. Platform details · npm installation
New standard standalone installs update automatically in the background. Updates activate on a future MCP launch after existing Mason MCP servers exit. Run mason updates to inspect or change this preference. Existing installations require one manual upgrade and mason updates enable. Update controls
Run this in your Git repository (open a new terminal if the installer asks):
If the repository already has compatible Mason configuration, run only mason setup. Initialization prepares MCP, hooks and project instructions; setup leaves shared files untouched. Review your host's trust settings, start a new session, and give your agent a normal task.
Check that Mason is being used:
Setup uses your installed mason command—no project launch scripts or runtime copies. Status distinguishes configuration from observed use. Setup and upgrades · Disconnect a project · Other MCP clients
Try a check without setup
The audit checks claims in README and agent instruction files throughout the repository. The review checks committed changes against your chosen base. Both are read-only and need no model calls.
What Mason catches
After resolving an incident or settling a constraint, ask your agent to record a sourced proposal with Mason. Review it before accepting it as project guidance. Later tasks can retrieve the operative accepted revision while proposed replacements remain distinct, and changes to referenced code can prompt inspection, revision or retirement.
Mason complements tests, linters, and code review. Findings are evidence to inspect; unavailable checks stay explicit.
Evidence so far
Earlier read-only decision-retrieval evaluations scored 9.0/10 with Mason vs 7.0/10 without. The initial ten-task patch comparison tied at 10/10 for both. Improved patch outcomes remain to be demonstrated. Results, methodology, and limitations
Maintained notes also succeeded in the reuse trials. Recent hook experiments verified supported file delivery, with additional context cost and no demonstrated correctness gain; direct delivery for ordinary Bash workflows remains open. The current focus is useful preservation and reuse of engineering reasoning during ordinary work, with capture and maintenance effort that feels worthwhile. Preventing repeat mistakes is one intended benefit; comparative superiority remains unestablished. Positioning and validation plan · Current evidence
Documentation
- Setup, hooks, and upgrades
- Data and network behavior · Hook performance
- Audits, repair verification, and CI evidence
- Decisions, tools, and optional architecture maps
- Roadmap · Changelog · MIT license
Development
For development, use Node 20 (20.19+), Node 22 (22.13+), or Node 24+.
After npm ci, run npm run format to format TypeScript sources, tests, and tooling configs.
CI checks formatting with npm run format:check and runs npm run lint,
npm run typecheck, and the test suite. Run npm test locally to check behavior.
ESLint uses the recommended TypeScript rules plus type-aware checks for unhandled
promises, misused async callbacks, and invalid awaits. Prettier handles formatting.
Test fixtures and generated outputs are excluded from formatting and linting.
Production sources also reject explicit any and unsafe assignments, property
access, calls, arguments, and returns. External data is validated before use.
Test doubles keep the more permissive rules.
來源:README.md,提交 78bb082
工具
0版本歷史
10- v0.24.0最新Oct 30, 2026
- v0.23.1Oct 21, 2026
- v0.22.0Oct 12, 2026
- v0.21.0Oct 10, 2026
- v0.20.2Sep 30, 2026
- v0.19.2Sep 29, 2026
- v0.19.1Sep 25, 2026
- v0.18.0Sep 17, 2026
- v0.17.4Sep 16, 2026
- v0.16.3Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分