~878 ns |
32 tools |
390 + 1280 |
100% MIT |
Rust N-API causal TabEventBus |
26 browser + 6 memory bounded-byte MCP |
Simultaneous Portrait & Landscape |
Local SQLite, Unix sockets & PTY · 0 cloud |
The Iron Stack augments the coding agents you already use (Claude Code, Codex, OpenCode, Cursor, Antigravity) over stdio MCP, 0600 Unix domain sockets, and plain SSH — no vector clouds, no telemetry, no hosted API keys, no heavyweight orchestration wrappers.
The Cleanroom Loop
CLOSED LOOP · EVERY STAGE MAPS TO SHIPPED CODE
Messy AI code passes three filter screens. Whatever they catch is routed back as a finer filter, so the same class of defect never ships twice.
flowchart LR
Messy(["Messy AI code"]) --> F1["01 · Memory filter<br/>iron memory · FTS5 + RRF"]
F1 --> F2["02 · Mobile + desktop filter<br/>iron-browser · 390×844 ⇄ 1280×720"]
F2 --> F3["03 · Focus & sleep<br/>iron-term · 0 MB hibernation"]
F3 --> Clean(["Trusted code · 100% MIT · local-first"])
F2 -. "caught grit → finer filter" .-> F1
F3 -. "self-heal · iron memory sleep" .-> F1
|
Pillar |
Status |
What it does |
| 01 |
Iron Memory (iron) · root (src/, skills/, agents/) |
🟢 Available Now · v0.3.1 |
SQLite FTS5 + 512-dim Hybrid RRF memory hub (6 stdio MCP tools), iron ui Second Brain, 10 iron-* skills & 7 subagents. |
| 02 |
iron-browser · packages/iron-browser/ |
🟠 Public Beta · v0.1.1 |
Dual-viewport Chromium, single-flight HTTP/WS/SSE/SFS2X dedup, WebGL & off-thread V8 CPU/Heap labs, 8-edge Agent Chat Dock, 26 MCP tools. |
| 03 |
iron-term · packages/iron-term/ |
🔵 Public Preview · v0.1.0 |
Native Rust + GPUI fleet terminal (Alacritty Blade): headless iron-agentd, 0 off-screen GPU frames, 0 MB hibernation, Whisper Rail, iron-termctl. |
flowchart TB
subgraph Stack["The Iron Stack · zero-cloud · local-first · MIT monorepo"]
Memory["01 · Iron Memory · iron (root)<br/>SQLite FTS5 + Hybrid RRF · 6 MCP tools · iron ui · 10 skills · 7 subagents"]
Browser["02 · iron-browser (packages/iron-browser)<br/>390×844 + 1280×720 · HTTP/WS/SFS2X dedup · WebGL/CPU/Heap · 26 MCP tools"]
Term["03 · iron-term (packages/iron-term)<br/>Rust + GPUI · headless iron-agentd · 0 MB hibernation · iron-termctl"]
end
Term <-->|"iron mcp (stdio / SSH)"| Memory
Term <-->|"IRON_BROWSER_SOCKET + browser_events"| Browser
Browser <-->|"iron-browser skill + verified invariants"| Memory
Install Locally (MIT)
ONE INSTALLER · --browser · --term · --all
# Default: iron CLI/MCP binary + 10 iron-* skills + 7 subagents + Claude Code MCP registration
curl -fsSL https://raw.githubusercontent.com/arielonoriaga/iron-stack/main/install.sh | bash
# Add iron-browser (needs bun + cargo) and/or iron-term (needs cargo)
curl -fsSL https://raw.githubusercontent.com/arielonoriaga/iron-stack/main/install.sh | bash -s -- --browser
curl -fsSL https://raw.githubusercontent.com/arielonoriaga/iron-stack/main/install.sh | bash -s -- --term
curl -fsSL https://raw.githubusercontent.com/arielonoriaga/iron-stack/main/install.sh | bash -s -- --all
Skills only · skills.sh (Claude Code, Codex, Cursor, Antigravity)
npx skills add arielonoriaga/iron-stack
Claude Code plugin marketplace
/plugin marketplace add arielonoriaga/iron-stack
/plugin install iron-stack@iron-stack-marketplace
Cargo · iron memory CLI + MCP server
cargo binstall iron-stack
# or from source
cargo install --git https://github.com/arielonoriaga/iron-stack --locked
Coming from another memory MCP (the official knowledge-graph server, mem0, basic-memory, Cavemem or plain MEMORY.md)? Follow Migrating to Iron Memory.
01 / IRON MEMORY · AVAILABLE NOW · v0.3.1
Persistent Second Brain memory and adversarial review gates that never drift.
One Rust binary (iron) gives every CLI agent a local SQLite FTS5 + 512-dim Hybrid Reciprocal Rank Fusion memory hub at ~/.local/share/iron/memory.db, with stdio MCP tools, an interactive Second Brain, Trust Desk & Agent Lens UI (iron ui), 10 skills and 7 subagents.
|
|
| Independent adversarial review |
Non-trivial work cannot finish until a fresh-context reviewer audits raw receipts on the final commit SHA and returns 0 findings. |
| Bug → invariant backpropagation |
Every post-mortem or test flake traces root cause and records a permanent guard, so the same class of bug never ships twice. |
Zero-cloud memory.db |
No SaaS keys, vector cloud bills, or leaked proprietary code. Hybrid RRF + FTS5 BM25 recall shared across Claude Code, Codex, and Antigravity. |
| Capability |
Plain MEMORY.md |
Cloud vector MCPs |
Iron Memory v0.3.1 |
| Zero cloud / zero API keys |
Yes |
No (hosted / paid) |
Yes (single Rust binary + SQLite) |
Hard byte budget (--max-bytes) |
No (dumps whole files) |
Rarely |
Yes (exact UTF-8 serialized cap) |
| Detects stale rules when code changes |
No |
No |
Yes (git ls-files drift decay) |
| Detects contradicting rules |
No |
No |
Yes (nightly iron memory sleep) |
| Multi-machine without sync conflicts |
No |
Yes (via cloud) |
Yes (plain ssh stdio hub) |
| Visual Second Brain & verification UI |
No |
Hosted dashboard |
Yes (embedded local iron ui) |
Role isolation (reviewer = curated only) |
No |
No |
*Yes (built-in + `iron-` skills)** |
# Import curated Markdown memories read-only & search under a strict UTF-8 byte ceiling
iron memory import --claude-root ~/.claude
iron memory search 'tenant isolation' --project commerce-core --strict-project --max-bytes 2000
# Save replay-safe notes/corrections & run nightly drift/contradiction consolidation
iron memory remember --project iron-stack --agent claude --kind correction \
--supersedes mem_OLD_ID --title 'Shared memory hub' --content 'One hub host holds the authoritative store.'
iron memory sleep --repos-root ~/Projects
# Launch the zero-dependency Second Brain & Trust Desk web UI (loopback by default)
iron ui --port 7420
Memory fitness — ranked, not hoarded
Memories earn their rank. Stale rules sink. Every recall, helpful vote and verified outcome adds evidence; one bounded formula ranks them:
score = weight × (1 + 0.45·e ⁄ (4 + e)) × (superseded ? 0.15 : 1) ⁄ (1 + 0.4·contradictions)
e = uses + 2·confirms weight: correction 2.2 · curated 2.0 · history 1.0
Corrections outweigh history, reinforcement saturates at +45%, a superseded memory keeps 15% of its weight, and every contradiction divides its score. memory_get reinforces an id once per session; iron memory feedback --outcome helpful and iron memory outcome --outcome pass add confirmations. The nightly iron memory sleep pass queues opposing rules for review and reports consolidation candidates.
Memory MCP server (iron mcp · 6 tools)
| Tool |
What it does |
memory_search |
Hybrid FTS5 BM25 + pure-Rust 512-dim RRF ranking, bounded Hebbian reinforcement, supersession decay, role scoping (developer/reviewer/verifier), strict max_bytes (256..65536). |
memory_get |
UTF-8 byte-paginated retrieval (offset/next_offset) with cold archive.db fallback. Record IDs only. |
memory_related |
Traverses explicit references, supersedes, co_used, and high-IDF cross-session shares_anchor edges. |
memory_remember |
Replay-safe note & correction persistence with <private>/credential redaction before hashing. |
memory_feedback |
Reinforces helpful memories or demotes outdated/contradicted entries. |
system_graph |
Cross-repo service graph queries: {query, direction: callers\|callees\|impact} (see below). |
Zero-cloud multi-machine hub over SSH
Run one hub host with the authoritative SQLite WAL store and point any number of other devices at it over plain SSH — no open ports, no sync conflicts:
{
"mcpServers": {
"iron-memory": {
"command": "ssh",
"args": ["-T", "-o", "BatchMode=yes", "-o", "ConnectTimeout=12", "iron-hub", ".local/bin/iron", "mcp"]
}
}
}
See docs/ssh-hub-rollout.md for running one hub with any number of devices (memory over SSH, a per-device system graph, verified pairs shared through any file sync) and integration/ for systemd --user timers.
System graph — cross-repo "who calls what" (iron memory graph)
A deterministic map of how your services talk to each other, built from code with zero LLM tokens and stored in graph.db next to memory.db.
- Extracts: Axum routes (incl.
nest/merge prefixes and multi-line .route(), Rust reqwest clients (format!("{}/path", self.base_url) + same-file wrappers), and SPA clients (api.<group>.<call>() resolved through the client file, grouped by page).
- Links: config (
clients, env, prefixes) → unique (method, path) across all providers → name hint → suffix. Anything unresolved is reported as fog, never dropped.
- Incremental: per-file blob hashes; a no-change refresh takes tens of ms, and
graph touch <file> re-maps one edited file from the working tree.
- Self-improving:
graph suggest [--apply] learns mount prefixes, external hosts and env→service rules from fog; graph changes shows added/removed cross-repo edges over time.
cp integration/system-graph.example.json ~/.local/share/iron/system-graph.json # describe your services
iron memory graph refresh
iron memory graph who-calls "POST /api/internal/invoices"
iron memory graph impact --file ~/Projects/worker/src/clients/shop.rs
iron memory graph fog && iron memory graph suggest --apply
With install.sh --hooks, Claude Code gets two PostToolUse hooks: Read of a memory file credits it to the session (so verify verdicts reinforce memories that were actually used), and Edit/Write of a source file re-maps it and injects a ≤300-byte impact note only when the file crosses a service boundary. integration/iron-memory-refresh.service refreshes the graph after each memory import.
02 / IRON-BROWSER · PUBLIC BETA · v0.1.1
Verify 390×844 mobile and 1280×720 desktop in one single-flight window.
Two live Chromium views side-by-side. Every click, PIN keystroke, dialog dismissal, and canvas drag mirrors across both viewports — while HTTP mutations, WebSockets, SSE, and binary SFS2X streams collapse onto a single upstream flight. Mirrored clicks never double-charge a card.
- Full-stack single-flight dedup — deduplicates concurrent
POST/PUT/PATCH/DELETE mutations (correlation-ID remapping, gzip/br/deflate decompression), multiplexes WebSockets + SSE + SmartFoxServer 2X (SFS2X) binary frames over one upstream socket, and syncs sessionStorage + zero-reload spa_sync routes across panes (Shared vs Isolated partitions).
- Causal Rust
TabEventBus (~878 ns/op) & visual forensics — tags downstream network, storage, download, popup, and route events with their originating gestureSeq; exports clipped-overflow screenshots, deterministic frame-stepped PNG filmstrips (browser_repro / browser_filmstrip), and before/during/after mark traces.
- POS hardware lab + off-thread CPU & heap — WebGL/WebGL2 draw calls & stacking-context render order (
browser_webgl), sunmi-v2-pro / low-end-android emulation (browser_emulate), and non-blocking V8 CPU (browser_profile inclusive callTree) and heap (browser_heap dominators, sampling, leak diffs) profilers in worker threads.
- 26 bounded-byte MCP tools + 8-edge Agent Chat Dock — full tab lifecycle (
browser_open with background: true, browser_close_tab single/bulk { session, all }, browser_select_tab, browser_reload, browser_navigate_history, browser_wait_for, browser_storage, browser_metrics with tab_id), focus-safe --smoke headless mode, setup-agnostic Linux Wayland/X11 detection, and a floating dock for agy, claude, codex, opencode, a custom CLI, or a live tmux/iron-term attach with Markdown/code formatting.
→ Full package docs: packages/iron-browser/README.md
03 / IRON-TERM · PUBLIC PREVIEW · v0.1.0
Run dozens of CLI coding agents on one machine or many without melting RAM or focus.
Built on the Alacritty Blade architecture: a headless Rust PTY daemon (iron-agentd) paired with a GPU-accelerated iron-gpui client, for engineers running 10–25+ concurrent CLI agents across sibling git worktrees.