Neckbeard – A DevOps/platform/SRE plugin for your agent
TL;DR Highlight
An agent plugin that maps apps onto tested OpenTofu modules and attaches a monthly cost table.
Who Should Read
A backend developer who hesitates to let a coding agent write cloud infrastructure because of open security groups and surprise bills.
Core Mechanics
- The agent doesn't write infra itself
- Humans maintain a versioned catalog of OpenTofu modules that is tested in CI on every change.
- The agent only reads the app, asks questions, and maps answers onto catalog inputs.
- If you need something like Redis, it reports a named finding instead of inventing a module.
- LLM judgment up front, deterministic Go behind it
- Analyze produces app-profile.yaml where facts carry file and line numbers, inferences carry confidence, and assumptions are explicit.
- The planner writes a hash-verified blueprint.yaml, and the renderer is a pure function of it.
- Regeneration never overwrites files you have edited.
- You see the monthly bill before anything exists
- Infracost priced the same reference app (HTTP service, worker, cron, Postgres) at the smallest tier across three environments with live prices.
- Monthly costs: Cloud Run $77, Container Apps ~$98*, ECS Fargate $250, EKS $396, GKE (regional) $754, AKS ~$801*.
- The asterisk is because Infracost can't price Container Apps compute yet, and the report lists every unpriced resource next to the total.
- Validation is reported as PASSED / NOT EXERCISED
- V0 covers tofu validate, Checkov policy, and kubeconform.
- V1 (authenticated plan) and V2 (deployment verification) need cloud credentials and stay NOT EXERCISED until a human runs them.
- Every Checkov skip carries a written reason.
- The agent never gets credentials
- Pipelines use OIDC federation only, and a test fails the build if a rendered pipeline mentions AWS_SECRET_ACCESS_KEY.
- Secret values never pass through neckbeard, its state, or git history.
- A human follows docs/bootstrap.md once per environment.
- It's still pre-alpha
- The static matrix of 12 cloud × VCS × runtime paths runs in CI on every PR.
- Live deploy, update, and rollback passed only on serverless containers on AWS/GitHub and Azure/GitHub.
- GCP live deploy, GitLab lanes, Kubernetes, promotion, and recovery drills are implemented but NOT EXERCISED.
Community Reactions
- Experience that just asking an agent works fine
- One commenter said asking agents directly to do this works fine in their experience.
- Objection about an extra abstraction layer
- A commenter asked why put another interface between yourself, the plan file, and the running environment when you already maintain tf/HCL.
- Another suggested OpenTofu plus Ansible, versioned and run, is enough.
- Concern about runaway cloud spend
- One commenter warned you could wake up to skyrocketing cloud spend because an LLM assumed wrong.
- Dismissal as 'just Terraform modules' plus alternatives
- One short take called it a bunch of Terraform modules.
- Others suggested a Hetzner server at $25/month for the reference app and pointed to disco.cloud, a self-hosted PaaS.
How to Apply
- Run /neckbeard:analyze on your current repo
- Install the plugin with the two Claude Code commands and run /neckbeard:analyze in your service repo.
- Check the file and line evidence and the assumption list in app-profile.yaml against your real app.
- Compare costs with /neckbeard:estimate before deploying
- Run the serverless vs kubernetes comparison and read the monthly table and the list of unpriced resources.
- Use the result alongside your own cost estimates to justify the architecture choice.
- Adopt the three-level reporting rule for agent-made IaC
- Instruct your agent to report V0/V1/V2 checks as PASSED, FAILED, or NOT EXERCISED.
- Run credentialed steps yourself and never hand keys to the agent.
- Narrow the agent to a tested module catalog
- Define the workload shapes your team supports and let the agent compose only tested modules.
- Have it report unsupported needs as 'unsupported' instead of writing new infra.
Try It
# Paste into Claude Code (a simplified version of the original approach, without installing neckbeard)
You are an infrastructure scaffolding agent. Follow these rules.
1. Read this repo and find Dockerfiles, ports, env vars, health endpoints, and DB settings, then write them to app-profile.yaml. Attach file:line to every fact, a confidence (high/medium/low) to every inference, and "ASSUMPTION" to every assumption.
2. Do not guess what code can't tell you (expected traffic, tolerable downtime, whether to build a new DB, what the worker is for). Ask me, and do not proceed until I answer.
3. Allowed workload shapes are only: a container image, HTTP/worker/cron processes, Postgres, object storage, and secrets. For anything else (e.g. Redis), do not invent infrastructure; list it as an "unsupported finding".
4. Use OIDC only, no static keys. Never put secret values in code.
First summarize the infrastructure plan for {{target: one of AWS / GCP / Azure}}. Do not write code yet.
Next to try: ask it to "report each check as PASSED / FAILED / NOT EXERCISED".Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques