Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Judge AI-written Python: no invented packages or calls, no facts from memory, verified LLM output.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"proven": {
"command": "uvx",
"args": [
"proven-judge",
"mcp",
"--no-installed-check"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add proven -- uvx proven-judge mcp --no-installed-checkวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"proven": {
"command": "uvx",
"args": [
"proven-judge",
"mcp",
"--no-installed-check"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"proven": {
"type": "stdio",
"command": "uvx",
"args": [
"proven-judge",
"mcp",
"--no-installed-check"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub malikabyl ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.0) เข้า registry 3 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A judge for code written by AI. The syntax is plain Python. The rules are against hallucinations.
The core principle: nothing exists until it is proven. A package exists if it is pinned in requirements. A function exists if it is in the installed version. A fact exists if it has a source and a date. A model's answer exists for the user once it has passed a check. A function works if a test proves it.
AI models write more code than people can read. The languages that win are the ones where the compiler acts as a reviewer: TypeScript became the #1 language on GitHub in 2025 (GitHub Octoverse 2025), and GitHub links this to typed languages making AI-assisted code more reliable. A new language is not the answer — models barely know new languages. What helps is the old language that models know best, with a strict judge on top of it. That is how TypeScript grew on top of JavaScript.
Proven does the same for Python, but it catches hallucinations rather than type errors.
| Code | Rule | What it catches |
|---|---|---|
| P1 | Imports are real | Invented packages, unpinned versions, modules that are not installed |
| P2 | Calls are real | Functions, classes, attributes and modules that do not exist |
| P3 | No facts from memory | Official figures, tax rates, law article numbers and URLs typed into code by hand; outdated facts |
| P4 | Model output is verified | A model's answer goes to a user or a database without a check; a forged check |
| P5 | Errors are not swallowed | Bare except, silent except: pass |
| P6 | Functions are proven by tests | A public function with no test; a test that checks nothing |
Every rule in detail: SPEC.md.
The code in examples/bad/bot.py is how an AI model writes when nobody checks it — a legal-answers bot for Kazakhstan:
import anthropik # a typo
MRP = 3932 # Kazakhstan's monthly index, the 2025 value "from memory"
def handle(phone, question): raw = llm(question) answer = f"{raw}\n\nLegal basis: Article 46 of the Labour Code" try: json.loadz(answer) except: pass send(phone, answer)
The judge:
$ python proven.py check examples/bad
Proven 0.2.0 · root: /path/to/proven/examples · python: /usr/bin/python3 3.12.3 · requirements: requirements.txt · packages from: the judge's own
bad/bot.py:4:1 P1 package "anthropik" is not in requirements.txt — it may be invented bad/bot.py:5:1 P1 version of "requests" is not pinned with == (now: ">=2.31") bad/bot.py:7:1 P3 "MRP" is a number typed from memory — it needs a dated source bad/bot.py:9:10 P3 address "adilet.zan.kz" typed by hand — move it to a config or allowed_url_hosts bad/bot.py:12:1 P6 function "llm" is not called in any test bad/bot.py:16:5 P4 public function "llm" returns unverified model output — annotate it "-> Unverified" or return verify(...) bad/bot.py:19:1 P6 function "send" is not called in any test bad/bot.py:23:1 P6 function "handle" is not called in any test bad/bot.py:25:14 P3 law article number typed by hand: "Article 46" — take it from the database bad/bot.py:27:9 P2 module "json" has no name "loadz" bad/bot.py:28:5 P5 bare except catches everything, even Ctrl+C and program exit bad/bot.py:30:5 P4 unverified model output goes into "send"
How to fix: P1 Imports are real — Check the exact package name on PyPI, add a name==version line ... ...
Proven: 12 issue(s) in 1 file(s). Code rejected.
The same bot fixed according to the rules — examples/good/bot.py:
MRP = Fact(4325, source='Law of the Republic of Kazakhstan "On the Republican Budget '
'for 2026–2028" No. 239-VIII', date="2026-01-01")
def ask_model(question, llm) -> Unverified: return unverified(llm(question))
def answer(question, llm, checker, send): raw = ask_model(question, llm) send(verify(raw, checker)) # the user only gets what has been verified
$ python proven.py check examples/good Proven: no issues. Code accepted.
Python 3.11+. No dependencies — the standard library only.
pip install proven-judge # the package is "proven-judge", the command is "proven"
proven init # create proven.toml proven check # check the project
Exit code: 0 — code accepted, 1 — there are issues. For machines there is --json.
proven rules # list the rules
proven explain P4 # explain a rule
In your code, from proven_types import Fact, Unverified, unverified, verify, and add proven-judge==0.2.0 to requirements.txt (P1 applies to Proven too).
No installation at all: copy proven.py and proven_types.py into your project and run python proven.py check.
# .pre-commit-config.yaml
repos:
The hook checks the whole project, not only the changed files: P6 needs to see the tests.
- uses: actions/checkout@v4
Issues show up as annotations on the lines of the pull request and in the job summary. Inputs: path (the folder to run in), args (extra arguments for proven check), python (the interpreter with your dependencies installed, so P1 and P2 can see them; by default python3). Outside the action, proven check --github gives the same annotations.
Proven is also an MCP server, so an AI agent can call the judge itself: tools proven_check, proven_explain and proven_rules. It needs no extra packages.
Claude Code:
claude mcp add proven -- uvx proven-judge mcp --no-installed-check
Other clients (Claude Desktop, Cursor and others):
{
"mcpServers": { "proven": { "command": "uvx", "args": ["proven-judge", "mcp", "--no-installed-check"] } } }
uvx runs the server in its own environment, where your project's packages are not installed, hence --no-installed-check. To check that packages are installed too (P1), run the server from your project's environment instead: pip install proven-judge, then proven mcp. Pass the agent an absolute path to the project.
Proven works like a compiler for an AI model: the model writes code, the judge says what is wrong and how to fix it, the model fixes it. The judge's messages are written so they can be handed to a model as they are.
Claude Code. The repository already has .claude/settings.json: after every edit of a .py file the judge checks it, and if there are issues, Claude sees the report and fixes them. Copy the .claude folder into your project.
Rules in the prompt. A cheat sheet for a system prompt or CLAUDE.md is in PROMPT.md. The model then follows the rules from the first try, and the judge catches the rest.
GitHub. The workflow .github/workflows/proven.yml runs the judge and the tests on every push and pull request.
On old code the judge will find many issues at once. To avoid fixing everything in one day:
python proven.py baseline
The current issues are written to .proven-baseline.json as old debt. From then on the judge skips them but rejects any new issue. Pay the debt off gradually and rewrite the baseline.
Run the judge with the project's Python. P1 and P2 look at installed packages. The first line of every report says what the judge measured with: the project root, the Python, the requirements file and the environments it read. Without proven.toml the root is the nearest folder with pyproject.toml, requirements.txt or .git. If the judge runs in its own environment, it also reads the project's .venv (or venv, env, $VIRTUAL_ENV): packages there count as installed, and names in them are checked by reading their code, without importing it.
A project with no tests at all gets one P6 issue instead of one per function. Until there are tests, disable = ["P6"] keeps the report readable.
The human has the final say. A rule can be switched off for one line — but only with a reason:
MRP = 3932 # proven: allow P3: computing an archived 2025 fine
A waiver without a reason is itself an issue (P0). The comment goes on the same line or on the line above. For P5 it can also go inside the handler, where the explanation usually is:
except OSError:
pass # proven: allow P5: logging a call must not break the answer to the client
A plain comment is not enough on purpose: a model can write "# intentional" as easily as "pass". The Russian keyword works too: # proven: разрешить P3: reason.
The judge catches what is invented, not what is wrong:
verify().response.jsonn()) cannot be checked statically — tests catch them (P6)..venv are read, not imported. Turn it off with check_attributes = false.-> Unverified. A model client created in another file is only recognised if its function name is listed in sources.proven.py the judge (CLI)
proven_types.py Unverified, Verified, verify(), Fact proven.toml settings (the judge checks itself) SPEC.md the rules in detail and every setting CHANGELOG.md what changed in each version PROMPT.md a cheat sheet for an AI model examples/bad code with hallucinations examples/good the same code following the rules tests/ the judge's tests pyproject.toml the proven-judge package action.yml the GitHub Action server.json the MCP Registry entry .pre-commit-hooks.yaml the pre-commit hook .claude/settings.json the hook for Claude Code .github/workflows/ the check on GitHub and the release to PyPI
Releasing: bump VERSION in proven.py, then publish a GitHub release with the tag vX.Y.Z. The release workflow checks that the tag, VERSION and server.json agree, builds the package, publishes it to PyPI and then to the MCP Registry. Update the two versions in server.json together with VERSION.
Check the judge itself:
pip install -r requirements-dev.txt
python proven.py check # the judge accepts itself python -m pytest
The values in the examples (Kazakhstan's MRP and others) were checked against the source on 3 November 2026 and serve as illustrations. In live code, check them against adilet.zan.kz, Kazakhstan's official legal database.
MIT, see LICENSE.