I wrote this post as part of the Kiroween 2026 hackathon, where FrankenCrew is my entry in the Frankenstein category.
Small Linux servers die in a predictable way. One process leaks memory, the kernel spends more and more time reclaiming pages, every request slows down, and finally the OOM killer picks a victim. On a company fleet an on-call engineer gets paged. On a side project, a student lab, or a Raspberry Pi in a closet, nobody notices until the morning.
I wanted a sentry for those boxes. I also wanted to use LLM agents for the part they are good at, reading logs and proposing a fix, without ever letting a model run systemctl restart on a hunch. The result is FrankenCrew: three parts that were never meant to fit together, stitched into one creature.
Three speeds, three organs
The core idea is to split the work by how fast it has to happen and how much damage a mistake can do:
- Reflexes belong to deterministic code. The Sentinel reads PSI and cgroup v2 counters and, for a P1 or P2 incident, applies at most one reversible action within the 250 ms budget from the spec.
- Thinking belongs to agents. A Kiro Crew of four agents triages the incident and writes a plan.
- Anything irreversible belongs to a human. Restarts and reloads wait for a vote in a WhatsApp poll.
Speed 1: reflexes in plain Go
The Sentinel is a small Go daemon. It samples memory.current, memory.pressure (PSI), and memory.events once per second, and it also wakes early when the kernel signals a PSI trigger or a memory.events change. A detector keeps an exponentially weighted moving average (EWMA) of the memory slope, projects the time to OOM, and assigns a severity.
When the detector opens a P1 or P2 incident, the reflex engine applies one bounded action, such as a memory.reclaim write capped at 25% of memory.current or a runtime MemoryHigh throttle. Each reflex gets a TTL and a rollback row in SQLite, so it is undone on schedule even if the daemon restarts in between.
Speed 2: a crew that thinks
The thinking happens in a Kiro Crew app (app.json):
-
franken-conductorwakes up on webhook events and spawns the specialist needed. -
franken-sentryclaims the incident and triages it with read-only tools. -
franken-architectturns the triage into a schema-validated remediation plan. -
franken-remediatorrequests human approval and executes approved steps.
MCP is the trust boundary: agents have zero shell access and interact strictly through two MCP servers (franken-sentinel and franken-wa).
Speed 3: the human in charge
Before any L2 action (restart, reload) runs, wa-bridge posts an interactive WhatsApp poll to authorized admins. A vote mints an Ed25519 cryptographic token bound to the specific incident and plan hash. The Sentinel verifies the signature and consumes the nonce, preventing replay attacks.
Summary
FrankenCrew proves that AI agents and deterministic safety can work together: reflexes for milliseconds, agents for minutes, and humans for irreversible decisions.
- Replay Dashboard: https://frankencrew.fikfikk.my.id
- GitHub Repository: https://github.com/FikFikk/franken-crew


