▲ NOMOS // TRANSACTIONAL REPOSITORY SUBSTRATE FOR CODING AGENTS

Agents Guess. Git Can't.
Meet the Deterministic Layer Underneath.

Keep Claude Code, Cursor, Antigravity, Windsurf, or OpenCode. The way PostgreSQL sits between concurrent apps and raw disk, Nomos sits between your coding agent and Git - locking main read-only, persisting spec-to-code contracts across every edit, and enforcing 42 compiled AST gates in disposable worktrees before any commit lands.

curl -fsSL https://sophialabs.ca/install | bash
Quickstart Docs
●
LEFT PLANE: INTENT · Σοφία Persisted Specs & Read-Only Contract Lock
RIGHT PLANE: SUBSTRATE · Νόμος Worktrees, <15ms Hooks & 42 AST Gates
●
✦ Hover Left Plane to perturb intent • Click stage to pulse • Click green Totem for Docs
NOMOS v4.20.1
Overall: 48.78 (+8.7%) • Deliverables: 40.05 (+15.2%) • Context: 62.16 (+42.8%) • Harness Faults: 45/95 (-18.2%)
Paired Audit (n=95) ↓
THE DEVELOPER DILEMMA // UNCHECKED AGENT ENTROPY

From Vibe Coding Velocity to Deterministic AST Rails

PHASE 01 // 0-60 MINS

The Vibe Paradise

10x Speed
  • ⚡ Instant features scaffolded from prompts
  • 🎨 UI renders immediately with zero cognitive load
  • 🚀 “AI has solved coding forever” feeling
▲ Peak Velocity
PHASE 02 // THE 3 SILENT FAILURES

The Entropy Trap

0.1x Speed
  • 🎭 Reward Hacking Tests: Deleted or weakened assertions to fake green builds
  • 🕳️ Hollow Shims & Stubs: Hardcoded returns, dead TODOs, and monolithic files
  • 🌪️ Unbounded Workspace Drift: Direct trunk edits and cross-layer boundary leaks
▼ Context Collapse
THE NOMOS HARNESS

Peace of Mind for Any Agent

Sustainable 10x
  • 🛡️ Keep your favorite agent: Claude Code, Cursor, Antigravity, OpenCode, Windsurf
  • ⚡ AST Complexity Ceiling: Enforces cyclomatic complexity <= 15 & file LOC <= 400
  • 📦 Hermetic Worktrees: Physically read-only trunk prevents workspace drift
  • ✅ 42 DoD Gates: Non-verbal AST proof blocks shims & reward hacking
▲ Deterministic Reality
The missing transactional layer between coding agents and Git - armed in 60 seconds. Single static Go binary (Apache 2.0). Works out of the box with Claude Code, Cursor, Antigravity, OpenCode, Windsurf, and Aider.
curl -fsSL https://sophialabs.ca/install | bash
A NEW LAYER IN THE ENGINEERING STACK

We Don't Replace Your Coding Agents.
We Govern Their Reality.

Nomos introduces the missing transactional runtime for both architectural intent (INT-*) and compiled code (SUB-*) - locking specs against reward-hacking, isolating edits in hermetic worktrees, and verifying every diff across 42 AST quality gates.

ZERO-PLUGIN SUPPORT
AntigravityClaude CodeCursorWindsurfOpenCodeAider
NEW INFRASTRUCTURE LAYER Postgres put ACID transactions between apps and raw disk. Nomos puts ACID worktrees & anti-reward-hacking AST physics between coding agents and Git.
NOT ANOTHER CODING AGENT

Models Are Engines. Nomos Is the Runtime.

Keep Claude Code, Cursor, Antigravity, OpenCode, Windsurf, or Aider. You prompt in plain English the exact way you already do while Nomos governs state isolation and merge safety underneath.

NOT A LINTER OR POST-HOC CI

Built for Adversarial Agent Shortcuts.

Linters check syntax for honest humans after edits dirty a branch. Nomos blocks optimizing agents from deleting failing assertions, returning hollow stubs, weakening nomos.yaml, or rewriting specs to excuse broken code.

NOT A .CURSORRULES PROMPT PACK

Compiled Exit Codes Over Polite Prose.

