Iron Suite
*Zero-cloud SQLite FTS5 + stdio MCP memory hub (iron) and adversarial multi-agent engineering skills (`iron-`) for Claude Code, Codex, Cursor, and Antigravity.**
Iron Suite solves two recurring failures in agentic software engineering:
- Unbounded, noisy, cloud-locked agent memory:
iron indexes your curated Markdown memories and session history into a compact local SQLite FTS5 + WAL store (with integer-keyed 32-byte SHA-256 content deduplication and hot/cold archive tiering), serves 5 deterministic MCP tools over stdio (locally or across machines via plain ssh), auto-links lessons across separate conversations via shared technical anchors, reinforces helpful memories while decaying superseded ones, enforces hard UTF-8 byte budgets (--max-bytes), and scrubs credentials/private spans before indexing — with zero vector databases, zero hosted APIs, and zero background daemons.
- rubber-stamp "looks good" AI coding loops: The bundled *8 `iron-
skills** and **7 role-isolated subagents** enforce grounded mobile-first UX design (iron-design), bounded ownership (irondev), fresh-context adversarial code & security review (irondev-review), offensive vulnerability hunting with1 -> Nstructural variant sweeps (iron-hunt), measurement-first performance profiling (iron-perf), systematic production forensics (iron-debug), and read-only architecture/security audits (iron-audit`).
Why Iron Suite?
| Capability |
Plain MEMORY.md |
Cloud Vector MCPs |
Iron Suite (v0.3.0) |
| 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)** |
How Iron Suite Works
Iron Suite is designed around a native-runtime, closed-loop architecture — it augments your existing coding agents (Claude Code, Codex, Cursor, Antigravity) directly over stdio MCP and modular skills rather than wrapping them inside a heavyweight Python orchestration framework or syncing code to a hosted vector cloud:
- Read-Only Sources & Pre-Index Safety Gate: Curated Markdown notes (
MEMORY.md, project rules), optional session history (Cavemem), and replay-safe native notes (memory_remember) pass through a deterministic Privacy Scrubber (<private> spans, PEM keys, bearer tokens, credential assignments) and a private 0600 aliases.json project-normalization layer before anything is hashed or indexed. Source files on disk are never mutated by imports.
- Authoritative Local Core (
memory.db + archive.db): A single local SQLite v2 WAL database indexes text with unicode61 FTS5 and 32-byte SHA-256 deduplicated bodies, keeping hot curated rules fast while pushing older session logs into a read-only cold archive.db fallback. Ranking combines BM25, bounded Hebbian reinforcement (uses + 2× confirms), and supersession decay (0.15×) inside a hard serialized UTF-8 byte budget (--max-bytes) that always distinguishes truncated: true from no_match: true. Cross-session linking combines explicit Markdown references/supersedes edges with high-IDF shares_anchor links across shared files, symbols, and CWEs.
- *Native AI Runtimes & Adversarial `iron-
Harness:** Coding agents connect viairon mcp(localstdioor plainsshto a single workstation hub) with **role-scoped retrieval** (developersees curated + native + history;reviewersees curated Markdown only;verifierinspects independently). Theiron-*skills enforce bounded implementation (irondev), fresh-context adversarial review (irondev-review),1 -> Nvulnerability sweeps (iron-hunt), profiling (iron-perf), debugging (iron-debug), and audits (iron-audit`) — backpropagating verified invariants into memory.
- Human Second Brain Workbench (
iron ui) & Closed Self-Correction Loop: Because agent memory silently drifts if nobody inspects it, iron ui embeds a zero-dependency local HTTP/1.1 workbench (Host-allowlisted, CSRF-protected, strictly read-only on inspection) with an interactive Second Brain orbital graph, Today & 14-Day Evolution Rates (Signal-to-Noise lift, Verification Coverage, Native Velocity, Self-Correction), a Trust Desk (Still True / Update & Supersede / Contradicted), an Agent Lens retrieval simulator, and one-click Project Merge / Rename (aliases.json). Every confirmation, supersession, correction, or project merge feeds directly back into the SQLite ranking engine and alias layer so your second brain compounds signal over time.
Quick Install
One-Command Install (Binary + Skills + Agents + Claude MCP)
curl -fsSL https://raw.githubusercontent.com/arielonoriaga/iron-suite/main/install.sh | bash
Install Skills Only (skills.sh — Claude Code, Codex, Cursor, Antigravity)
npx skills add arielonoriaga/iron-suite
Claude Code Plugin Marketplace
/plugin marketplace add arielonoriaga/iron-suite
/plugin install iron-suite@iron-suite-marketplace
Cargo / cargo-binstall (iron Memory CLI + MCP Server)
cargo binstall iron-suite
# or from source:
cargo install --git https://github.com/arielonoriaga/iron-suite --locked
What's Inside
1. iron — Bounded-Byte SQLite FTS5 Memory CLI & MCP Hub
# Import curated Markdown memories (and optional Cavemem SQLite history) read-only
iron memory import --claude-root ~/.claude --cavemem-db ~/.cavemem/data.db
# Search with a strict serialized UTF-8 byte ceiling
iron memory search 'cargo target directory' --repo . --max-bytes 2000
iron memory search 'tenant isolation' --project commerce-core --strict-project
# Paginated byte-exact fetch (or targeted Markdown section) & explicit graph traversal
iron memory get mem_ID --max-bytes 4000
iron memory get mem_ID --section 'Rollback' --max-bytes 4000
iron memory related mem_ID --relation references
iron context 'migration rollback' --project commerce-core --role reviewer
# Save durable native notes or corrections (superseding outdated guidance & auto-linking past sessions)
iron memory remember --project iron-suite --agent claude --kind correction \
--supersedes mem_OLD_ID \
--title 'Shared memory hub' --content 'Desktop holds the authoritative Iron v2 store.'
iron memory feedback mem_ID --outcome helpful
iron memory outcome --outcome pass --project commerce-core
# Nightly sleep consolidation, code-drift audit, project merge & hot/cold v2 archive split
iron memory sleep --repos-root ~/Projects
iron memory audit-drift --project commerce-core --repo ~/Projects/commerce-core
iron memory consolidate --min-occurrences 3
iron memory merge-project --from legacy-shop --to commerce-core
iron memory migrate --from ~/.local/share/iron/memory.v1.db \
--output ~/.local/share/iron/memory.db --archive-output ~/.local/share/iron/archive.db
iron memory backup --output ~/backups/iron-snapshot.db
# Launch the zero-dependency Second Brain & Memory Verification Web UI (loopback by default)
iron ui --port 7420
Second Brain & Verification Web UI (iron ui)
iron ui embeds a zero-dependency local HTTP/1.1 workbench directly inside the iron binary (pure Rust std::net, zero extra Cargo dependencies, Host-allowlisted and CSRF-protected) so you can visually inspect, verify, and curate the second brain your agents rely on:
- Second Brain (Interactive Knowledge Graph): Obsidian-style orbital knowledge bubbles grouped by Project Zones, Link Clusters, or Trust Zones, with explicit reference edges, cross-session auto-anchor bridges, search spotlighting, day-growth halos, and dark/light themes.
- Today Pulse & 14-Day Evolution Rates: Time-travel day selector (
◀ Today ▶) and 14-day stacked activity chart tracking curated signal-to-noise lift, human verification coverage, native rule velocity, and self-correction rate.
- Trust Desk (Strictly Read-Only Inspection): Inspect full Markdown/native memory prose, exact trust multiplier (
2.0×/2.2× vs 0.15× superseded decay), supersession lineage, Drifted from HEAD repo-path warnings, duplicate-body clusters, and the prioritized Morning Review Queue (correction flags, potential contradictions, drifted rules, and high-use unverified hubs) without mutating use_count until you click Still True, Update & Supersede, Contradicted, or Outdated.
- Agent Lens (Retrieval Simulator): Run exact
developer, reviewer, verifier, or side-by-side Dev-vs-Reviewer retrieval queries with live byte-budget rulers, truncation visibility, and provenance badges (semantic_rrf, graph_neighbor, drifted:0.5x).
- Project Merge, Rename & Persistent Aliases (
aliases.json): Consolidate fragmented or renamed projects directly from the UI (⇄ Merge / Rename) or CLI (iron memory merge-project --from <OLD> --to <NEW>). Saving a permanent alias writes a private 0600 aliases.json sibling file next to memory.db (zero schema changes) so future imports, memory_remember, and searches transparently resolve old names and subpaths/worktrees to the canonical project.
- Compounding Intelligence Engine (Zero-ML, Zero-Cloud):
- Hybrid Semantic RRF (
semantic.idx): Pure-Rust 512-dim sublinear TF + char n-gram + bilingual engineering-concept vectors fused with FTS5 BM25 via Reciprocal Rank Fusion, plus camelCase/snake_case query splitting, section-aware snippets, and 1-hop graph expansion (references, co_used, shares_anchor).
- Code-Drift & Contradiction Auditing (
iron memory sleep / audit-drift): Verifies cited repo file paths against git ls-files (applying a 0.5× rank decay to drifted memories), detects opposing directives sharing high-IDF technical anchors, and populates the Morning Review Queue.
- Automatic Outcome Feedback & Co-Use Hebbian Edges (
iron memory outcome): Tracks session recalls in a bounded 0600 session-ledger.json, wires co-retrieved memories with bidirectional co_used edges, reinforces memories on verified pass outcomes, and flags memories for review on fail/correction hooks.
MCP Server (iron mcp)
Exposes 5 tools over newline-delimited JSON-RPC stdio (2025-06-18 / 2025-03-26 / 2024-11-05):
memory_search — tokenized FTS5 retrieval ranked by BM25, bounded Hebbian usage/confirmation boost, and supersession decay, with project, strict_project, role, source (all|curated|history|native|archive), and max_bytes (256..65536, default 4000).
memory_get — UTF-8 byte-paginated record retrieval (offset / next_offset) with supersession metadata, cold archive.db fallback, and per-session implicit usage reinforcement. Accepts record IDs only, never arbitrary file paths.
memory_related — traverses explicit Markdown references, supersedes chains, and deterministic high-IDF cross-conversation shares_anchor edges (including matched file/path/symbol/CWE/CVE evidence).
memory_remember — replay-safe native note & correction persistence (supersedes: [...]) with write-time cross-session related_memories discovery and <private>/credential redaction prior to hashing.
memory_feedback — explicitly reinforces helpful memories or demotes outdated/contradicted memories (with optional superseded_by pointer).
Zero-Cloud Multi-Machine Shared Hub over SSH
Run one authoritative SQLite WAL store on your workstation (desktop) and point every AI client on your laptop or remote devboxes at it over authenticated SSH — no sync conflicts, no open ports, no third-party cloud:
flowchart LR
Laptop["Laptop: Claude / Codex / Antigravity"] <-->|SSH stdio| Iron["iron mcp on desktop"]
Desktop["Desktop AI clients"] <-->|local stdio| Iron
More["Additional devboxes"] <-->|SSH stdio| Iron
Iron <--> Store[("Authoritative SQLite FTS5 + WAL")]
Sources["Curated Markdown & session snapshots"] -->|read-only import| Store
{
"mcpServers": {
"iron-memory": {
"command": "ssh",
"args": ["-T", "-o", "BatchMode=yes", "-o", "ConnectTimeout=12", "desktop", ".local/bin/iron", "mcp"]
}
}
}
See docs/ssh-hub-rollout.md and integration/ for systemd --user refresh and 3-2-1 gitleaks-gated backup timers.
2. Bundled iron-* Skills (skills/) & Subagents (agents/)