Inspiration

Most Kubernetes incidents at night are not a mystery. A container runs out of memory. A release points to an image that does not exist. A process hangs but never crashes. The fix is often a single command. The hard part is someone waking up at 3 AM, reading pod events and logs half asleep, deciding whether the fix is safe, and then checking that the app really came back.

We wanted a teammate that takes that first call. It should do the safe work by itself, ask a person before anything risky, and show proof that the app is back. We named it Argus, after the hundred-eyed watcher from Greek myth who never fully sleeps.

What it does

Argus runs inside your Kubernetes cluster and watches the namespaces you choose. Every incident goes through five steps: Detect, Investigate, Approve, Fix, Verify.

  • Detect: it spots memory kills, failed image pulls, crash loops and apps that stop responding. Prometheus is optional because Argus can watch workloads directly.
  • Investigate: it collects pod states, events, logs with secrets redacted, deployment revisions and metrics if you have them. Then built-in rules or a model you pick (OpenAI, OpenRouter, Claude, Gemini or Grok) explain the cause and suggest a fix. The rules work without any API key.
  • Approve: the code decides the risk, not the model. Low risk fixes can go ahead. Medium and high risk always wait for a person. You can tap Approve or Reject in Telegram, or follow a Slack link to the dashboard.
  • Fix: it can only do four things: restart, roll back, scale up or raise a memory limit. One bounded patch, applied at most once, and only in a namespace you allowed.
  • Verify: it waits until the app is stable again and reports what happened. If it cannot fix something, like an app whose own code keeps crashing, it hands it to a human instead of pretending a restart helped.

The dashboard is a haunted graveyard (we entered the Costume Contest). Each app is a grave. The owl watches while Argus investigates, a glowing seal asks for approval, and a relit candle means a verified fix. Every state also has an icon and plain words, so the theme never hides what is going on. Each incident has a case file with the namespace, Deployment, pod, diagnosis, approval, the exact change and the verification result.

Getting started is short. You sign in on the website, name your cluster, pick your namespaces, download one install file and apply it with kubectl. Dry run is on by default, so nothing in your cluster changes until you turn on live fixes.

How we built it

  • Backend: Python, FastAPI and LangGraph for the agent steps, with SQLite for incidents and the audit trail. The graph pauses when a fix needs approval and resumes after the decision.
  • Frontend: React, TypeScript, Vite, Tailwind CSS, and three.js for the 3D cluster on the landing page.
  • Hosted side: the website runs on Vercel, sign-in uses Clerk, and Neon Postgres stores workspaces and connected clusters.
  • Packaging: one non-root container image serves the dashboard and the API on one port.
  • Cluster access: a scoped service account and a namespace guard in code. No Secret reads and no deletes.

We used Kiro for spec-driven development. Kiro generated the foundation and monitoring specs and built the first ten foundation tasks. Every later phase kept the same requirements, design and tasks layout under .kiro/specs/. Steering files held our safety rules, like dry run by default, approval for risky fixes and "never report a fix that was not made". Hooks defined our quality gate: Ruff, strict mypy and the full test suite.

Testing was a big part of the work. There are over 58 backend tests, including Hypothesis property tests, and over 12 frontend tests. We also tested on real kind clusters with five broken demo apps, and on Memos, a real open source notes app.

Challenges we ran into

  • At one point 29 tests passed while the approval flow was broken. The tests never really paused the graph, so they could not see that "resume" was restarting the whole investigation. We fixed it and added a steering rule: a test must exercise what its name claims.
  • Property tests found two ways our log redaction could leak a secret: a rule could reach into the next line, and one secret pattern could hide another. Now every rule finds secrets in the original text, and no rule crosses a line break.
  • Real clusters do not look like fake data. A crash-looping pod still reports phase Running. An OOM kill leaves no event on the pod. Alerts also arrived for pods that were already gone or already fixed, and in one test run Argus restarted an app that was only starting up. Each of these became a guard in code.
  • A late approval could roll back a Deployment that someone had already changed. Argus now refuses a fix if the revision moved after the diagnosis.
  • The model sometimes gave answers that were close but wrong, like a memory limit written as 128Mi}],. Guardrails in code kept Argus safe while we improved the prompt over four versions.
  • When we started twenty incidents at once, five failed because each request held its database connection until the whole investigation finished. An alert storm would have lost alerts the same way. Now each request lets go of its connection early.

Accomplishments that we're proud of

  • On a fresh kind cluster with no monitoring stack, Argus found the problems by itself. After approval it raised a memory limit from 64Mi to 128Mi, and it restarted a hung app on its own. Both were verified healthy about 25 seconds after the patch. These are local measurements, not a production promise.
  • In one run, Argus asked on Telegram one second after the alert, the approval tap came three seconds later, and the verified result arrived in the same chat 31 seconds after the alert.
  • It knows when not to act. A crash loop caused by the app's own code is escalated with zero actions.
  • The spooky theme makes the state easier to read, not harder.
  • One install file and a kubectl apply take a team from nothing to a watched cluster.

What we learned

  • Safety has to live in code, not in the prompt. The model can suggest, but the code decides the risk, the limits and whether a fix runs.
  • A green test suite does not mean the feature works. A test has to do what its name says.
  • The real cluster is the source of truth. We copied real cluster state into our test fixtures so the tests follow the same paths as real data.
  • Checking the result matters as much as making the change. "Patch applied" is not the same as "app recovered".
  • Writing the spec before the code with Kiro made reviews faster, because we could check the code against clear requirements.

What's next for Argus Agent

  • Run a pilot with a small platform team and measure how well Argus escalates and how many false alarms it raises.
  • Add new actions only when they can meet the same approval and verification rules.
  • Let people approve fixes directly inside Slack, the way they already can in Telegram.

Built With

Share this project:

Updates

Submission history