The Architecture Compiler for AI-Generated Code

Your AI Writes Fast.Forge Keeps It Clean.

Forge scans your codebase, finds the spaghetti AI agents left behind, and restructures it into a clean five-tier architecture automatically.

Catch What AI Breaks

Finds architectural violations, circular imports, and wire breaks that AI agents leave behind.

Cut LLM Costs 40-60%

Structured code means fewer tokens for agents to parse, process, and regenerate.

Deterministic by Construction

Four Monadic Laws enforced by file-backed scanners. Recipe replays cut agent round-trips. Every verb logs to a tamper-evident savings ledger.

1,616
Tests
10
MCP Tools
7
Languages
$99
Launch Special
Get the Forge - $99
// the forge

Five passes. One coherent codebase.

The Atomadic Forge is the architecture compiler AI agents wrap around. Every pass is deterministic. Every file ends up where it belongs. AI writes the code. We give it architecture.

step 1
RECON
scan

Walk every file, classify every public symbol. Tier and effect distributions.

step 2
CHERRY
select

Pick the symbols worth assimilating into the canonical 5-tier layout.

step 3
WIRE
fix

Detect upward imports and wrong-tier files. Plan mechanical fixes.

step 4
CERTIFY
score

Score docs, tests, tier layout, import discipline. 0–100.

step 5
EMERGENT
compose

Walk every a0–a3 symbol, find type-compatible chains. Surface novel a3 feature candidates that don't exist yet but could — deterministically.

// what forge does

Six capabilities. Deterministic by construction.

Not features added on top — primitives baked into every Forge run. Every claim is verifiable. Every guarantee is enforced by a file-backed scanner.

graft
Surgical Grafting

Pull one function from any Python repo. Forge drops it into the target's correct tier and auto-wires CLI plus MCP.

$ forge graft --source-file X --symbol Y --rename Z
ledger
Token-Savings Ledger

Every Forge verb logs to a file-backed lifetime ledger. Verifiable, auditable JSONL — every project carries a tamper-evident savings receipt.

$ forge token-savings
replay
Recipe Replayer

Run golden-path command chains deterministically. Zero LLM round-trips per step — agent reasoning replaced with execution.

$ forge replay <recipe>
MCB · AIOM · AHLP · IFWC
Four Monadic Laws

No unbounded loops in pure tier. No I/O imports in pure tier. Cryptographic fingerprint per pure-tier module. Property-based fuzzing on declared invariants. Guarantees backed by file-backed scanners — not marketing claims.

$ forge laws --check
type-aware
Smart Auto-Wire

Type-aware CLI stub generation. list[float] becomes real list parsing, not raw strings. The last residual in the harvest pipeline — gone.

$ forge harvest --auto-wire
incremental
Recon Cache

Tree-fingerprint incremental recon. Re-runs on unchanged trees skip the AST walk entirely. First-call cost, zero-call repeat.

$ forge recon # cached on second pass
// the substrate

Five tiers. Upward-only composition.

Every file lives in exactly one tier. Tiers compose upward. A1 cannot import from A2. A0 cannot import from anything.The Forge enforces this mechanically — circular and upward imports become impossible.

Tier
Folder
Allowed Imports
Examples
a0Constants
a0_qk_constants
Nothing
config.py · types.py · constants.py
a1Functions
a1_at_functions
a0
validators.py · helpers.py · parsers.py
a2Composites
a2_mo_composites
a0, a1
client.py · store.py · registry.py
a3Features
a3_og_features
a0, a1, a2
service.py · feature.py · pipeline.py
a4Orchestration
a4_sy_orchestration
a0–a3
__main__.py · cli.py · server.py
Ship the refactor

One-time fix. Or continuous.

We run the full Forge — recon, cherry, wire, certify, emergent — against your repo and ship a PR within 48 hours. Or subscribe to keep your codebase architecturally coherent across every AI-generated change.

One-time refactor
$149 $99 launch special
PR shipped within 48 hours
  • ·Full Forge scan: recon → cherry → wire → certify → emergent
  • ·Architecturally-coherent commit on a new branch
  • ·Target: 100/100 certify score · 0 wire violations
  • ·Manifest of every file moved + every violation fixed
  • ·One round of revisions included
Stripe-secured· Receipt emailed instantly· No account required
Continuous architecture
From $79/mo
Forge runs on every PR
  • ·CI integration: forge-action runs on every PR
  • ·Auto-PRs that re-tier drift before it lands
  • ·Forge Receipt badge on your README
  • ·Access to forge evolve — recursive self-improvement
  • ·4 tiers: Starter $79 · Founding $149 · Pro $249 · Enterprise $999
See subscription tiers →
Stripe Checkout · cancel anytime from the customer portal
🔒 Stripe-secured checkout · cards accepted globally · receipts emailed instantly · powered by atomadic.tech