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.
github.com with sophialabs.ca (e.g. sophialabs.ca/go-chi/chi)Top Structural Hotspots (Frozen Automatically in Day-0 Baseline)
| File | LOC | Max CC | Max Func | Signals |
|---|---|---|---|---|
| tree.go | 925 | 40 | 148 | file_loc=925>400, complexity=40>15, func_loc=148>60, nesting=7>5 |
| mux.go | 540 | 19 | 60 | file_loc=540>400, complexity=19>15, swallowed_errors=1 |
| middleware/compress.go | 412 | 7 | 71 | file_loc=412>400, func_loc=71>60 |
| middleware/throttle.go | 163 | 14 | 88 | func_loc=88>60 |
| _examples/rest/main.go | 520 | 4 | 58 | file_loc=520>400, swallowed_errors=1 |
| _examples/limits/main.go | 92 | 7 | 72 | func_loc=72>60 |
| _examples/logging/main.go | 9 | 1 | 3 | stubs=1 |
| middleware/client_ip.go | 341 | 6 | 30 | swallowed_errors=1 |
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 c64ed7d so existing files never
flood CI with retroactive lint noise.
{
"schema_version": "1.0",
"project_name": "chi",
"recorded_at": "2026-11-20T06:43:53.082Z",
"head_commit": "c64ed7d6635f33a8b2feaff7dcfa55677023ac7d",
"hangover_score": 35,
"grade": "C",
"files_scanned": 9... 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 fetchhttps://sophialabs.ca/xray/github.com/owner/repo.md/GET https://sophialabs.ca/api/xray?repo=owner/repo), report the realAI Hangover Score+ top 3 hotspots, and offer zero-footprintnomos init --local. - Mode B - Asked to Set Up Guardrails: Install via
brew install --cask mgantlett/tap/nomosor rootlessNOMOS_INSTALL_DIR="$HOME/.local/bin" curl -fsSL https://sophialabs.ca/install | bash, wire agent skills vianpx skills add mgantlett/nomos(or Claude Code/plugin marketplace add mgantlett/nomos && /plugin install nomos), and runnomos init(or 4-line PR gateuses: mgantlett/[email protected]).
Nomos