Show HN: Nomos – A Go harness that stops coding agents from cheating on tests gi...
Show HN @show
Show HN: Nomos – A Go harness that stops coding agents from cheating on tests github.com · 4 points · 0 comments · HN thread
TL;DR Nomos is an Apache 2.0 Go binary (about 28MB, CGO_ENABLED=0) that sits between a coding agent such as Claude Code, Cursor or OpenCode and a Git repository. It isolates each task in a worktree, runs 42 structural and AST gates plus the project's own compiler and tests, and merges to main only through a two-phase commit with a Git Notes receipt. The Show HN post has 4 points and no comments, so the discussion section is empty.
- Locks main against direct commits via Git hooks and runs each task in its own Git worktree under a state machine (IDLE, PLAN, EDIT, REVIEW, SYNC, LEARN).
- Splits spec tasks (INT-) from code tasks (SUB-) in a causal DAG so an agent cannot edit the spec to excuse broken code; nomos.yaml is pinned to main.
- nomos verify runs 42 in-binary gates, reporting about 460ms for a full pass and about 24ms with --fast-file, and blocks deleted assertions, skipped tests, hollow stubs, leaked secrets, functions over 60 LOC and similar patterns.
- Memory (nomos mem) is a local SQLite store that promotes lessons only after a verified merge, with a receipt under refs/notes/nomos/releases; there is no cloud account or telemetry.
- The author reports that a PostToolUse hook injecting warning text degraded native EACCES guardrail attribution by 39.3% on the TraceTrial-Bench harness, and that moving enforcement to PreToolUse guards and a 3-strike circuit breaker recovered it; the reported gains are vendor-measured and the article's own figures.
- The author lists limits: non-Go languages rely on native toolchains rather than in-binary AST checks, and the full loop adds overhead that makes it slower than raw vibe-coding for small prototypes.
Discussion The thread has no comments yet, so there is no discussion to summarize.
#AIcodingAgents #Golang #CodeQuality #GitWorkflow #DeveloperTools