Mason

com.adrianczuczka由 adrianczuczka.com 发布v0.24.0更新于 Oct 30, 2026

Engineering decisions, change impact, documentation audits, and CI evidence for coding assistants.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

Mason 把经过审阅的工程决策随代码仓库一起保存,让编码助手能取回代码背后的理由,并在代码变动时提示复查。

可以做什么
  • 记录带来源的提案,说明代码为何这样实现,再经审阅后接受为项目指引
  • 在后续任务中取回已接受的决策理由与审阅状态,并把拟议的替代方案与现行决策区分开
  • 当被引用的代码发生变动时发出提示,促使检查、修订或废止相关决策
  • 审计 README 与代理指令文件中的过时说法,例如缺失路径、错误的工作区数量或缺失的 npm 脚本
  • 以指定基线分支审阅已提交的改动,列出相关引用、相关测试以及历史上常一起变动的文件
  • 把修复发现一路核验到最终的文档提交
适用场景
适合那些重要决策、变通做法和被否决方案会随时间失去上下文的仓库,也适合希望编码助手在改动代码前先查清缘由的场景。它是对测试、linter 和代码评审的补充,而非替代。
运行要求
以本地 stdio 进程运行,需要 Git。README 中的安装脚本不需要 Node 或 npm,npm 包则通过 npx 运行。需在仓库中执行 mason init 与 mason setup,并指定 codex 或 claude 等宿主参数,同时检查宿主的信任设置。
安装前请注意
安装配置会向仓库写入 MCP、钩子和项目指令配置,提交前应审阅这些共享文件。独立安装默认在后台自动更新。README 说明其证据有限:补丁效果与正确性提升尚未得到证明,因此应把发现当作待核查的证据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mason,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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:

sh
curl -fsSL https://github.com/adrianczuczka/mason/releases/latest/download/install.sh | sh

Windows PowerShell:

powershell
irm https://github.com/adrianczuczka/mason/releases/latest/download/install.ps1 | iex

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):

bash
mason init --host codex    # Maintainer: prepare shared configuration for review/commitmason setup --host codex   # Each developer: activate locally# For Claude Code, use --host claude.

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:

bash
mason status

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

bash
mason audit --dir .mason review --dir . --base origin/main

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

As your project grows…Mason helps by…
Instructions fall behind the code.Flagging missing paths, incorrect workspace counts, and missing npm scripts.
A patch misses a related update.Surfacing references, related tests, and files that historically change together.
Old decisions lose their context.Retrieving recorded rationale and review status, and flagging changes to the code they apply to.
A repair gets interrupted.Retaining the original findings and verifying them through the final documentation commit.

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

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
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:服务器未能启动。

版本历史

10
  1. v0.24.0最新Oct 30, 2026
  2. v0.23.1Oct 21, 2026
  3. v0.22.0Oct 12, 2026
  4. v0.21.0Oct 10, 2026
  5. v0.20.2Sep 30, 2026
  6. v0.19.2Sep 29, 2026
  7. v0.19.1Sep 25, 2026
  8. v0.18.0Sep 17, 2026
  9. v0.17.4Sep 16, 2026
  10. v0.16.3Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分