<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Moch Fikri (Fik.)</title>
    <description>The latest articles on DEV Community by Moch Fikri (Fik.) (@moch_fikrifik_9b956ee).</description>
    <link>https://dev.to/moch_fikrifik_9b956ee</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1526316%2F945f475c-ccf9-42b4-983e-b97f433c470e.png</url>
      <title>DEV Community: Moch Fikri (Fik.)</title>
      <link>https://dev.to/moch_fikrifik_9b956ee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/moch_fikrifik_9b956ee"/>
    <language>en</language>
    <item>
      <title>FrankenCrew: I stitched a Go kernel watchdog, a Kiro Crew, and a WhatsApp poll into one server monster</title>
      <dc:creator>Moch Fikri (Fik.)</dc:creator>
      <pubDate>Sat, 28 Nov 2026 13:47:39 +0000</pubDate>
      <link>https://dev.to/moch_fikrifik_9b956ee/frankencrew-i-stitched-a-go-kernel-watchdog-a-kiro-crew-and-a-whatsapp-poll-into-one-server-241l</link>
      <guid>https://dev.to/moch_fikrifik_9b956ee/frankencrew-i-stitched-a-go-kernel-watchdog-a-kiro-crew-and-a-whatsapp-poll-into-one-server-241l</guid>
      <description>&lt;p&gt;&lt;em&gt;I wrote this post as part of the Kiroween 2026 hackathon, where FrankenCrew is my entry in the Frankenstein category.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;systemctl restart&lt;/code&gt; on a hunch. The result is FrankenCrew: three parts that were never meant to fit together, stitched into one creature.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three speeds, three organs
&lt;/h2&gt;

&lt;p&gt;The core idea is to split the work by how fast it has to happen and how much damage a mistake can do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reflexes&lt;/strong&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thinking&lt;/strong&gt; belongs to agents. A Kiro Crew of four agents triages the incident and writes a plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anything irreversible&lt;/strong&gt; belongs to a human. Restarts and reloads wait for a vote in a WhatsApp poll.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/0J3gAeYCpjM" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Speed 1: reflexes in plain Go
&lt;/h2&gt;

&lt;p&gt;The Sentinel is a small Go daemon. It samples &lt;code&gt;memory.current&lt;/code&gt;, &lt;code&gt;memory.pressure&lt;/code&gt; (PSI), and &lt;code&gt;memory.events&lt;/code&gt; once per second, and it also wakes early when the kernel signals a PSI trigger or a &lt;code&gt;memory.events&lt;/code&gt; change. A detector keeps an exponentially weighted moving average (EWMA) of the memory slope, projects the time to OOM, and assigns a severity.&lt;/p&gt;

&lt;p&gt;When the detector opens a P1 or P2 incident, the reflex engine applies one bounded action, such as a &lt;code&gt;memory.reclaim&lt;/code&gt; write capped at 25% of &lt;code&gt;memory.current&lt;/code&gt; or a runtime &lt;code&gt;MemoryHigh&lt;/code&gt; 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Speed 2: a crew that thinks
&lt;/h2&gt;

&lt;p&gt;The thinking happens in a Kiro Crew app (&lt;code&gt;app.json&lt;/code&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;franken-conductor&lt;/code&gt; wakes up on webhook events and spawns the specialist needed.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;franken-sentry&lt;/code&gt; claims the incident and triages it with read-only tools.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;franken-architect&lt;/code&gt; turns the triage into a schema-validated remediation plan.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;franken-remediator&lt;/code&gt; requests human approval and executes approved steps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MCP is the trust boundary: agents have zero shell access and interact strictly through two MCP servers (&lt;code&gt;franken-sentinel&lt;/code&gt; and &lt;code&gt;franken-wa&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Speed 3: the human in charge
&lt;/h2&gt;

&lt;p&gt;Before any L2 action (restart, reload) runs, &lt;code&gt;wa-bridge&lt;/code&gt; 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;FrankenCrew proves that AI agents and deterministic safety can work together: reflexes for milliseconds, agents for minutes, and humans for irreversible decisions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Replay Dashboard: &lt;a href="https://frankencrew.fikfikk.my.id" rel="noopener noreferrer"&gt;https://frankencrew.fikfikk.my.id&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub Repository: &lt;a href="https://github.com/FikFikk/franken-crew" rel="noopener noreferrer"&gt;https://github.com/FikFikk/franken-crew&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>kiro</category>
      <category>go</category>
      <category>linux</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
