
Nomos - Deterministic Git & AST Governance for AI Coding Agents
ca.sophialabs由 sophialabs.ca 發布官方發布者v4.30.0更新於 Nov 22, 2026
Live GitHub repo AST X-Ray, 42 coding-agent DoD gates, Git worktree guards & brownfield baselines.
概覽
Nomos - Deterministic Git & AST Governance for AI Coding Agents 的託管 MCP 服務(sophialabs.ca),由 sophialabs.ca 發布;無需登入;Streamable HTTP。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
- 發布者
- sophialabs.ca
- 端點
- sophialabs.ca
- 最近檢查
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Nomos - Deterministic Git & AST Governance for AI Coding Agents,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/ca.sophialabs%2Fnomos/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"nomos-deterministic-git-ast-governance-f": {
"type": "http",
"url": "https://sophialabs.ca/mcp"
}
}
}README
Nomos (Νόμος)
Agents guess; Git cannot. The Apache 2.0 Go execution substrate beneath any coding agent (0 LLM tokens, certified up to 3.60M LOC).
[CI] [Release] [License] [Docs] [Nomos X-Ray] [Telemetry]
Nomos is a single ~20 MB static Go binary (Apache 2.0, 0 LLM tokens, zero cloud account) between your coding agent (Claude Code, Cursor, OpenCode, Codex, Gemini CLI, Antigravity, Windsurf, or Aider) and Git. Run nomos init once (or paste 1 prompt into your agent) - Nomos blocks skipped tests, hollow stubs, monolith bloat, and leaked secrets in 24ms (<365ms full 42-gate diff verify even across 3.60M-LOC monorepos), your agent fixes its own mess mid-turn, and your feat/* workflow never changes:
Initialize once, then forget
nomosexists. Nomos supplies0-token repository physics; your coding agent supplies the intelligence to self-correct before ending its turn. Usenomos xray .anytime you want a~4scodebase health scan.
Two Ways to Set Up in 30 Seconds (Or Scan in Browser First)
Zero-Install Browser Scan (5s): Paste any public GitHub repository at sophialabs.ca/xray - or just replace
github.comwithsophialabs.cain your browser URL bar (e.g.https://sophialabs.ca/go-chi/chi) - to inspect its 11-languageAI Hangover Score(0-100) and download a pre-computednomos.baseline.json+ 4-line GitHub Action PR gate before installing anything locally.
Path A - Paste 1 Prompt Into Your Coding Agent (Zero Manual Setup):
Path B - Run 3 Commands in Your Terminal:
What happens automatically underneath your agent the next time it tries taking a shortcut on feat/*:
Your coding agent receives that deterministic AST fix recipe mid-turn and repairs billing.go itself before handing control back to you.
How It Works Without Changing Your Workflow (100% Apache 2.0 Open-Core)
Every single-repository governance capability ships locally in the open-source nomos binary with zero crippled commands, organized around three clear boundaries:
1. What You Touch Once (30 Seconds: nomos xray, nomos init)
- On-Demand 5s Stethoscope (
nomos xray . [--markdown]): Walksgit ls-filesacross 11 languages for anAI Hangover Score(0-100,Grade A-F), clones, monoliths (>400 LOC), stubs, swallowed errors, secret/host-path leaks, CWE sinks, and ready-to-lockarchitecture_boundarieswith zero repository writes. Run it on Day 0 or whenever you want a codebase report card. - Non-Breaking Legacy Drop-In (
nomos init): Automatically freezes Day-0 debt bounds innomos.baseline.json(strict_mode: falseon brownfield, strict anywhere via--strict) so zero existing legacy files fail, ratcheting only touched files (<= 0added complexity/debt,>= 0coverage delta,0new clones or swallowed errors; self-hostednomosholds0/100 Grade Aunderstrict_mode: true). Auto-detects installed agents, scaffolds a compact~13-lineAGENTS.mdBranch Guard block, and wires native lifecycle + Git hooks (nomos --helpshows everyday commands;nomos --help-agentkeeps internal agent RPCs out of your way). - Zero-Footprint Stealth Trial (
nomos init --local): Registers generated configs and hooks in.git/info/excludeinstead of.gitignore, leavinggit status100% clean while you evaluate solo; promote anytime withnomos init.
2. What Runs Invisibly Underneath Every Agent Turn (0 Commands to Learn)
- Protected
main& Automaticfeat/*Verification: Defaultisolation_mode: "branch"blocks directmain/masterwrites and config/hook tampering (nomos.yaml,nomos.baseline.json,.git/hooks/*), while plaingit commitonfeat/*branches runs42polyglot AST gates across Go, TypeScript/Svelte, Python, Rust, Ruby, C/C++, Java, Kotlin, and C# in~460ms(~24mssingle-file radar,0LLM tokens) - catching skipped/deleted tests (t.Skip,@pytest.mark.skip,#[ignore],xit,@Disabled,[Fact(Skip=...)]), hollow stubs (todo!(),pass,NotImplementedError),>60 LOCfunctions (400 LOCfile ceiling),architecture_boundaries, andstrict_types. ~4msPre-Tool Security Airlock & Loop Breaker (nomos hook): Denies agent reads of~/.ssh,~/.aws,~/.kube,~/.gnupg,~/.config/gcloud,.netrc,.npmrc,.pypirc, blocks cloud metadata SSRF (169.254.169.254), rejects unverified "tests pass" claims, and halts 3 consecutive non-progressing tool failures before burning context windows.- Verified-Only Episodic Memory (
mneme.db/nomos mcp):.git/hooks/post-commitdistillstrap -> fixlessons into pure-Go SQLite (mneme.db,<50mslexical/vector recall + read-onlystdioMCP vianomos mcp) only after verification passes, so broken attempts never poison future agent sessions.
3. Optional Scale-Up When You Outgrow Single Branches (--ci, --worktrees)
- Zero-Trust CI Diff-Mutation Proofs (
nomos init --ci,nomos verify --pr --mutate-diff): Mutates newly added conditionals/returns across Go, TS/JS, and Python so tautological tests fail closed on PRs, emits OASIS SARIF 2.1.0 for GitHub Code Scanning, and posts PR receipts viaaction.yml. - Parallel Multi-Agent Worktrees (
nomos init --worktrees): Upgrade on demand when running multiple concurrent agents to enforce disposablegit worktreesandboxes, live exported-symbol collision radar (MTPO), and causal spec-before-code (INT/SUB) separation (see Architecture Blueprint below).
Install Alternatives & Graduation Recipes
Alternative Package Managers & Updates
Update or cleanly uninstall anytime:
Optional Graduation: CI PR Proofs & Parallel Worktrees
Install the official Nomos Zero-Trust PR Proof GitHub Action from GitHub Marketplace, or scaffold CI workflows locally when ready:
Enforce zero-trust PR mutation proofs in GitHub Actions (GitHub Marketplace):
Cheap Workhorse Stack (
OpenCode+OpenRouter/ Local16GBGPU): Because.opencode/plugins/nomos.tsenforces frontier merge rules in local compiled Go (0middleman token tax),14B-32Bopen-weight models jump from27.8%to86.1%brownfield resolution (3.1xlift) while cutting token spend-43%to-57%.
Why Nomos Is a New Layer of the Stack
Verified Benchmarks & Runtime Footprint
Reproduce locally in one command:
go -C substrate test ./cli -run "TestTraceTrialBench|TestCleanroomPolyglotObligation|TestCleanroomDownstreamVectors" -v
Expand Full Per-Model Benchmark Tables (108-Run GPU Matrix, 1,541-Run Security/OSS Audit, Harbor & TraceTrial-Bench)
1. Open-Weight & Commodity Workhorse Brownfield Lift (N = 108 Paired Episodes · 8B to 32B)
Across 108 paired zero-hint brownfield episodes (54 Stock vs. 54 Nomos v4.13.1, temp=0.0) spanning Python, TypeScript, and Go on 6 open-weight models sized for single-card 16GB-24GB GPUs (RTX 4080, RTX 3090, A10G, L4):
2. Zero-Trust Security & Real-Repo OSS Debt Containment (1,587 Live Trajectories)
3. Terminal-Bench 2.0 Harbor Hub Trajectories & TraceTrial-Bench (arXiv:2610.32285)
Terminal-Bench 2.0(89 / 89Tasks viaHarbor·nomos-harbor): Multi-trialk=5evaluation (445Docker trials onGemini Flash) achieved76.40%Pass@1(340/445) and92.13%Pass@5(82/89tasks solved) at91.20%prompt cache stability. In paired single-shotGemini CLI 0.67.0A/B runs, Stock scored58 / 89(65.17%,49f21995) vs.63 / 89(70.79%,+5.62 pp) single-shot (39059e9a) and75 / 89(84.27%,+19.10 pp)pass<=2(6b9f81a5).- Frontier Harness Fault-Containment (
TraceTrial-Bench·arXiv:2610.32285): Across190paired Docker runs (95tasks holdingClaude Code v2.1.220+Gemini 2.5 Flash-Litefixed),nomos hooklifted Context & Continuity by+78.3%, cutharness_causedfailures by-18.2%(55->45), and raised reliability from44.89to48.78.
Expand Architecture Blueprint, Worktrees (`INT`/`SUB`), CLI Surface & Specifications
When your team scales beyond single-branch workflows (nomos init --worktrees):
- Hermetic Worktree Isolation: Direct edits in the root checkout fail closed;
nomos task chore/nomos task startmintscapbac.Leasecapabilities inside disposableworktrees/<repo>-<task>sandboxes (PLAN -> EDIT -> REVIEW -> SYNC -> LEARN). - Two-Plane Spec-vs-Code Separation (
INT/SUB) &2PCSync: Separates human specifications (INT-*) from substrate implementation (SUB-*), whilenomos task syncruns42gates, fast-forwardsmain, records a SHA-256 Git Notes receipt (refs/notes/nomos/releases), and prunes the worktree. - Multi-Worktree AST Collision Radar (
MTPO) &NCTE-100:nomos physicscomputes live exported symbol hulls across active sandboxes to prevent merge collisions, andnomos directive --lintenforces unambiguous controlled English inintent/specs.
- Scope of Proof: Nomos verifies
<5mscompiled structural and traceability invariants (import boundaries, contract field parity, anti-shim AST checks,TC-*test bindings, and SHA-256 spec digests) rather than LLM-as-a-Judge critics or formal theorem provers (Coq,Lean,TLA+); runtime semantics remain governed by your test suite.
Expand The 7 Laws of Nomos (42-Gate Invariant Matrix)
Full 42-gate matrix in nomos_intent_traceability_spec.md:
Open-Core Boundary
Nomos Community Edition is 100% open-source under Apache 2.0 with zero telemetry, zero cloud account requirements, and zero crippled CLI commands. Every single-developer and single-repository governance capability runs locally out of the box (see LICENSE, NOTICE, and intent/intent.md):
Community & License
- Community & Governance: Join GitHub Discussions for setup Q&A,
nomos.yamltuning, and feature ideas. SeeCONTRIBUTING.md,CODE_OF_CONDUCT.md, andSECURITY.md. - License & Citation: Licensed under the Apache License, Version 2.0 (see
LICENSE,NOTICE, andTHIRD_PARTY_NOTICES.md). For academic citation, seeCITATION.cffand DOI10.5281/zenodo.24240539.
Built with deterministic rigor by SophiaLabs · Governed by Nomos
來源:README.md,提交 db330ce
工具
0版本歷史
1- v4.30.0最新Nov 22, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具必需15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
