
Contribos
io.github.adityatiwari101104v0.2.1更新于 Oct 3, 2026
Help open-source contributors earn maintainer trust: repo rules, briefs, and pre-submit checks.
概览
为助手提供九个工具,用于调研开源仓库、起草贡献提案,并在提交前预检拉取请求。
- 功能
- ContribOS 提供九个 MCP 工具(policy、brief、setup、diagnose、check、review、find、claim、tone),可读取仓库的贡献规则、AI 政策、CI 配置和过往合并记录。它会排序应阅读的文件、起草 issue 提案和评审回复、检查语气与 AI 披露尾注,并可用有改动和无改动两种方式运行测试。它本身不会创建 PR、发表评论或认领 issue。
- 适用场景
- 适合向不熟悉的仓库提交拉取请求的贡献者,或需要仓库专属规则与提交前检查的编码助手。当你想要有证据支撑的文件定位、过往 PR 先例,以及在维护者看到之前先审阅你的说明时,它很有用。
- 运行要求
- 通过 pip 安装的本地 Python 3.10+ 包,以及 git。find、从 issue URL 使用 claim 或 brief、review 和 record 需要 GITHUB_TOKEN。可选的 AI 摘要使用 CONTRIBOS_LLM 配合 ANTHROPIC_API_KEY 或 OPENAI_API_KEY,以及 CONTRIBOS_MODEL。缓存位于 ~/.cache/contribos,可通过 CONTRIBOS_CACHE 配置。
安装
在 SourceWeft 中
- 打开 控制台中的 Contribos,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ContribOS
[PyPI version] [Downloads] [License: MIT] [Python versions] [Dependencies]
Get trusted. Get merged. Come back. ContribOS helps new open-source contributors earn trust. It finds where you're welcome, shows how this repo wants the change done, checks that you truly understand your change, coaches you through review, and turns merged PRs into a record the next maintainer can verify.
In 2026, writing code is not the hard part of contributing. AI made PRs cheap, maintainers answered with PR caps, vouch lists and AI policies, and newcomer merge rates fell. ContribOS makes your PR worth a maintainer's time.
ContribOS never opens PRs, posts comments or claims issues for you, and it never writes your explanation. It points, and you decide.
The journey
Install
Everything that can run offline does: policy, brief --title, claim --title, setup, check, bench and review --data need only git. Add --offline to skip the API, and --update to fetch new commits. Clones and indexes are cached in ~/.cache/contribos (CONTRIBOS_CACHE).
Optional AI summaries: CONTRIBOS_LLM=anthropic (with ANTHROPIC_API_KEY) or CONTRIBOS_LLM=openai (with OPENAI_API_KEY), plus optional CONTRIBOS_MODEL. The model only explains evidence ContribOS already gathered. Any sentence citing a file outside that evidence is dropped.
How it works
repo.pyhandles cached clones. It reads any revision withgit showandgit grep, so no checkout is needed.precedent.pybuilds a SQLite index of main-line changes (squash and merge PRs), the files they touched, and the issues they fixed.policy.pyis the policy radar, built from contribution docs, AI policies, templates, vouch lists, CI config and history.brief.pyranks files by rare-term matches in code, path matches, and files touched by similar past PRs. It also finds related tests via co-change history.check.pyis the pre-submit check, the proof-of-understanding check and the PR draft.setup_doctor.pyproduces setup steps from CI and docs, and diagnoses failures.find.pychecks issue takeability, repo welcome and responsiveness.claim.pydrafts the proposal and vouch introduction.proof.pyruns a test with and without your change (files restored infinally).tone.pychecks text you're about to post.agent_rules.pywrites the local agent skill and hooks.review.pyclassifies review comments, drafts replies and tracks follow-through.record.pybuilds the contribution record (markdown plus a self-contained HTML page).llm.pyis the optional provider layer (Anthropic or OpenAI) with citation grounding.mcp_server.pyis a dependency-free MCP stdio server.github.pyis the optional API client. Every caller handles its absence.bench.pyruns the history benchmark.
Benchmark (2026-09-28, offline, PR titles standing in for issues)
Matching against past PRs barely improves file finding, which supports the plan's bet that finding files is a commodity. The value is in how past PRs did it and what reviewers asked. The next benchmark needs real issue text and review comments, which requires GITHUB_TOKEN.
Status
- Tested on real repos (Flask, pytest, Ghostty):
policy,brief,claim --title,setup,check,bench,mcp. - Tested against the live GitHub API on 2026-10-01:
find(scored issue takeability and maintainer response medians onmaximilianfeix/proxy-scraperandbrekkylab/backlot),claim <url>(drafted pre-coding proposals with past similar PRs and file targets), andrecord(verified public merged PR portfolio for@adityatiwari101104). - Tested on temporary git repos:
agent-rules(git status stays clean, the guard blocksgh pr create, the commit-msg hook enforces sign-off and the trailer),check --verify-test,tone, policy radar v2. - Tests:
python -m unittest discover -s tests(40 tests, CI matrix on Linux, macOS, and Windows).
Releasing
To publish a new release to PyPI:
来源:README.md,提交 9ddb5f4
工具
0版本历史
1- v0.2.1最新Oct 3, 2026

