This post is written as part of the Kiroween 2026 hackathon (Frankenstein category).
Legacy services still run critical infrastructure on old protocols—Syslog (UDP/TCP), Telnet, IRC, and plain rotating log files. When one starts failing silently at 3 AM, modern AI coding agents cannot see it because those apps were never written to speak HTTP webhooks or structured JSON APIs.
ChimericMesh fixes that without touching the legacy app:
Syslog/UDP ─┐ Telnet/TCP ─┼─> parsers ─> Hub ─> incident detection ─┬─> IRC announce IRC/TCP ────┘ └─> webhook Kiro agent ── MCP (stdio) ──> REST API ──> Hub (human approval gate) Live overview & screenshots: harshitdhaduk.github.io/chimericmesh
Source code: github.com/HarshitDhaduk/chimericmesh
Run locally (Python 3.11+): pipx install chimericmesh && chimericmesh (or uvx chimericmesh)
Why we stopped vibe coding and moved to Kiro Specs
Our first working prototype was built conversationally in two days. It worked great for happy-path demos—and immediately cracked when we replayed real public Loghub and Ubuntu IRC datasets (missing syslog headers turned errors into INFO, noisy one-off lines opened fake incidents, and full-history re-analysis dropped UDP packets).
That pushed us into Kiro's spec-driven workflow inside /.kiro/specs/:
- A baseline spec (legacy-mesh) capturing the working behavior.
- Seven core V1 module specs: store, services, connectors, discovery, auto-approval, agent-loop, and dashboard.
- A V1.1 demo-mode spec adding Try the demo (a throwaway sandboxed hub with three intentionally failing sample apps), chimericmesh demo, Mute controls, and PyPI packaging.
Each spec contains:
- requirements.md in EARS notation
- design.md with explicit Correctness Properties
- tasks.md executed test-first in isolated git worktrees before human review
Instead of drifting when reality disagreed with a design, conflicts were recorded as dated blocker decisions right inside design.md.
Deterministic Hooks Beat Prompt Wishfulness
Our first security rule for the dashboard—"never render untrusted log lines via innerHTML"—started as an agent-prompt hook. It fired on every edit and enforced nothing.
We replaced it with a deterministic PreToolUse command hook in .kiro/hooks/guard-innerhtml.json:
{ "version": "v1", "hooks": [ { "name": "Guard innerHTML in dashboard", "trigger": "PreToolUse", "description": "Blocks innerHTML-style sinks in src/chimericmesh/web/ writes", "matcher": "^(fs_write|fs_append|str_replace)$", "action": { "type": "command", "command": "python .kiro/hooks/guard_innerhtml.py" } } ] } And a tiny 44-line Python guard (guard_innerhtml.py) that exits 2 only when a write targets src/chimericmesh/web/ and introduces innerHTML, outerHTML, insertAdjacentHTML, or document.write:
if "src/chimericmesh/web/" in path and SINK.search(text): sys.stderr.write( "Blocked: innerHTML/outerHTML/insertAdjacentHTML/document.write " "in the dashboard. Log text is untrusted; render it with " "textContent instead.\n" ) return 2 We also paired that with PostFileSave (test-on-save.json, anchored on .py$ with a 90s timeout) running a fast 40-second smoke test set instead of stalling every save behind 3,000+ tests. Notice the anchored regex (^(fs_write|fs_append|str_replace)$): plain unanchored names match any tool ID substring—a detail we caught and pinned with unit tests in tests/unit/test_guard_hook.py.
Keeping AI Read-Only Until a Human Approves
Steering docs (.kiro/steering/project.md and testing-pbt.md) establish the boundary, while the hub and MCP layer actually enforce it:
- src/chimericmesh/mcp_server.py exposes 17 MCP tools over stdio (wait_for_work, list_incidents, get_incident, find_code_for_service, explain_log_window, propose_remediation, verify_proposal, complete_proposal, resolve_incident, etc.).
- Admin-token operations (approve, deny, creating or widening standing auto-approval rules) are never exposed over MCP.
- .kiro/agents/mesh-watcher.json runs a persistent watcher loop against the hub:
- Investigates the incident read-only (get_incident, explain_log_window, find_code_for_service).
- Proposes one bounded remediation (propose_remediation) and stops.
- Waits until a human clicks Approve in the browser (unlocked via admin token) or types !approve in IRC / ChimericBot terminal.
- Re-verifies both get_proposal and verify_proposal right before editing code, runs tests, and refuses to resolve the incident unless both tests pass and the live error rate drops.
Why re-verify right before editing? During a live IDE run (docs/kiro-sessions/), an earlier hub restart caused a reused p1 ID to point at a different unapproved proposal while the agent still trusted p1 from memory. That single incident changed two architectural guarantees: permanent non-reused proposal IDs in SQLite and mandatory pre-edit re-verification in mesh-watcher.
The exact same .kiro/ agent profiles, steering, and MCP configuration run unchanged in both Kiro IDE and Kiro CLI V3.
Property-Based Testing Caught What Review Missed
With 55 Hypothesis test files in tests/pbt/, property tests tied to our design invariants caught subtle failures manual tests never triggered:
- Back-to-back crash ID collision: Property 5 failed on crash -> ingest -> crash -> ingest when SQLite event IDs repeated ([111, 111]).
- Thread leak on shutdown: A reference cycle held a store writer thread open after dropping an app instance.
- Exponential backoff overflow: Even an agent-generated backoff patch needed a cap because unbounded 2 ** failures triggers OverflowError after 1,024 consecutive failures.
Try ChimericMesh in 60 Seconds
You do not need legacy servers running to test the full loop:
pipx install chimericmesh chimericmesh Open http://127.0.0.1:8000 and click Try the demo to spin up a sandboxed throwaway hub with three failing sample services (orders-api, spooler, mail-bridge) across Syslog, IRC, and Telnet—without touching any local files or databases.
If you want to connect your own Kiro workspace directly, open the cloned repo in Kiro IDE and chat with mesh-watcher.