Markdown rules decay once context crosses 60%. Nomos enforces compiled Go, Git hook, and AST exit codes (exit 1) outside the model context window, promoting mneme.db lessons strictly after a verified 2PC receipt.

01 · HERMETIC SANDBOXING

Stay at Repo Root. Edits Run Isolated.

Guide your coding agent in plain natural language from the root of your repository with zero custom slash commands. Underneath, Nomos routes every file edit into a hermetic worktree (worktrees/<repo>-<task>).

  • ✓
    Protected trunk branch - Direct commits to main fail closed automatically.
  • ✓
    Deterministic task lifecycle - Explicit PLAN -> EDIT -> REVIEW -> SYNC phases.
  • ✓
    42 AST quality gates - Compiled Go & Tree-sitter checks before merge.
02 · 11-LANGUAGE BROWNFIELD RATCHET

Built for 100k-LOC Polyglot Repos, Not Toy Demos.

Nomos drops into existing Go, Python, TS/JS, Svelte, Rust, Ruby, C++, Java, Kotlin, and C# codebases with diff-scoped AST ratcheting (verify_scope: "diff") and switchable tdd_mode / coverage_mode controls - beating stock frontier passes on zero-hint OSS PRs (3/6 vs. 2/6 Gemini 3.8 Flash (-42.5% tok) →).

existing-repo-root
$ curl -fsSL https://sophialabs.ca/install | bash
$ nomos init
✓ AGENTS.md, SessionStart hooks & 42 AST gates armed
› "Add CapBAC token validation to auth middleware"
✓ Isolated in worktrees/repo-SUB-42 (main protected)
CLOSED-LOOP REPOSITORY GOVERNANCE

How Nomos Governs Every Task End-to-End

From a plain-language prompt to an atomic fast-forward merge: your coding agent works inside an isolated Git worktree while the Go binary enforces 42 sub-400ms AST gates before anything touches main.

LISTED IN OFFICIAL TRACETRIAL-BENCH COMMUNITY RUNS · ARXIV:2610.32285

Tested on Top of the #1 Agent Harness.
Zero Model Weight Changes.

Across 190 isolated Docker containers holding Claude Code v2.1.220 and Gemini 2.5 Flash-Lite fixed across all 95 tasks (0 errors), inserting compiled nomos hook governance beat stock Claude Code on both axes (44.89 -> 48.78 Overall, 36W / 30T / 29L).

SHA-256 Verified & Listed in Official Benchmark: TraceLite-AI/TraceTrial-Bench (GitHub) ↗ · Hugging Face Dataset ↗
+15.2%
Agent Deliverables
34.78 -> 40.05 across n = 95 tasks
+42.8%
Context & Continuity
43.55 -> 62.16 (+78.3% Agent lift)
-18.2%
Harness-Caused Failures
55 -> 45 causal failure attributions
~4 ms
Compiled Go Hook Overhead
Static CGO_ENABLED=0 binary
VERIFIED HOOK MECHANICS · NOMOS V4.2.0

Three Systems Lessons from 190 Paired Containers

In the benchmark authors' published public leaderboard (tracelite.ai ↗), Claude Code ranks #1 overall while frontier models burn extra retries masking harness faults. Locking stock Claude Code v2.1.220 + Gemini 2.5 Flash-Lite isolated three concrete harness invariants:

  • 01 Additive Hook Chaining +10.39 Observability

    Merging nomos hook into $CLAUDE_CONFIG_DIR/settings.json preserves workspace-local .claude/settings.json plugins instead of shadowing them via --settings.

  • 02 Silence on Allow -39.3% Ablation Proof

    Injecting synthetic coaching prose into PostToolUse masked POSIX EACCES errors; emitting {} on allow and firing only on real AST, JSON, and JSONL errors restored full channel fidelity.

  • 03 Path Hygiene & Loop Breakers +78.3% Context Agent

    Blocking unexpanded $WORKSPACE and ~ paths on read & write tools plus a poll-safe 3-strike identical-failure breaker eliminated 200+ turn thrash loops.

NEXT ON THE WORKBENCH // SOVEREIGN PREVIEW

Transactional for Intent & Code. Built for the 70/30 Local Split.

nomos Open-Core (Apache 2.0) stays 100% local and uncrippled beneath the coding agent you already use. Next from the SophiaLabs lab: nomos code and Nomos Cockpit - built so you steer frontier models on the hard 70% of architecture while a local GPU clears the mechanical 30% unattended inside disposable worktrees.

