NodeXLoop
Debug and govern AI agent loops like you debug code.
NodeXLoop is an open-source (Apache-2.0) VS Code runtime and visual debugger
for multi-step AI agent loops: agent → tool → critic → retry → gate → test →
approve. Set an F9 breakpoint on any node, inspect the exact prompt before it
fires, and step forward.
Browser workflow builders keep your logic in database records and JSON exports.
NodeXLoop keeps it in your repository instead. Loops sync both ways with clean
.loop.yaml files, nodes bind to the functions that implement them, and every
run goes through an offline intent firewall and a governor that stops runaway
loops.
Works in VS Code, Cursor, VSCodium and Windsurf. Use your own models (OpenAI,
Anthropic, Google, OpenRouter, Ollama, vLLM, or any OpenAI-compatible
endpoint), with keys stored in the OS keychain. Or run in Sim mode, which needs
no key and costs no tokens.
Why NodeXLoop
|
Browser workflow tools (e.g. n8n) |
NodeXLoop |
| Source of truth |
Database records and large JSON exports |
.loop.yaml files next to your code |
| Code review |
Diffs you can't read |
Git PR diffs, plus CodeLens function bindings |
| Debugging |
Execution logs after the fact |
Live F9 breakpoints, payload inspection, replay |
| Runaway loops |
Burn tokens until the iteration cap |
Loop Governor halts a stalled critic early |
| Prompt security |
External API calls or hand-written regex |
Axiom Guard classifies in-process, with no network |
| License |
Fair-code or source-available |
Apache-2.0 |
Measured, not claimed
From the integration harness, which runs a stubbed model through the live app
with the real Axiom Guard:
| Scenario |
Guard off |
Guard on |
Result |
| Stalled critic loop |
20 model calls |
6 |
70% fewer calls; the governor halts early |
| Prompt injection in the input |
runs normally |
0 calls |
Blocked in-process before it reaches the model |
| Healthy, improving loop |
12 model calls |
12 |
No penalty when the loop is still making progress |
Your first five minutes
- Install from the VS Code Marketplace or Open VSX, then run NodeXLoop:
Open Builder, or click the NodeXLoop icon in the activity bar.
- Open Templates. Three engineering loops are starred: Code review cycle,
Self-healing CI and Repo regression bisector. Load one and press Run
loop. In Sim mode you need no API key.
- Set an F9 breakpoint on the Critic node, run again, inspect and edit the
prompt payload while it is paused, then step.
- Load Drift and oscillation detector (Debug the agent) to watch the Loop
Governor stop a critic loop that has stopped improving.
The full guide covers every panel:
NodeXLoop User Guide (PDF).
What's inside
IDE-native engineering
- Live
.loop.yaml sync. Edit the canvas or the file and the other
follows. Nodes bind to their functions with CodeLens, and a binding broken by
a refactor shows up in the Problems panel.
- Step-through debugging: breakpoints, step, a full trace of every call,
run replay, and an audit report for each run.
- Code view: the loop as YAML, next to proposed diffs you accept or reject
through undo history.
- Sim mode runs a whole topology offline before you load a model or spend
a token.
Zero-trust runtime governance
- Axiom Guard classifies inputs and outputs in-process. Its verdict matches
the hosted Axiom classifier, and prompts are never sent anywhere to be
checked.
- Loop Governor halts critic cycles that have plateaued.
- Module Resolver checks every Python package before it becomes a node,
with 7 checks: registry, existence, typosquat, pinned version, integrity
hash, install scripts and license.
- Agent fleet kill switch (NodeXLoop: Set Agent Fleet Level…) runs from
L1 (warn) to L4 (terminate). One workspace governance file covers agent runs
and run nodes. L4 kills a run node's whole process tree within 250 ms.
Local-first tools and MCP
- MCP Tool node. Any server in your workspace
.mcp.json, the same file
Claude Code reads, becomes a governed graph step.
- Run, Search and Module nodes. Run commands without a shell, confined to
the workspace (off by default). Search through SearXNG, Brave or Tavily.
Install governed Python packages.
- NodeXLoop MCP server. Claude Code or Codex can build, check, simulate and
debug loops for you.
Team workflows
- Role-based review (submit → sandbox → approved → released), copy-on-write
forks of a teammate's loop, and tamper-evident audit exports.
Fleet: robots and agents under one governor
The Fleet tab is a robot debugger. It shows only the robots you deploy:
wheeled AMR, quadruped, humanoid biped, tracked crawler or fixed arm, on
concrete, carpet, wet floor, gravel, a ramp or stairs. You can:
pause, step and slow down the simulation;
set per-robot breakpoints for slip, near-fall, fall, stuck, unauthorized
zone, joint limit and battery;
set speed limits, goals and patrol routes;
inject faults, watch telemetry, and export JSONL traces.
Robot simulators from Hugging Face Spaces (NodeXLoop: Add Simulator
from Hugging Face Space…). Each one is pinned to a commit and hash-verified,
built only when you confirm, and opened in a governed panel as a live robot
on the Fleet.
SimReady assets (NodeXLoop: Get SimReady Asset for the Fleet…, or
Fleet → + Deploy). These are OpenUSD robots from the repos that NVIDIA's
SimReady Central lists. Choose a tier:
- specs: metadata and physics layers, a few hundred KB;
- preview: specs plus thumbnails;
- full: the whole package, capped by
loopGraph.simReadyMaxMB.
Every file is checked against the published hash and the package BOM.
Nothing is run, and a receipt is sealed.
The same L1–L4 ladder governs simulators (Set Simulator Escalation
Level…) and agents.
Every panel
| Panel |
What it is for |
| Builder |
The canvas: node palette, inspector (Settings, Memory, Logs), minimap, status bar. |
| Code |
The loop as .loop.yaml, beside proposed diffs to accept or reject. |
| Templates |
Engineering loops first: build and ship, debug the agent, govern the agent. Business, SMB and personal loops are behind Beyond code. Starred templates stay on top. |
| Runs |
Run history: each run as a Channel (the nodes talking), plus Output, Timeline, Logs and an audit report. |
| Compose |
Describe an outcome in a sentence and get a proposed loop from the template catalog, offline. |
| Fleet |
The robot debugger above. |
| Autopilot |
Proposes simulated repairs for failed runs, within the triggers, budgets, cooldowns and approval rules you set. Off until you turn it on. |
| Orgs / Flow |
Review and release loops; fork a teammate's loop; one attributed activity log per project. |
| Dialogs |
Model registry, Files (run context), Integrations, Loop Architect (describe a loop, get a checked draft), the guard's block explanation. |
Getting around: use the ‹ button, Esc (it closes whatever is open
first), Alt+←, or the mouse back button.
Commands
| Command |
|
| NodeXLoop: Open Builder |
The app, as a panel. |
| NodeXLoop: Reveal Binding in .loop.yaml |
Jump from code to the node bound to it. |
| NodeXLoop: Add Module Capability… |
A governed Python package as a node. |
| NodeXLoop: Set Agent Fleet Level (kill switch)… / Set Simulator Escalation Level… |
Governance. |
| NodeXLoop: Add Simulator from Hugging Face Space… / Fleet Simulators… |
Import, build and open simulators. |
| NodeXLoop: Get SimReady Asset for the Fleet… |
Download a SimReady asset, within the size limits. |
| NodeXLoop: Set Web Search API Key… / Set MCP Secret… |
Secrets, stored in the OS keychain. |
Settings
| Setting |
Default |
|
loopGraph.allowRunNodes |
false |
Let Run nodes execute commands (no shell, confined to the workspace, 5-minute timeout). |
loopGraph.mcp.enabled / loopGraph.mcp.configPath |
false / .mcp.json |
Let MCP Tool nodes start your MCP servers. |
loopGraph.search.provider / loopGraph.search.searxngUrl |
none / http://localhost:8080 |
Where Search nodes send queries. |
loopGraph.simReadyMaxMB |
256 |
Largest full SimReady download (ceiling 1024). |
loopGraph.pythonPath / loopGraph.nodePath |
auto |
Interpreters for modules and simulator builds. |
loopGraph.checkForUpdates |
true |
Daily check for a newer hand-installed .vsix. |
Development
npm install
npm run compile
Press F5 in VS Code to launch an Extension Development Host. The app's HTML in
media/ is generated by ../tools/build-guard.mjs; see the repository README.
License
Apache 2.0, with LICENSE included verbatim so its carve-out travels with the
code. We chose Apache over MIT because MIT grants no patent rights. Apache 2.0
gives you an express, royalty-free patent licence for what ships here.
Read the note at the end of LICENSE. It excludes the Two-Layer Evaluation
Pattern (Teacher-Student, Kid-Parent, Doctor-Patient), which remains
proprietary to Orivael Inc. Building a critic loop on this canvas is ordinary
use of the tool and is fine; the note is about reimplementing that pattern. See
TERMS_OF_SERVICE.md.
| |