{"slug": "show-hn-mizan-local-first-5-agent-control-plane-zero-dep-node-24-stdio-mcp", "title": "Show HN: Mizan – Local-first 5-agent control plane, zero-dep Node 24 stdio MCP", "summary": "A developer publishing as csa7mdm released Mizan, a zero-dependency, local-first control plane and 4-tool stdio SQLite FTS5 MCP hub that unifies Claude Code, Codex, Cursor, OpenCode and Antigravity under one quota-managed interface. Mizan's README claims it cuts the fixed skill/prefix load from 1,200+ scanned skills at 50k+ tokens per turn to 6–11 active skills under 3k tokens, a roughly 94% reduction, and hardens the local dashboard at 127.0.0.1:4321 with strict Host/Origin checks returning 403, Bearer auth returning 401, and a stdio MCP that opens no ports. The project requires Node.js 24+ (using built-in node:sqlite FTS5, so no npm install) and Python 3.10+, and adds a 30-lesson LESSONS.md cap with FTS5 search plus a 0-LLM-token weekly-health.py audit for skill ROI.", "body_md": "**Stop juggling 5 AI coding terminals, burning 50k+ prefix tokens per turn, and exposing localhost dashboards.**\n\n**Mizan** is a **zero-dependency, local-first control plane & 4-tool `stdio` SQLite FTS5 MCP hub** that unifies **Claude Code**, **Codex**, **Cursor**, **OpenCode**, and **Antigravity** under one calm, hardened, fair-quota operating system.\n\n[Live Demo](#-see-it-in-action-5-second-walkthrough) ·\n    [Use Cases](#-who-is-mizan-for-real-use-cases) ·\n    [Quickstart](#-30-second-quickstart) ·\n    [Architecture](#-architecture) ·\n    [Security](#-security-localhost-is-not-safe) ·\n    [Enterprise](#-mizan-oss-vs-mizan-enterprise) ·\n    [Full Wiki](https://github.com/csa7mdm/mizan/blob/main/docs/wiki/01-Architecture-and-5-Agent-Fleet.md)\n\nOne hardened local web UI (`127.0.0.1:4321`, zero npm packages, zero build step) giving you **Fleet-Wide Broadcast**, **Hierarchical Projects → Active Agents**, **1-Click Quota Shifting (`Green / Yellow / Red`)**, **Human-in-the-Loop Decision Queue**, and **30-Day Skill ROI**:\n\nIf you use **Claude Code + Cursor + Codex + OpenCode + Antigravity** together, coding is no longer the bottleneck. **Orchestration, silent token burn, and localhost security are.**\n\n| Measured Pain Point | Typical Multi-Agent Setup | With Mizan | Result | \n|---|---|---|---|\n| **Skill / Prefix Bloat** | `1,200+` scanned skills (`50k+` tok/turn) | **`6`–` 11` active skills (`< 3k` tok)** | **~94% fixed prefix cut** | \n| **Quota & Plan Exhaustion** | Hit weekly/entry caps blindly mid-task | **1-Click `Green / Yellow / Red` + Fallback Chain** | Cache-safe `HANDOFF.md` shifts | \n| **Localhost Security** | Open `127.0.0.1` dashboards & HTTP MCPs | **Strict `Host/Origin` (`403`) + Bearer (` 401`) + `stdio` MCP** | Blocks DNS Rebinding & CSRF | \n| **Repeated Agent Mistakes** | Same bugs across 5 separate chat histories | **30-Lesson Cap (`LESSONS.md`) + FTS5 Search** | Shared cross-agent memory | \n| **Weekly Maintenance Cost** | Manual reviews or expensive LLM audits | **`0` LLM tokens (`weekly-health.py`)** | Automated Skill ROI + Model probe | \n\n| Use Case | How You Use Mizan | Immediate Win | \n|---|---|---|\n| **Solo Founders & Indie Hackers** | Run `new-venture.py` to stamp out a linked**Platform + Social Media + Partnerships Triad** in`< 1s` , with raw milestone logging (`STORY_AND_PITCH_LOG.md` ). | Ship products, marketing, and BD in lockstep without polluting coding chats. | \n| **Multi-Agent Power Users** | Sync one `AGENTS-CORE.md` +`LESSONS.md` to**all 5 agents** (including a`<= 30` -line Cursor conservation rule and`$0` OpenCode Free Tier offloading). | Stop copy-pasting rules across 5 tools and stop burning paid quota on boilerplate. | \n| **Security-Conscious Engineers** | Run the **4-tool `stdio` Hub MCP** (zero open ports) +**Hardened Action Center** (DNS Rebinding & CSRF blocked by default) + Tailscale E2EE mobile access. | Full remote control from your phone with zero cloud relays seeing your code. | \n| **AI-Native Engineering Teams** | Enforce `Pre-Flight Kickoff Gate` ,`DECISION-QUEUE.json` , static RLS/secret guards (`check:rls` ,`gitleaks` ,`oxlint` ), and weekly 0-token Skill ROI audits. | Eliminate over-parallelization collisions and runaway API spend across teams. | \n\n**Prerequisites:** Node.js `24+` (uses built-in `node:sqlite` FTS5 — zero `npm install` needed!) and Python `3.10+`.\n\n```\ngit clone https://github.com/csa7mdm/mizan.git \"$env:USERPROFILE\\.claude\\brain\"\ncd \"$env:USERPROFILE\\.claude\\brain\"\n\n# Installs missing prerequisites (winget) + optional CLI agents + syncs fleet + schedules weekly audit\npowershell -ExecutionPolicy Bypass -File .\\bootstrap.ps1 -InstallAgents\ngit clone https://github.com/csa7mdm/mizan.git ~/.claude/brain\ncd ~/.claude/brain\n\n# Installs missing prerequisites (brew/apt) + optional CLI agents + syncs fleet + weekly cron audit\nbash bootstrap.sh --install-agents\ngit clone https://github.com/csa7mdm/mizan.git ~/.claude/brain\ncd ~/.claude/brain\n\n# 1. Start the hardened Action Center (auto-generates gitignored Bearer token in ops/.ac-token)\nnode action-center/server.mjs\n\n# 2. Verify the 4-tool stdio SQLite FTS5 Hub MCP\nnode hub-mcp/selftest.mjs\n\n# 3. Connect Hub MCP to Claude Code (or add hub-mcp/index.mjs to Cursor / OpenCode / Antigravity)\nclaude mcp add brain-hub -- node \"$HOME/.claude/brain/hub-mcp/index.mjs\"\n\n# 4. Run your first 0-token Weekly Health & Skill ROI Audit\npython scripts/weekly-health.py\n```\n\nOne local source of truth (`~/.claude/brain`) coordinates all 5 Desktop Apps & CLIs via structured `ops/` files and a 4-tool `stdio` MCP server.\n\n``` php\nflowchart TD\n    Human[\"Founder / Engineer\"] --> AC[\"Mizan Action Center (127.0.0.1:4321)\\nHost/Origin Guard + Bearer Auth + Tailscale\"]\n\n    subgraph Core[\"Single Source of Truth (~/.claude/brain)\"]\n        OPS[\"ops/ Live Command Bus\\nFLEET-STATUS.json | BROADCAST.md\\nDECISION-QUEUE.json | health-snapshot.json\"]\n        RULES[\"Rules & Capped Memory\\nAGENTS-CORE.md | LESSONS.md (<=30)\\nMODEL-REGISTRY.json | active-projects.md\"]\n        MCP[\"hub-mcp/ (stdio-only, Node 24 SQLite FTS5)\\nbrain_search_lessons | brain_search_components\\nbrain_get_ops_state | brain_log_decision\"]\n    end\n\n    AC <-->|\"Live JSON State & Decisions\"| OPS\n    MCP <-->|\"Zero-Network stdio JSON-RPC\"| Fleet\n\n    subgraph Fleet[\"5-Agent Coding Fleet (Desktop Apps + CLIs)\"]\n        AGY[\"Antigravity\\nLead + Browser + MCP\"]\n        CC[\"Claude Code\\nDeep Refactors + --worktree\"]\n        CDX[\"Codex CLI/App\\nIndependent Review + Tests\"]\n        OC[\"OpenCode Free Tier\\n$0 Boilerplate (Verify-Gated)\"]\n        CUR[\"Cursor Entry Plan\\nTight Quota (yellow-conserve)\"]\n    end\n\n    RULES -->|\"05-APPLY-BRAIN.sh (Copy, No Symlinks)\"| Fleet\n    OPS <--> Fleet\nphp\nflowchart LR\n    F[\"CI Fail / Subagent Stall / Drift\"] --> L1[\"Layer 1: Deterministic Guard (0 Tokens)\\noxlint | gitleaks | check:rls | pnpm audit\"]\n    L1 --> L2[\"Layer 2: Bounded Recovery (Max 2 Tries)\\nerror tail -> known recipe -> verify\"]\n    L2 -->|Green| L3[\"Layer 3: Sandboxed Kaizen\\n1-sentence rule -> LESSONS.md (<=30)\"]\n    L2 -->|Still Failing| ESC[\"Hard Stop -> ops/DECISION-QUEUE.json\\nExact logs + 1 recommendation\"]\n```\n\nMost local AI dashboards and HTTP MCP servers assume `127.0.0.1` is trusted — making them trivial targets for browser **DNS Rebinding** and **CSRF** attacks. Mizan hardens every boundary out of the box:\n\n- **DNS Rebinding Guard (`403 Forbidden`):** Rejects any` Host` outside`127.0.0.1` ,`localhost` ,`[::1]` , Tailscale (`100.64.0.0/10` ), or`*.ts.net` .\n- **CSRF Guard (`403 Forbidden`):** Rejects any cross-site` Origin` header.\n- **Timing-Safe Bearer Auth (`401 Unauthorized`):** Random 48-char hex token in gitignored` ops/.ac-token` , checked via`crypto.timingSafeEqual` .\n- **`stdio`-Only MCP:**` hub-mcp` opens** zero network ports** and strictly sandboxes file access.\n- **Private Mobile Access:** Use**Tailscale** (`BRAIN_AC_TAILSCALE=1` ) for E2EE WireGuard access + optional push-only webhooks (`ntfy.sh` ) that transmit**only** Decision ID and title (zero code/secrets).\n\n| Feature | Mizan OSS (MIT — This Repo) | Mizan Enterprise (AAA Corporate) | \n|---|---|---|\n| **5-Agent Fleet Sync & Pre-Flight Gate** | Included | Included | \n| **Hardened Action Center + Tailscale Mobile** | Included | Included + SSO / SAML / RBAC | \n| **4-Tool `stdio` Hub MCP (SQLite FTS5)** | Included | Shared Team Postgres / Vector Hub | \n| **Weekly 0-Token Health & Skill ROI Audit** | Included | Org-Wide FinOps & Spend Caps | \n| **Venture Triad Bootstrap + Static RLS Guards** | Included | Policy-as-Code + Immutable Audit Logs | \n| **Deployment & Compliance** | Local-First | Air-Gapped / On-Prem + SOC 2 / ISO 27001 Readiness | \n\nDive deeper into every subsystem in [`docs/wiki/`](https://github.com/csa7mdm/mizan/blob/main/docs/wiki):\n\n**Mizan** (*\"Balance / Scale\"*, pronounced *Mee-zan* · `ミザン` · `Мизан`) bridges three engineering traditions: the structural stillness of Ancient Egyptian *Ma'at*, the fair-measure precision of Islamic *Al-Mizan* (*Mizan al-Hikma*), and Japanese Zen *Ma* (intentional negative space) & *Kaizen* (continuous improvement).\n\nIf Mizan saves you tokens, time, or terminal chaos, **consider starring the repo** and opening an issue or PR!", "url": "https://wpnews.pro/news/show-hn-mizan-local-first-5-agent-control-plane-zero-dep-node-24-stdio-mcp", "canonical_source": "https://github.com/csa7mdm/mizan", "published_at": "2026-12-02 03:13:56+00:00", "updated_at": "2026-12-02 03:45:16.323547+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "agent-protocols", "mlops"], "entities": ["Mizan", "csa7mdm", "Claude Code", "Codex", "Cursor", "OpenCode", "Antigravity", "Node.js 24"], "also_reported_by": [], "takeaway": "Mizan caps active skills at 6–11 (under 3k prefix tokens versus 50k+ across 1,200+ scanned skills) and exposes its 4-tool MCP over stdio with Host/Origin 403 and Bearer 401 checks instead of an open localhost port.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-mizan-local-first-5-agent-control-plane-zero-dep-node-24-stdio-mcp", "markdown": "https://wpnews.pro/news/show-hn-mizan-local-first-5-agent-control-plane-zero-dep-node-24-stdio-mcp.md", "text": "https://wpnews.pro/news/show-hn-mizan-local-first-5-agent-control-plane-zero-dep-node-24-stdio-mcp.txt", "jsonld": "https://wpnews.pro/news/show-hn-mizan-local-first-5-agent-control-plane-zero-dep-node-24-stdio-mcp.jsonld"}}