4-LAYER LOOP · RSI HARNESS · NODE 22 BUNDLED

Autonomous Engineering Agent That Never Repeats the Same Mistake

Conventional AI assistants forget rules mid-session and overwrite files wholesale. Loomo runs a 4-layer nested loop where every learned rule must pass real tsc & unit-test shadow gates before activation.

loomo-pulse · Live Cognitive Cockpit
SHADOW GATE
ASTIn [backend_api] -> MUST clearTimeout() after Promise.race
INFShadow injections: 3/3 · Causal violations: 0
TSCnpx tsgo --noEmit -> exit 0 (0 errors)
TESTnpx vitest run server-shutdown.test.ts -> 12 passed
PROMOTERule promoted: shadow -> active (circuit-breaker <30%)
SHA-256 Tombstones: 14 (read-only)Violation Rate: 0.0%
4 Layers
Nested Loop Depth
0 Token
Coding Feed Noise
0ms
Intent Gate Latency
Win / Mac
Bundled Desktop
01 / WORKFLOWS

What Loomo Delivers in Real Engineering

Built to own the entire engineering loop—from goal decomposition and surgical edits to compiler verification and rule crystallization.

01 · LONG-HORIZON DELIVERY

Resumable Multi-Module Feature Execution

Hand cross-package refactors to the Goal Loop. It decomposes subtasks, locks architectural constraints, and resumes cleanly across sessions.

→ Planner / Executor / Critic closed-loop handshakes
02 · ZERO RULE POISONING

Self-Evolution Bounded by Real Compilers

Failures crystallize into read-only Cognitive Tombstones; candidate rules must follow Causal Contract AST syntax and pass real tsc + unit tests.

→ Auto-quarantine circuit breaker at ≥30% violation rate
03 · MONOREPO SURGERY

Patch Exact Lines, Never Rewrite Whole Files

LSP symbol references paired with Hashline hash-anchored diffs touch only target lines—eliminating LLM truncation and accidental deletions.

→ 0ms regex intent gate + AST impact awareness
04 · ALWAYS-ON COMPANION

Monitor & Approve from Mobile Anywhere

Runs as a standalone desktop app with a bundled Node 22 runtime. Pair Mobile Companion over LAN/tunnel to approve sensitive actions remotely.

→ Zero host pollution on Windows & macOS
02 / ENGINES

Six Native Engines for Deterministic Delivery

Written from the ground up in TypeScript—zero fragile glue scripts, every subsystem enforced by measurable invariants.

CONTINUOUS RUNTIMEHEARTBEAT ACTIVE

Background Heartbeat · Continuous Tick Loop

Unlike stateless chat windows, Loomo consolidates FTS5 memory, trims context budgets, and audits workspace health during idle ticks.

[tick#4082] workspace_pulseidle · 14ms
FTS5 Index
SYNCED
Context Budget
38.4%
Tombstones
READ-ONLY
VERIFIED EVOLUTION

Compiler-Gated Rules · RSI Harness

Prevents prompt bloat. Candidate rules require Causal Contract AST syntax, ≥3 shadow injections with zero violations, and quarantine on ≥30% error rate.

01Causal Contract ASTPASS
02Shadow tsc/Test GatePASS
03≥30% Auto-QuarantinePASS
LINE-LEVEL PRECISIONZERO FULL-REWRITE

Zero Full-File Rewrites · Hashline & LoomoGraph

0ms regex intent gating filters noise before invoking LSP references and hash-anchored line diffs, preserving comments and adjacent code.

src/router.ts#L42-44
- const timeout = 3000;
+ const timeout = config.requestTimeoutMs ?? 5000;
EXTERNAL SENSE HOST

Zero Coding Distraction · RSSFlow Isolation

Distills engineering feeds 24/7 in a cold SQLite store while enforcing strict 0-token isolation during coding—recalling only when entity gates match.

HOT LAYER
Hot Layer · Entity-Gated Recall
ENTITY GATE = OFF
Coding Mode · 0 Token Noise
AUTONOMOUS ORCHESTRATION

Multi-Role Handshakes · Goal Loop & Swarm

Coordinates Planner, Executor, Critic, and Tester roles with structured event ledgers, fault recovery, and resumable checkpoints.

Planner→
Executor→
Critic→
Tester
CROSS-DEVICE CONTROLLAN / TUNNEL SYNC

Remote Telemetry & Gates · Mobile Companion

Streams live workspace pulse telemetry to your phone and routes destructive-action confirmations for instant one-tap approval.

Destructive Gate ApprovalPAIR READY
03 / COMPARISON

Why Not Just Another Coding Agent?

MCP, SKILL.md, and rule files are just the steering wheel and brakes. Real differentiation lies in loop depth and self-correction gates.

Dimension1-Layer Assistants (Aider / Chatbots)2-Layer Agents (Claude Code / Cursor)Loomo (4-Layer Self-Evolving)
Loop Architecture Depth1 Layer (ReAct chat loop only)1.5 – 2 Layers (ReAct + inline edit or /goal)4 Nested Layers (Tick + Agent + Goal + Evolution)
Rule Evolution & SafetyNo cross-session memory; manual re-promptingUnverified natural-language Rules.md bloatCausal Contract AST + Shadow tsc/tests + Tombstones + 30% breaker
Code Editing GranularityFrequent full-file rewrites & truncation riskPatch blocks or IDE editor APIsHashline hash-anchored line diffs + LSP + 0ms LoomoGraph
External IntelligenceOffline or manual doc pastingManual web search polluting coding contextRSSFlow cold/hot isolation (strict 0 Token during coding)
Runtime & CompanionCLI bound to local environmentTied to a specific IDE or terminalStandalone Desktop (Node 22 bundled) + Web Cockpit + Mobile
04 / ARCHITECTURE

The 4-Layer Nested Loop

From background wake-up and surgical execution to long-horizon goals and verified evolution.

L1
Tick Loop

Heartbeat · Memory & health maintenance

L2
Agent Loop

Execution · Hashline diffs & tool dispatch

L3
Goal Loop

Autonomy · Subtask tree & checkpoint resume

L4
Evolution Loop

Governance · AST gate & auto-rollback

18 Cohesive Monorepo Packages

Cleanly separated across runtime, cognitive memory, RSI governance, and cross-platform desktop/mobile hosts.

CORE & AGENT

Multi-Channel Dispatch & Model Failover

Event-bus and state-machine core orchestrating tool dispatch, dynamic context assembly, and multi-provider failover across interactive and background channels.

npm run loomo:dev
@loomo/core

Core abstractions, event bus, and shared primitives

@loomo/agent

Agent state machine, multi-channel routing & interceptors

@loomo/ai

Unified LLM provider SDK, streaming & failover

@loomo/coding-agent

Coding runtime & dynamic prompt assembly

Run Loomo on Your Local Workspace

Batteries-included desktop installers with a bundled Node.js 22 runtime—standard installer or portable zero-install builds.