70% FRONTIER STEERED · Architecture, Concurrency & Multi-File Design (Claude / Cursor / AGY-IDE) 30% $0 LOCAL AUTONOMY · Leaf Chores, Test Ratchets & AST Debt (16GB+ Local GPU)
01 · TRANSACTIONAL INTENT

ACID Specs Before Code

Intent is not an ephemeral chat prompt. Specs, Go SSoT schemas, and acceptance criteria land as audited INT-* transactions that causally unlock SUB-* code worktrees - so agents can never rewrite your spec to excuse broken code.

02 · NOMOS CODE (30% LOCAL)

Safe $0 Local Autonomy

Raw local MoE models are too noisy to trust directly on main. Caging nomos code inside disposable git worktree sandboxes and 42 AST sensor probes makes unattended local burndown safe: bad runs evaporate at $0 token cost.

03 · NOMOS COCKPIT HUD

Visual DAG & Worktree Radar

Inspect your live INT/SUB causal wavefront, parallel agent worktrees, 7x3 gate receipts, local GPU routing, and unpoisoned mneme.db memory from a single local control plane.

APACHE 2.0 // OPEN CORE SUBSTRATE

Architectural Adoption Profiles

Pure open-core developer sovereignty at the baseline. Dedicated sovereign meshes and air-gapped appliances for defense and regulated engineering teams.

Open Core Developer Standard

Nomos Community

$0 Free
Permanent Open Core

For individual senior developers and open-source contributors seeking deterministic AST gates, hermetic worktree sandboxes, and physical machine-verified Definition of Done.

  • ✓
    Zero-LLM Deterministic CLI: Compiled Go binary with sub-100ms AST validation and 42 DoD gates.
  • ✓
    Pre-Tool Security Airlock: Compiled CapabilityFlowGraph IFC, credential airlock, and zero-trust MCP guard.
  • ✓
    Hermetic Worktrees & 2PC Sync: Sandboxed execution (worktrees/<repo>-<task>) with signed Git Notes release receipts.
  • ✓
    Receipt-Gated Local Mneme (mneme.db): Sub-50ms hybrid vector/lexical recall and automatic 2PC trap -> fix pitfall distillation.
  • ✓
    BYO-Agent Coexistence: Drops underneath Claude Code, Cursor, Antigravity, OpenCode, and Aider seamlessly.
Independent Engineers

Sovereign Developer

Commercial
Single-Seat Developer
Autonomous Tier 2 burndown & 4-Pillar Cockpit

For independent tech leads, consultants, and senior engineers who need headless nomos code local GPU burndown, the 4-Pillar Glass Cockpit HUD, and SOMA cross-task memory synthesis.

  • ✓
    Everything in Nomos Community
  • ✓
    Tier 2 Nomos Code Fleet: Headless autonomous worker clearing chores at $0 local GPU cost inside disposable worktrees.
  • ✓
    4-Pillar Glass Cockpit & 2D Perimeter Radar: Unified Workfront & Code DNA Atlas, 7x3 Verify Matrix, 70/30 Silicon Router, and live Firewall/Air-Gap probes (inspect tour).
  • ✓
    SOMA Dream Cycle & Mneme Cortex HUD: Background cross-task axiom distillation, visual duplicate/pitfall graduation UI, and Hands-Free Voice ATC.
  • ✓
    Adversarial Critic & Twin Parity: Cross-model spec conformance review (nomos code review) and Intent-to-Code drift shields.
Coordinated Swarms

Sovereign Squad Mesh

Squad Mesh
5-15 Seat Engineering Fleet
Coordinated autonomous swarms

For 5-15 developer engineering squads modernizing codebases with coordinated autonomous swarms, synchronized squad pitfall memory, and multi-repo orchestration.

  • ★
    Everything in Sovereign Developer
  • ★
    Synchronized Squad Mneme Mesh: Verified pitfalls, architecture axioms, and review receipts shared across every engineer and agent seat.
  • ★
    Multi-Seat CapBAC Fleet Cockpit: Collision-free task leases, live seat radar, friction heatmaps, and sprint debt audits.
  • ★
    Cross-Repo Causal Orchestration: Coordinated multi-worktree execution across frontend, substrate, and daemon repositories.
