# Nomos - Deterministic Git & AST Governance for AI Coding Agents

> Live GitHub repo AST X-Ray, 42 coding-agent DoD gates, Git worktree guards & brownfield baselines.

- name: io.github.mgantlett/nomos
- version: 4.37.0
- connection class: R0 (autonomous)
- trust: 93/100 flags: duplicate-repo
- quality: 85/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.mgantlett%2Fnomos
- tools: https://api.protogrid.dev/v1/servers/io.github.mgantlett%2Fnomos/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "nomos": {
      "type": "http",
      "url": "https://sophialabs.ca/mcp"
    }
  }
}
```


## Trust

- hygiene: 80
- liveness: 100
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-100% +updated-0d-ago -duplicate-repo(3 names)
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 85/100 (good)

### protocol: 88 (weight 25)

- pass `protocol.modern`: supports 2026-07-28 (server/discover)
- pass `protocol.stateless`: answers without a session
- pass `protocol.transport`: streamable HTTP
- warn `protocol.list_ttl`: tools/list carries no ttlMs, so clients re-fetch it

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 7 of 7 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 2,110 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool, prompt or resource definitions
- pass `tools.poisoning`: no instructions aimed at the model in tool, prompt or resource definitions

### stability: 50 (weight 15)

- warn `stability.changes`: 19 tool changes in 30 days
- fail `stability.rug_pull`: 8 tools kept their name but changed most of their description in 30 days; review before trusting them
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: dependencies not resolved yet

- tools: 7, about 2,110 tokens to load them all
- tool set hash: 0e20722f393b145c85eae8c3dfefe72c
- tools last changed: 2026-11-25T09:59:53.343Z
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.mgantlett/nomos.svg)](https://protogrid.dev/servers/io.github.mgantlett/nomos)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-25 `xray_github_repo` changed (title, description, inputSchema, outputSchema)
  - before: Inspect a public GitHub repository via read-only static Tree-sitter AST analysis (<= 100MB source archive, strictly read-only) to retrieve its AI Hangover Score (0-100), complexity hotspots, and Day-0 baseline preview. Example: repo='go-chi/chi' returns the AST scorecard for go-chi/chi. Use when auditing a public GitHub owner/repo URL. Do NOT use when checking private repositories (private codebases require local CLI inspection via @mgantlett/nomos).
  - after: Inspect a public GitHub repository, pull request ratchet delta (pr), head-to-head rival shootout (vs), file path (focus), or organization rollup (org) via read-only static Tree-sitter AST analysis (<= 100MB source archive). Example: repo='go-chi/chi' (or repo='go-chi/chi', pr=42, or org='go-chi') returns the AST scorecard and Day-0 baseline preview. Use when auditing a public GitHub repo, PR, comparison, or org URL. Do NOT use when checking private repositories (private codebases require local CLI inspection via @mgantlett/nomos).
- 2026-11-21 `scaffold_nomos_config` changed (title, description, inputSchema)
  - before: Generate a schema-valid nomos.yaml configuration, 4-line GitHub Actions SARIF workflow, and Day-0 onboarding commands for any repository. Use when producing ready-to-paste YAML config and CI pipeline files. Do NOT use when requesting a strategic rollout recommendation by LOC or air-gap posture (use recommend_adoption_plan instead).
  - after: Preview read-only nomos.yaml configuration text, 4-line GitHub Actions SARIF workflow text, and Day-0 onboarding commands without modifying files. Example: project_name='payments-api', mode='local' returns template text. Use when retrieving ready-to-paste YAML config and CI workflow templates. Do NOT use when requesting a strategic rollout recommendation by LOC or air-gap posture (use recommend_adoption_plan instead).
- 2026-11-21 `diagnose_nomos_error` changed (title, description, inputSchema)
  - before: Resolve any Nomos ERR_* failure code, TC-AGT-* vector, or nomos verify gate rejection into its root cause and non-bypassing 1-turn AST fix. Use when troubleshooting a concrete verify failure or pre-commit hook error. Do NOT use when browsing the full catalog of 42 gates by Law or category without an error (use inspect_dod_gates instead).
  - after: Look up any Nomos ERR_* failure code, TC-AGT-* vector, or nomos verify gate rejection to retrieve its root cause and non-bypassing AST remediation. Example: error_code='ERR_CROSS_PLANE_MUTATION' returns the remediation guide. Use when troubleshooting a verify failure or pre-commit hook error. Do NOT use when browsing the full catalog of 42 gates by Law or category without an error (use inspect_dod_gates instead).
- 2026-11-21 `xray_github_repo` changed (title, description, inputSchema) **meaning changed**
  - before: Execute a live sub-5s static Tree-sitter AST X-Ray on any public GitHub repository (<= 100MB source tarball, zero code execution) to return its AI Hangover Score (0-100), complexity hotspots, and Day-0 baseline config. Use when auditing a specific public GitHub owner/repo URL. Do NOT use when scanning private repositories (instruct the user to run local `npx --yes @mgantlett/nomos xray .` instead).
  - after: Inspect a public GitHub repository via read-only static Tree-sitter AST analysis (<= 100MB source archive, strictly read-only) to retrieve its AI Hangover Score (0-100), complexity hotspots, and Day-0 baseline preview. Example: repo='go-chi/chi' returns the AST scorecard for go-chi/chi. Use when auditing a public GitHub owner/repo URL. Do NOT use when checking private repositories (private codebases require local CLI inspection via @mgantlett/nomos).
- 2026-11-21 `compare_governance_approaches` changed (description, inputSchema)
  - before: Compare Nomos deterministically against pre-commit hooks, SonarQube, ESLint, PR review bots (CodeRabbit, Greptile), prompt wrappers, and static CLAUDE.md / AGENTS.md / .cursorrules files. Use when evaluating tool trade-offs or answering "how is Nomos different from X". Do NOT use when searching general Handbook tutorials (use search_nomos_corpus instead).
  - after: Compare Nomos deterministically against pre-commit hooks, SonarQube, ESLint, PR review bots (CodeRabbit, Greptile), prompt wrappers, and static CLAUDE.md / AGENTS.md / .cursorrules files. Example: focus='SonarQube' returns side-by-side trade-offs. Use when evaluating tool trade-offs or answering 'how is Nomos different from X'. Do NOT use when searching general Handbook tutorials (use search_nomos_corpus instead).
- 2026-11-21 `recommend_adoption_plan` changed (title, description, inputSchema)
  - before: Generate a progressive 4-step Nomos rollout sequence (read-only X-Ray, stealth Branch Guard, CI SARIF, and parallel Git worktrees) tailored to repository LOC, languages, and air-gap constraints. Use when planning rollout steps for a team or brownfield monorepo. Do NOT use when generating raw nomos.yaml and CI workflow files directly (use scaffold_nomos_config instead).
  - after: Retrieve a read-only 4-step Nomos rollout guide (X-Ray baseline, stealth Branch Guard, CI SARIF, and isolated Git worktrees) tailored to repository LOC, languages, and air-gap constraints. Example: languages=['go','typescript'], repo_loc=120000 returns a phased brownfield guide. Use when planning rollout steps for a team or monorepo. Do NOT use when previewing raw nomos.yaml and CI workflow templates (use scaffold_nomos_config instead).
- 2026-11-21 `inspect_dod_gates` changed (description, inputSchema)
  - before: List and filter the 42 compiled Go and Tree-sitter AST Definition of Done quality gates, 7 Canonical Laws, and sandbox rules. Use when browsing gate invariants by G-* ID, Law 1..7, or category. Do NOT use when troubleshooting a raw verify error log or ERR_* failure (use diagnose_nomos_error instead).
  - after: List and filter the 42 compiled Go and Tree-sitter AST Definition of Done quality gates, 7 Canonical Laws, and sandbox rules. Example: gate_id='G-16' or law=7 returns matching gate invariants. Use when browsing gate invariants by G-* ID, Law 1..7, or category. Do NOT use when troubleshooting a raw verify error log or ERR_* failure (use diagnose_nomos_error instead).
- 2026-11-21 `search_nomos_corpus` changed (description, inputSchema)
  - before: Search Nomos Engineering Handbook chapters, Empirical Field Dispatches, Open-Core Architecture Specs, and CLI reference by keyword. Use when looking up conceptual architecture, empirical benchmarks, or CLI flags. Do NOT use when inspecting a specific G-* gate or ERR_* code (use inspect_dod_gates or diagnose_nomos_error instead) or comparing external tools (use compare_governance_approaches instead).
  - after: Search Nomos Engineering Handbook chapters, Empirical Field Dispatches, Open-Core Architecture Specs, and CLI reference by keyword. Example: query='worktree isolation', section='handbook' finds chapters on Git worktrees. Use when looking up conceptual architecture, empirical benchmarks, or CLI flags. Do NOT use when inspecting a specific G-* gate or ERR_* code (use inspect_dod_gates or diagnose_nomos_error instead) or comparing external tools (use compare_governance_approaches instead).
- 2026-11-20 `scaffold_nomos_config` changed (description, inputSchema, outputSchema) **meaning changed**
  - before: Generate a schema-valid nomos.yaml configuration, 4-line GitHub Actions SARIF workflow, and Day-0 onboarding commands for any repository.
  - after: Generate a schema-valid nomos.yaml configuration, 4-line GitHub Actions SARIF workflow, and Day-0 onboarding commands for any repository. Use when producing ready-to-paste YAML config and CI pipeline files. Do NOT use when requesting a strategic rollout recommendation by LOC or air-gap posture (use recommend_adoption_plan instead).
- 2026-11-20 `diagnose_nomos_error` changed (description, inputSchema, outputSchema) **meaning changed**
  - before: Resolve any Nomos ERR_* failure code, TC-AGT-* vector, or nomos verify gate rejection into its root cause and non-bypassing 1-turn AST fix.
  - after: Resolve any Nomos ERR_* failure code, TC-AGT-* vector, or nomos verify gate rejection into its root cause and non-bypassing 1-turn AST fix. Use when troubleshooting a concrete verify failure or pre-commit hook error. Do NOT use when browsing the full catalog of 42 gates by Law or category without an error (use inspect_dod_gates instead).

Full history: https://api.protogrid.dev/v1/servers/io.github.mgantlett%2Fnomos/changes

## Dependencies

- npm @mgantlett/nomos@4.37.0: pending
- pypi nomos-cli@4.37.0: pending

Dependency graphs from deps.dev; advisories from OSV.dev, including the GitHub Advisory Database and the PyPI Advisory Database; all CC BY 4.0.

## Remotes

- https://sophialabs.ca/mcp (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

- npm @mgantlett/nomos@4.37.0
- pypi nomos-cli@4.37.0

## Tools (7)

- `compare_governance_approaches`: Compare Nomos deterministically against pre-commit hooks, SonarQube, ESLint, PR review bots (CodeRabbit, Greptile), prompt wrappers, and static CLAUDE.md / AGENTS.md / .cursorrules files. Example: focus='SonarQube' returns side-by-side trade-offs. Use when evaluating tool trade-offs or answering 'how is Nomos different from X'. Do NOT use when searching general Handbook tutorials (use search_nomos_corpus instead).
- `diagnose_nomos_error`: Look up any Nomos ERR_* failure code, TC-AGT-* vector, or nomos verify gate rejection to retrieve its root cause and non-bypassing AST remediation. Example: error_code='ERR_CROSS_PLANE_MUTATION' returns the remediation guide. Use when troubleshooting a verify failure or pre-commit hook error. Do NOT use when browsing the full catalog of 42 gates by Law or category without an error (use inspect_dod_gates instead).
- `inspect_dod_gates`: List and filter the 42 compiled Go and Tree-sitter AST Definition of Done quality gates, 7 Canonical Laws, and sandbox rules. Example: gate_id='G-16' or law=7 returns matching gate invariants. Use when browsing gate invariants by G-* ID, Law 1..7, or category. Do NOT use when troubleshooting a raw verify error log or ERR_* failure (use diagnose_nomos_error instead).
- `recommend_adoption_plan`: Retrieve a read-only 4-step Nomos rollout guide (X-Ray baseline, stealth Branch Guard, CI SARIF, and isolated Git worktrees) tailored to repository LOC, languages, and air-gap constraints. Example: languages=['go','typescript'], repo_loc=120000 returns a phased brownfield guide. Use when planning rollout steps for a team or monorepo. Do NOT use when previewing raw nomos.yaml and CI workflow templates (use scaffold_nomos_config instead).
- `scaffold_nomos_config`: Preview read-only nomos.yaml configuration text, 4-line GitHub Actions SARIF workflow text, and Day-0 onboarding commands without modifying files. Example: project_name='payments-api', mode='local' returns template text. Use when retrieving ready-to-paste YAML config and CI workflow templates. Do NOT use when requesting a strategic rollout recommendation by LOC or air-gap posture (use recommend_adoption_plan instead).
- `search_nomos_corpus`: Search Nomos Engineering Handbook chapters, Empirical Field Dispatches, Open-Core Architecture Specs, and CLI reference by keyword. Example: query='worktree isolation', section='handbook' finds chapters on Git worktrees. Use when looking up conceptual architecture, empirical benchmarks, or CLI flags. Do NOT use when inspecting a specific G-* gate or ERR_* code (use inspect_dod_gates or diagnose_nomos_error instead) or comparing external tools (use compare_governance_approaches instead).
- `xray_github_repo`: Inspect a public GitHub repository, pull request ratchet delta (pr), head-to-head rival shootout (vs), file path (focus), or organization rollup (org) via read-only static Tree-sitter AST analysis (<= 100MB source archive). Example: repo='go-chi/chi' (or repo='go-chi/chi', pr=42, or org='go-chi') returns the AST scorecard and Day-0 baseline preview. Use when auditing a public GitHub repo, PR, comparison, or org URL. Do NOT use when checking private repositories (private codebases require local CLI inspection via @mgantlett/nomos).

## Prompts and resources

### Prompts (3)

- `` audit-github-repo ``: Scan a public GitHub repository with xray_github_repo and summarize its AI Hangover Score and hotspots.
- `` diagnose-gate-failure ``: Look up an ERR_* code or nomos verify error via diagnose_nomos_error and remediate without weakening tests.
- `` setup-nomos-brownfield ``: Step-by-step zero-breakage Day-0 Nomos setup using nomos xray and nomos init.

### Resources (6)

- `` nomos://capabilities/catalog ``: Exhaustive SSoT catalog of all 66 capabilities, 8 engines, 16 CLI commands, 42 gate ProbeIDs, nomos.yaml contracts, hooks, MCP tools, and distribution channels.
- `` nomos://cli/reference ``: Command reference for nomos xray, nomos init, nomos verify, and task worktrees.
- `` nomos://compare/matrix ``: Side-by-side capability comparison across AST gates, worktree isolation, and zero-token hooks.
- `` nomos://corpus/overview ``: Concise index of Nomos install paths, 7 Laws, empirical dispatches, and Markdown twins.
- `` nomos://gates/catalog ``: Complete list of 7 Canonical Laws, 42 AST/sandbox quality gates, and ERR_* remediations.
- `` nomos://skills/bootstrap ``: Canonical Day-0 bootstrap instructions for AI coding agents installing and running Nomos.

### Resource templates (3)

- `` nomos://dispatches/{slug} ``: Read any public SophiaLabs empirical benchmark dispatch by slug (for example million-loc-polyglot-monorepo-scale-audit).
- `` nomos://handbook/{slug} ``: Read any public SophiaLabs Engineering Handbook chapter by slug.
- `` nomos://specs/{slug} ``: Read any public Nomos Open-Core domain specification by slug.
