GitHub
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Before an agent tags a release: does that version label already name different code in the git tags?
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"closure-drift": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/luizfnsilva/closure_drift:1.5.0"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add closure-drift -- docker run -i --rm ghcr.io/luizfnsilva/closure_drift:1.5.0วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"closure-drift": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/luizfnsilva/closure_drift:1.5.0"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"closure-drift": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/luizfnsilva/closure_drift:1.5.0"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub luizfnsilva ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.5.0) เข้า registry เมื่อวานซืน
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Docker ในเครื่องด้วย
ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Does `v1.4.2` mean one thing in your repository?
$ git clone -q https://github.com/psf/requests && cd requests
$ closure-drift --compare v2.16.0 v2.16.1 A v2.16.0 (commit bcd0e170ac20) label 2.16.0 closure 3d2886b87c2a7b94 17 file(s) B v2.16.1 (commit f687e9f3d8b0) label 2.16.0 closure 696b71ed6023f563 18 file(s) changed requests/init.py only in B requests/packages.py
============================================================== DIFFERS UNDER ONE LABEL: both declare 2.16.0, and the code differs in 2 path(s). If both were published, that label names two things.
Check it without this tool: git show v2.16.1:requests/__version__.py says 2.16.0. closure_drift reads the git history, not a package index: it shows what the tags contain, not which commit a published package was built from.
A version is a string a human edits. When two releases share a version and differ in code, one address names two artefacts — and nothing notices, because the version is all that was recorded.
One command checks it. Read-only, one file, no dependencies, no network.
Try it now (recommended first). See the three answers on tiny repositories it builds and deletes, then measure yours:
git clone -q https://github.com/luizfnsilva/closure_drift && python3 closure_drift/examples/demo.py
python3 closure_drift/closure_drift.py /path/to/your/repo
Or without cloning: curl -sO https://raw.githubusercontent.com/luizfnsilva/closure_drift/v1.5.0/closure_drift.py then python3 closure_drift.py inside any git repository. Needs Python 3.9+ and git. The last lines say what to do next. (./reproduce.sh is something else: it validates closure_drift itself, a long run, and does not look at your repository.)
With your agent. Install the skill (skills/closure-drift/), which tells the agent when to check before a tag and how to read the answer: gh skill install luizfnsilva/closure_drift closure-drift --agent claude-code (or codex, cursor, gemini-cli, github-copilot, …). In Claude Code, skill and MCP server together: /plugin marketplace add luizfnsilva/closure_drift. Other clients: integrations/.
In CI, the barrier that holds when nobody remembers to check: docs/CI.md. Exit 0 pass, 1 drift, 2 nothing decided (a failure by default).
--would-tag answers: *if I tag this commit now, does its version already name different code?* After tagging, --tag NAME answers: *does this tag name the version its commit declares?* A tag pushed before the version was bumped fails there; in the study it is how 79 of the 87 labels in drift came about. On a tag push the Action runs --tag; on any other push, --would-tag.
# GitHub Actions
Push the workflow before the first tag: a tag pushed together with the workflow that should run on it may not start it (then run it by hand, with workflow_dispatch: in its on:). mode: measure concludes only from two distinct labels; on the first release it is inconclusive, exit 2, so gate with the default mode from the first tag.
# pre-commit, on git push
Other pipelines: docs/CI.md.
An agent needs two things: to know when to check (before it creates a tag, bumps a version or publishes), and a way to run the check. The skill gives the first; the MCP server, the second.
gh skill install luizfnsilva/closure_drift closure-drift --agent claude-code (or codex, cursor, gemini-cli, github-copilot, …)./plugin marketplace add luizfnsilva/closure_drift, then /plugin install closure-drift@closure-drift.would_tag tool), for other clients:claude mcp add closure-drift -- uvx --from git+https://github.com/luizfnsilva/closure_drift closure-drift-mcp
Codex CLI, Gemini CLI, Cursor, VS Code, Windsurf, and a rule to paste into AGENTS.md, CLAUDE.md or .cursorrules: integrations/. An agent can still skip the check; the barrier is CI.
| verdict | exit | |
|---|---|---|
clean | 0 | every label names one closure, over at least as many points compared as not |
drift | 1 | a label names more than one closure |
| any other verdict (list) | 2 | not enough to tell; the report says why |
| refusal | 2 | cause on stderr |
Exit 0 means clean and nothing else. No input we tried produces a traceback, and no failure exits 1.
(path, git object id) of the files that determine your outputThe report also says how many tags it could not compare.
--would-tag | would tagging this commit reuse a label? |
--tags 'py-*' | only these tags are publication points (monorepos) |
--at commits | you publish at every commit |
--closure 'src/**' | which files determine your output |
--strict | clean only if every point was compared |
--explain LABEL | which paths differ under a label in drift: --compare over every tag of that label, found by the scan |
--compare A B | two tags side by side |
--version-file, --version-regex | where the label is |
--published FILE | only tags of versions you published: a local list, one per line. --tags picks by name; use this when a tag that matches was never released |
--label-equality version | 1.0, 1.0.0 and v1 are one label |
--modes | a file's mode (executable bit, symlink) is part of the closure |
--component NAME | one component of a monorepo (below) |
--json, --badge, --diagnose | report (contract), README badge, bug-report block |
Settings can be committed in .closure-drift.json. Flags override it, except beside components, where they need --component; a broken file is refused.
A monorepo declares its components, and gets one verdict each:
{"components": {
"python": {"tags": ["py-*"], "version_file": "py/pyproject.toml", "closure": ["py/**"]}, "rust": {"tags": ["rs-*"], "version_file": "rs/Cargo.toml", "closure": ["rs/**"]} }}
The answer is drift if any component is in drift, clean if all are clean, otherwise incomplete. Components are declared, never guessed. A gate in such a repository passes --component NAME to --would-tag.
The 100 most-downloaded PyPI projects with a public repository, at the defaults, measured with a build of 0.10.0 that prints the same reports as the release — rule and method fixed before the first run; no repository tuned (full table and every collision):
| repositories | |
|---|---|
clean | 59 |
drift | 29 |
incomplete — fewer tags compared than not | 4 |
| no version label found, or inconclusive | 8 |
A version label names two different code states in 29 of the 88 decided, 29 of all 100. Each of the 87 labels is in collisions.tsv, one line per tag involved, reproducible by hand:
$ closure-drift --compare v2.16.0 v2.16.1 # in psf/requests
DIFFERS UNDER ONE LABEL: both declare 2.16.0, and the code differs in 2 path(s).
A collision is not a verdict on a project. The usual causes are a tag created without bumping the version, branch markers such as 7.x, and tag families in a monorepo. A first run, kept in the repository, decided only 63 of 100 — it read the version from one file chosen at HEAD — and that is why this release finds the label where each project keeps it.
Six reference repositories, measured with 1.0.0 at every tag (tools/reference/):
| Repository | verdict | labels in drift | tags compared |
|---|---|---|---|
pallets/click | drift | 3 of 66 | 71 of 71 |
psf/requests | drift | 3 of 140 | 145 of 162 |
pypa/packaging | clean | 0 of 50 | 50 of 53 |
encode/httpx | clean | 0 of 88 | 88 of 88 |
impress/impress.js | drift | 2 of 4 | 6 of 15 |
lodash/lodash | drift | 60 of 107 | 209 of 440 |
Two causes: a release tagged without bumping the version (impress.js), and tag families sharing one version file (lodash). Neither project is badly run. --would-tag addresses the first, --tags or components the second.
clean is about addressing, not reproducibility.--modes.test/, tests/, spec/, docs/, vendor/, node_modules/, .git/; files named *_test.*, *.test.*, *.md. A --closure glob that names one of these folders brings it in (--closure 'vendor/**'); .git/ and the file patterns never.--closure.1.0 and 1.0.0 are two labels, unless --label-equality version.--published lists what was. A tag left off the list is left out of the analysis, not shown unpublished.docs/LABELS.md.--version-file, or --published: the rules can still read the wrong file when one tag happens to agree with it.Every failure found so far: docs/FAILURES.md. More: SCOPE.md, docs/WHY.md.
It starts git and, for a version pattern you supply, itself; nothing else. It never writes to the repository, and does not run commands named in that repository's git config. What is defended and what is not: THREAT_MODEL.md. Reporting: SECURITY.md.
Four suites, each pre-registered before the code. Scores are never added together.
| suite | macOS, Python 3.14 |
|---|---|
tests/battery.py — acceptance proofs | 243 declared · 242 green · 0 red · 1 not run |
tests/negative_controls.py — the battery must fail on a broken detector | 77 mutants · 77 caught · 0 not caught |
tests/adversarial.py — written by reviewers who did not write the fixes | 315 attacks · 304 as required · 2 loose · 9 not run; the 2 loose are declared limits (docs/FAILURES.md O2a, O2b) |
tests/properties.py — 60 generated repositories against tests/oracle.py, a second implementation written from a specification by someone who did not read this one | 17 properties · 17 green · 0 red · 10 controls · 10 caught |
CI runs the same four on Linux (Python 3.9 to 3.14), macOS and Windows; what each platform could not run is in tests/RECORD.md. These scores describe the cases executed, not inputs nobody tried. ./reproduce.sh runs all of it. The 100 projects of the study are also a regression corpus, pinned to recorded commits: 1.5.0 gives the recorded answer on all 99 still checkable (one tag of apache/arrow moved upstream), as predicted before it ran (tools/regression/).
Ten large repositories (the Linux kernel, LLVM, CPython and seven more), protocol written first. Every tag of the kernel: 6.5 GB for the whole process tree with 0.9.1, 900 MB with 1.0.0. 0.9.1 gave three wrong or near-empty answers there; 1.0.0 gives none o
ตัดมาแค่ช่วงต้น อ่านต่อใน repo