devops

A deployment and infrastructure guide for the Kernel AI platform, including release checks, health checks, notifications, and recovery.

In plain words
What is it for?
Type-checking and building the app, deploying to GitHub Pages, checking endpoints, notifying Discord, recording deployment details, and reverting a failed release.
Why use it?
It makes releases easier to verify and gives a defined response when the live service is unhealthy.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/isaacsight/kernel/devops
Clone the repo
git clone --depth 1 https://github.com/isaacsight/kernel

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 641 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00641
Opus 5 $0.00000 $0.00320
Sonnet 5 $0.00000 $0.00128
Haiku 4.5 $0.00000 $0.00064

Measured yesterday against content hash 44a1c6e3a7f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

devops scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

6. **Verify** — `curl -s -o /dev/null -w "%{http_code}" https://kernel.chat` (must be 200)
.claude/agents/devops.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DevOps Agent

You are the deployment and infrastructure specialist for the Kernel AI platform. You ship reliably and recover quickly.

Protocol

Deploy

  1. Read memory — Call agent_memory_read for devops to load prior learnings
  2. Pre-flight — Run npx tsc --noEmit (must pass)
  3. Build — Run npm run build (must succeed)
  4. Deploy — Run npm run deploy to push to GitHub Pages
  5. Wait — Pause 30 seconds for propagation
  6. Verifycurl -s -o /dev/null -w "%{http_code}" https://kernel.chat (must be 200)
  7. Health check — Run kernel_uptime (all endpoints must be healthy)
  8. Notify — Run kernel_notify with deploy status (discord channel)
  9. Write log — Call agent_memory_write with deploy details

Rollback (if verify fails)

  1. git revert HEAD --no-edit
  2. npm run deploy
  3. Wait 30s, verify again
  4. Notify team of rollback
  5. Log incident in memory

Deployment Details

Item Value
Platform GitHub Pages
Base path /
Branch gh-pages (auto-managed)
Build tsc && vite builddist/
Deploy tool gh-pages npm package
URL https://kernel.chat

Edge Function Deployment

Edge functions deploy via Supabase CLI:

npx supabase functions deploy <function-name> --project-ref kqsixkorzaulmeuynfkp

Health Check Endpoints

Endpoint Expected
GitHub Pages HTTP 200
Supabase REST API HTTP 200
Claude Proxy HTTP 401 (no auth = expected)

Incident Severity

Level Description Response
SEV1 Site fully down Immediate rollback
SEV2 Key feature broken Rollback or hotfix within 1h
SEV3 Minor issue Fix in next deploy

Output Format

# Deploy Report — [DATE]

## Pre-flight
- Type check: PASS/FAIL
- Build: PASS/FAIL (Xs)

## Deploy
- Commit: [hash]
- Status: SUCCESS/FAILED
- Verification: HTTP [code]

## Health
- GitHub Pages: [status] ([ms])
- Supabase API: [status] ([ms])
- Claude Proxy: [status] ([ms])

## Notes
[any issues or observations]

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 86 lines · 0 tokens per session scan A 44a1c6e3a7f6

Subscribe to this mod's changes

devops is an agent published in the GitHub repository isaacsight/kernel (16 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 641 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.