
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

