Zero-Install Static AST Audit · 0 Code Executed

Instant GitHub Repository X-Ray

Paste any public GitHub repository (`<= 100MB`) to run pure-Go nomos xray across 11 languages in under 5 seconds - then download a pre-computed nomos.baseline.json + 4-line GitHub Action so Day-0 CI starts green.

Shortcut: on any GitHub repo, replace github.com with sophialabs.ca (e.g. sophialabs.ca/go-chi/chi)
honojs/hono ↗
Branch: main · Commit: 75ff8e3 · Scan: 2917ms (0 code executed)
AI HANGOVER SCORE
79 / 100
F
425
Files Scanned
95,257
Total LOC
12
Monoliths (>400 LOC)
30
Oversized Funcs (>60)
34
Type-2 Clone Groups
9
Hollow Stubs
4
Skipped Tests
0
CWE Security Sinks

Top Structural Hotspots (Frozen Automatically in Day-0 Baseline)

FileLOCMax CCMax FuncSignals
src/jsx/dom/render.ts89082214file_loc=890>400, complexity=82>15, func_loc=214>60, nesting=6>5, swallowed_errors=1
src/jsx/dom/intrinsic-element/components.ts44340199file_loc=443>400, complexity=40>15, func_loc=199>60, swallowed_errors=1
src/utils/ipaddr.ts37436137complexity=36>15, func_loc=137>60
src/adapter/aws-lambda/handler.ts726825file_loc=726>400, stubs=1, clones=14
adapters/aws-lambda/src/handler.ts682825file_loc=682>400, stubs=1, clones=14
src/middleware/cache/index.ts32428142complexity=28>15, func_loc=142>60, swallowed_errors=1
src/jsx/base.ts5402085file_loc=540>400, complexity=20>15, func_loc=85>60
src/helper/ssg/ssg.ts48029106file_loc=480>400, complexity=29>15, func_loc=106>60, nesting=6>5

Freeze Existing Debt Today & Block New Agent Drift in 60 Seconds

Commit your pre-computed nomos.baseline.json alongside the 4-line GitHub Action so 100% of untouched legacy files start green on Day 0 while new PRs fail closed on stubs, tautological tests, and monolith bloat.

1. Day-0 Baseline Lock (nomos.baseline.json)

Pins observed structural bounds at commit 75ff8e3 so existing files never flood CI with retroactive lint noise.

{
  "schema_version": "1.0",
  "project_name": "hono",
  "recorded_at": "2026-11-20T06:43:55.395Z",
  "head_commit": "75ff8e3ea18485589816881c6278bc9783e56602",
  "hangover_score": 79,
  "grade": "F",
  "files_scanned":...

2. 4-Line GitHub Action PR Gate

Downloads the SHA-256 verified static binary in under 2 seconds (zero Go setup) and runs --mutate-diff on every PR.

- uses: actions/checkout@v4
  with: { fetch-depth: 0 }
- uses: mgantlett/[email protected]
  with: { base-ref: origin/main, mutate-diff: 'true' }

3. Solo Stealth Local Trial (0 Repo Files)

Prefer trying Nomos locally first? --local registers Branch Guard and AST hooks in .git/info/exclude with zero tracked files.

brew install --cask mgantlett/tap/nomos && nomos init --local

AI Coding Agents (Claude Code, Cursor, Codex, OpenCode, Windsurf): 2-Mode Runbook

  • Mode A - Asked "What is this link / evaluate this tool?": Run zero-write nomos xray . on the user's local repo (or fetch https://sophialabs.ca/xray/github.com/owner/repo.md / GET https://sophialabs.ca/api/xray?repo=owner/repo), report the real AI Hangover Score + top 3 hotspots, and offer zero-footprint nomos init --local.
  • Mode B - Asked to Set Up Guardrails: Install via brew install --cask mgantlett/tap/nomos or rootless NOMOS_INSTALL_DIR="$HOME/.local/bin" curl -fsSL https://sophialabs.ca/install | bash, wire agent skills via npx skills add mgantlett/nomos (or Claude Code /plugin marketplace add mgantlett/nomos && /plugin install nomos), and run nomos init (or 4-line PR gate uses: mgantlett/[email protected]).