Defense & Enterprise

Air-Gapped & Regulated

Turnkey Node
On-Prem Air-Gapped Appliance
Zero egress · 100% sovereign

For security-conscious enterprises and defense contractors requiring 100% air-gapped sovereign execution, custom AST compliance rules, and dedicated hardware appliances.

  • 🛡️
    Turnkey NixOS GPU Appliances: Pre-configured air-gapped hardware nodes running 100% local sovereign swarms.
  • 🛡️
    Zero Egress & Offline Entitlement: Offline Ed25519 cryptographic licensing, zero model training, and zero external network calls.
  • 🛡️
    Custom AST Compliance Gates: Tailored linters, proprietary security invariants, and bespoke DoD gate engines.
  • 🛡️
    Dedicated Architecture Advisory & 24/7 SLA: Direct access to Principal Systems Architect Mark Gantlett for modernization sprints.

Detailed Edition & Gate Comparison Matrix

Architectural CapabilityCommunity (Free & Open Core)Sovereign DeveloperSovereign Squad MeshAir-Gapped & Regulated
Deterministic Substrate Rails & Pre-Tool Security
Zero-LLM Compiled Go Engine & Ambient Agent Hooks✓ Sub-100ms✓ Sub-100ms✓ Sub-100ms✓ Sub-100ms
42 Binary AST Definition of Done (DoD) Gates (7x3 Matrix)✓ All 42 Gates✓ Full Array✓ Full Array✓ Bespoke + Custom
Pre-Tool Security Airlock (IFC, Credential & MCP Guard)✓ Included✓ + 2D Radar✓ + 2D Radar✓ + Air-Gap WAF
Hermetic Git Worktree Sandboxing✓ Single-Seat✓ Multi-Worktree✓ Multi-Seat Leases✓ Multi-Repo Cluster
6-Phase State Machine & 2PC Git Notes Receipts (IDLE -> LEARN)✓ Cryptographic✓ Cryptographic✓ Cryptographic✓ Cryptographic + Audit
Cognitive Escalation & Hybrid Silicon Economics
Zero-Token CLI & Local SLM Support (Ollama / vLLM / llama.cpp)Unlimited ($0 COGS)Unlimited ($0 COGS)Unlimited ($0 COGS)Hardware Accelerated
Inference & Model RoutingBYO Local SLM or Frontier KeyAutomated 70/30 SOMA Router70/30 Squad Silicon Pool100% On-Prem GPU Appliance
Tier 2 Nomos Code Autonomous Worker Fleet--✓ Single Host✓ Parallel Swarm✓ Distributed Cluster
Adversarial Conformance Critic (nomos code review) & Twin Parity--✓ Cross-Model Critic✓ Squad Conformance✓ Air-Gapped Critic
4-Pillar Glass Cockpit & Subconscious Memory
Terminal ANSI Substrate HUD & Sanitized Issue Ledger✓ Full CLI HUD✓ Full CLI HUD✓ Full CLI HUD✓ Full CLI HUD
4-Pillar Glass Cockpit SPA, 2D Code DNA Atlas & CodeCity--✓ Individual Seat✓ Multi-Seat Fleet HUD✓ On-Prem Command Center
Nomos Mneme Subconscious Memory✓ Local SQLite + Vectors (mneme.db)+ SOMA Dream Cycle & Cortex HUDSynchronized Squad MeshAir-Gapped On-Prem Cluster
SOMA Cognitive Kernel, Sentinels & Voice ATC--✓ Local Kernel + ATC✓ Squad Sentinels✓ Air-Gapped Appliance
Licensing, Hardware & Support Infrastructure
Licensing & Offline EntitlementApache 2.0 (Forever Free)Ed25519 Seat (Zero Phone-Home)Ed25519 Squad MeshTurnkey Appliance License
Turnkey Hardware Appliances----Optional Add-On✓ Turnkey NixOS Box
Support & Engineering RetainerCommunity GitHubPriority Email & GitHubDedicated Engineering Channel24/7 SLA + Advisory
THE DEVELOPER COEXISTENCE & ARCHITECTURAL FAQ

Frequently Asked Questions

Grounded answers on Tier 1 agent compatibility, local inference economics, open-core licensing, and air-gapped execution.

