
iron-suite
io.github.arielonoriaga/iron-suite
Zero-cloud SQLite FTS5 stdio MCP memory hub with byte budgets, drift audit & local Second Brain UI.
Documentation
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:
ironindexes 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 overstdio(locally or across machines via plainssh), 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 private0600aliases.jsonproject-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 withunicode61FTS5 and 32-byte SHA-256 deduplicated bodies, keeping hot curated rules fast while pushing older session logs into a read-only coldarchive.dbfallback. 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 distinguishestruncated: truefromno_match: true. Cross-session linking combines explicit Markdownreferences/supersedesedges with high-IDFshares_anchorlinks 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 uiembeds 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×vs0.15×superseded decay), supersession lineage,Drifted from HEADrepo-path warnings, duplicate-body clusters, and the prioritized Morning Review Queue (correction flags, potential contradictions, drifted rules, and high-use unverified hubs) without mutatinguse_countuntil 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 private0600aliases.jsonsibling file next tomemory.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, pluscamelCase/snake_casequery 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 againstgit ls-files(applying a0.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 bounded0600session-ledger.json, wires co-retrieved memories with bidirectionalco_usededges, reinforces memories on verifiedpassoutcomes, and flags memories for review onfail/correctionhooks.
- Hybrid Semantic RRF (
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, withproject,strict_project,role,source(all|curated|history|native|archive), andmax_bytes(256..65536, default4000).memory_get— UTF-8 byte-paginated record retrieval (offset/next_offset) with supersession metadata, coldarchive.dbfallback, and per-session implicit usage reinforcement. Accepts record IDs only, never arbitrary file paths.memory_related— traverses explicit Markdownreferences,supersedeschains, and deterministic high-IDF cross-conversationshares_anchoredges (including matched file/path/symbol/CWE/CVE evidence).memory_remember— replay-safe native note &correctionpersistence (supersedes: [...]) with write-time cross-sessionrelated_memoriesdiscovery and<private>/credential redaction prior to hashing.memory_feedback— explicitly reinforceshelpfulmemories or demotesoutdated/contradictedmemories (with optionalsuperseded_bypointer).
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/)
| Skill | Purpose |
|---|---|
iron-design | Ground-truth UX/UI design orchestrator: parallel FE + BE + anonymized prod audit -> UX.md brief -> 3 structurally distinct proposals (plus Gen-2 genetic recombination) in an isolated clickable 390px + desktop UX Lab -> Plain-to-Magic elevation -> verified handoff to irondev. |
irondev | End-to-end feature/fix orchestrator: bounded implementer brief -> fresh-context review -> real-surface verification -> curated learning. |
irondev-dev | Shared implementation discipline for backend, frontend, and security engineering roles with canonical handoff contracts. |
irondev-review | Fresh-context adversarial code review selecting correctness, architecture, systems, and security lenses proportional to change risk. |
iron-hunt | Proactive read-only/sandboxed offensive vulnerability hunter: attack-surface mapping, scanner triage (gitleaks, osv-scanner, semgrep, zizmor, ast-grep), source-to-sink taint tracing, safe local repro proof, and 1 -> N structural variant sweeps. |
iron-audit | Read-only multi-lens codebase health & pre-release sweep producing severity-ranked findings and remediation briefs. |
iron-debug | Production-grade systematic debugging (repro -> hypothesis -> instrument -> root cause -> fix -> invariant backprop). |
iron-perf | Measurement-first performance engineering: baseline flamegraphs, query plans, and RUM evidence before any optimization edit. |
Bundled subagents (agents/iron-*.md): iron-backend-dev, iron-backend-review, iron-frontend-dev, iron-frontend-review, iron-security-dev, iron-security-review, and iron-verifier.
Design Contracts & Honest Non-Claims
- Hard serialized UTF-8 byte budgets:
--max-bytesbounds the serialized JSON output (including escapes and trailing newline). Budget exhaustion setstruncated: trueand is explicitly distinguished fromno_match: true. - Evidence, not authority: Recalled memories retain timestamps and source locators; historical notes can be stale and never override live repository verification or user authorization.
- Best-effort redaction: Derived-index import and
memory_rememberscrub<private>spans, PEM keys, bearer tokens, URL passwords, and common credential assignments, while leaving source files untouched. Heuristics do not replace secret management. - Independent evaluation (
eval/): Fixtures undereval/measure source recall within byte budgets, replay idempotency, and subprocess latency; they do not claim billed token or invoice savings without provider telemetry. See docs/upstream-learnings.md.
Companion Projects in The Iron Stack
- claude-harness — Self-improving Claude Code harness: Rust
PreToolUsecommand guardrail, cross-session JSONL journal bus, detachedtest-agent, auto-improve reflector, and ratatui build-queue TUI. - entropy-hunter — Deterministic software-entropy analyzer CLI for Rust and TypeScript codebases.
- claude-statusline-bar — Information-dense terminal status line for Claude Code with live context, git, and rate-limit ramps.
Build & Verify
cargo test --locked
python3 -m unittest discover -s eval -p test_runner.py -v
License
MIT — Copyright (c) 2026 Ariel Onoriaga.
MCP Registry: mcp-name: io.github.arielonoriaga/iron-suite · Listed on Official MCP Registry, crates.io, and Glama MCP Servers
iron-suitecargo install iron-suite