Does Nomos replace my favorite coding agents like Claude Code, Cursor, or OpenCode? ▾

No. Nomos is not another chat window, IDE fork, or LLM wrapper. Nomos is a compiled Go binary that operates as the Deterministic Engineering Substrate underneath whatever coding tool you already use.

While Claude Code, Cursor, or OpenCode generate probabilistic candidate edits as cognitive co-processors, Nomos intercepts and sandboxes every change inside hermetic Git worktrees, runs 42 deterministic AST quality gates (< 15 complexity, docstring density, clean imports), and prevents broken code from polluting your trunk branch. You get 10x velocity without the Day 7 "AI complexity spiral".

How does inference work and what are the host costs? ▾

Nomos has zero markups and zero token resale. The nomos Go binary itself burns zero LLM tokens ($0 COGS), and SophiaLabs never locks you behind a cloud token proxy.

In Open-Core, you can run 100% locally at $0 marginal token cost on open-weight SLMs (such as Gemma 4 26B, Qwen 3, or DeepSeek via Ollama, vLLM, or llama.cpp on Apple Silicon or NVIDIA RTX), or steer frontier models (Claude Sonnet/Opus 4.6, Gemini 3.1 Pro, GPT-5) directly via your own Bring-Your-Own-Key (BYOK) credentials. In Nomos Sovereign, the hybrid silicon router automates the 70% Frontier ZDR Architecture / 30% $0 Local GPU Autonomous Burndown split (or 100% local air-gapped execution on Regulated NixOS GPU appliances).

What is the difference between open-core Nomos Community and Sovereign editions? ▾

Nomos Community is 100% free and open-source under the Apache 2.0 license. It gives individual developers the complete single-seat Go CLI substrate: hermetic worktree sandboxing, all 42 AST Definition of Done quality gates, the pre-tool security airlock (CapabilityFlowGraph IFC, credential guard, MCP allowlist), and receipt-gated local mneme.db memory with automatic 2PC trap -> fix pitfall distillation.

Nomos Sovereign (Developer, Squad Mesh, Air-Gapped) adds the visual 4-Pillar Glass Cockpit & 2D Perimeter Radar, headless Tier 2 autonomous worker fleets (nomos code), the cross-model Adversarial Conformance Critic (nomos code review), SOMA background Dream Cycle synthesis & Mneme Cortex HUD, synchronized squad memory meshes, and turnkey air-gapped NixOS GPU appliances.

Can our engineering team run 100% air-gapped without internet access? ▾

Yes. Nomos was built from first principles for sovereign, offline engineering.

The Go binary has zero external runtime phone-homes and zero telemetry tracking. In air-gapped defense or regulated enterprise environments, inference runs entirely against on-premise GPU clusters (vLLM / Ollama). No source code, embeddings, or metadata ever leave your physical network perimeter.

How do I install and start using Nomos? ▾

Installation is a single shell command from the canonical GitHub repository:

curl -fsSL https://sophialabs.ca/install | bash

Zero credit card, zero account registration, and zero cloud lock-in. You immediately get the compiled Go binary in your PATH, run nomos init once in any Git repository, and prompt your coding agent in plain English with zero custom slash commands.

Does Nomos require changing my existing Git workflow or repo structure? ▾

No. Nomos is 100% non-invasive. You do not need to restructure your codebase, adopt monorepo tooling, or rewrite existing CI/CD pipelines.

Nomos attaches to any standard Git repository. When you start a task, Nomos provisions a hermetic worktree (worktrees/<repo>-<task>) to isolate AI-generated edits. Your trunk branch (main) remains protected. Once edits pass the 42 AST gates, Nomos executes an atomic two-phase commit (2PC) to sync verified changes directly into your active branch and prunes the worktree cleanly.

Featured Engineering Reads

Deep architectural essays extracted from our private Cognitive Agent Engineering Handbook.

Systems Architecture CHAPTER 01 ⏱️ 10 min read

The Physics of Software: Why Code Is Dynamic Machinery, Not Paint on Canvas

The seductive metaphor of coding as 'creative direction' conflates zero-friction generation with zero-friction verification. Software is not static paint on canvas; it is dynamic machinery under load. When generation cost drops to zero, the engineer's true role transforms into Chief Structural Inspector.

Systems Architecture CHAPTER 02 ⏱️ 14 min read

Why Vibe Coding Dies: The Failure Modes of Stochastic Orchestration

Vibe coding is not a methodology. It is an ungoverned control loop. At repository scale it fails through context thrashing, silent regressions, and the code-janitor trap - because correctness was left inside a model that cannot return exit code 1.

Architecture CHAPTER 03 ⏱️ 18 min read

Cognitive Inversion: The Substrate Owns the Loop

The compiled substrate owns the repository lifecycle, capability leases, and two-phase commits. The coding agent is an untrusted, bounded cognitive co-processor. Inverted control flow is the only topology that survives multi-turn and multi-agent engineering.

Engineering Substrate CHAPTER 04 ⏱️ 14 min read

The Execution Substrate: Worktrees, Gates, and Two-Phase Commit

Agent execution is a concurrency problem. Nomos isolates work in ephemeral git worktrees, forbids trunk mutation via pre-commit locks, and publishes only through Two-Phase Commit with Ed25519-signed receipts on refs/notes/nomos/releases.

Architecture & Verification CHAPTER 05 ⏱️ 16 min read

Non-Verbal Proof: AST Invariants, Green Traces, and Exit Code 1

We never ask an LLM if code is correct. Correctness is a compiled predicate: Go AST invariants, hermetic import graphs, cyclomatic ceilings, docstring density, and a 100% green test trace. Failure is exit code 1. There is no negotiation.

Architecture CHAPTER 06 ⏱️ 14 min read

The Dual-Core Architecture: Control Inversion, 2-Plane Isolation & Provenance

Autonomous agents fail in flat repositories because they invent cross-layer edges. Nomos enforces Law 1 (Dual-Core Inversion - compiled Go runtime governing bounded coding agents under indirect control) alongside 2-Plane Hemisphere Isolation (Intent Plane vs. Substrate Plane), bound by worktree sandboxes, SHA-256 SSoT byte parity, and cryptographic release provenance.

Operations CHAPTER 07 ⏱️ 22 min read

Operating Autonomous Agent Swarms

Tier 1 coding agents operate under indirect control via sub-5ms hooks and worktree isolation; Sovereign Tier 2 swarms execute headless TDD across causal DAGs. The Go substrate owns IDLE -> PLAN -> EDIT -> REVIEW -> SYNC -> LEARN. This chapter is the operational runbook.

Operations & Economics CHAPTER 08 ⏱️ 16 min read

Inference Economics & The Velocity Dynamics

Inference cost is a control-flow problem. Prompt-heavy agents tax every turn with full-window reloads and unguided retries. Nomos treats the LLM as a budgeted subroutine: JIT state slicing, CapBAC accounting, AST-gated velocity over 90 days, and Nomos Mneme distillation of verified commits into retrievable memory.

Reference CHAPTER 09 ⏱️ 9 min read

The Invariant Card & Technical Glossary

The seven non-negotiable laws of autonomous engineering, followed by a five-layer lexicon - Axioms, Invariants, Gates, Capabilities, Receipts - that maps every Nomos term to its enforcement surface.

Reference CHAPTER 10 ⏱️ 22 min read

The Seven Laws of Deterministic Engineering

The first-principles deterministic and architectural derivation of the Seven Laws of Nomos, the Five-Layer Ontological Stack, and the 7x3 Canonical Gate Matrix governing autonomous software engineering.

Systems Architecture CHAPTER 11 ⏱️ 12 min read

The Deterministic Manifesto: Why Software Is Only the First Crucible

Software is not the destination; it is the crucible. The deterministic control harness proven in Nomos establishes the foundational cybernetic architecture for governing autonomous probabilistic agents across silicon, kinetic robotics, and physical reality.

Cybernetic Control & Linguistics CHAPTER 12 ⏱️ 14 min read

The Agent-Steering Protocol & NCTE-100 Lexicon: Speaking Physics to Probabilistic Agents

Transactional code worktrees and declarative intent schemas are only two axes of deterministic software engineering. The third axis is the Cybernetic Agent-Steering Protocol - how the compiled Go substrate and human architect steer Tier 1 coding agents through HATEOAS CLI affordances, self-healing remedies, sub-5ms ambient hooks, and the 36-term NCTE-100 Succinct Action Lexicon.

Browse All Handbook Chapters →