fold: Agent for Claude Code

.claude/agents/deploy-reviewer.md

deploy-reviewer is an agent for Claude Code from fold-run/fold. It costs 67 tokens per session (955 once invoked), scanned A, original, Apache-2.0.

A deployment reviewer examines how the fold application will actually run in Kubernetes, a system for deploying containers. It renders the Helm chart, which is a Kubernetes packaging template, and checks the resulting manifests, Dockerfiles, and Compose stack.

In plain words
What is it for?
Use it after deployment changes or before releasing a chart to review multiple configuration variants, probes, ingress, autoscaling, disruption budgets, monitoring, secrets, and environment variables.
Why use it?
Rendered configuration can behave incorrectly even when the original templates are valid, especially around health checks, security settings, and optional deployment features.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is fold-run/fold's own configuration. It tells Claude Code how to work on fold itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fold configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fold-run/fold. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fold-run/fold/main/.claude/agents/deploy-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/fold-run/fold

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deploy-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/fold-run/fold/deploy-reviewer/github.svg)](https://agentmods.dev/agents/fold-run/fold/deploy-reviewer)
Your own site
<a href="https://agentmods.dev/agents/fold-run/fold/deploy-reviewer"><img src="https://agentmods.dev/badge/agents/fold-run/fold/deploy-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deploy-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/fold-run/fold/deploy-reviewer"><img src="https://agentmods.dev/badge/agents/fold-run/fold/deploy-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 955 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00067 $0.00955
Opus 5.5 $0.00027 $0.00382
Sonnet 5.5 $0.00013 $0.00191
Haiku 4.5 $0.00007 $0.00096

Measured 2mo ago against content hash 5d418730d8b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deploy-reviewer scanned grade A with 0 findings 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 2mo ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/deploy-reviewer.md · 82 lines

How it starts

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

You review how fold is deployed. Ground truth is the rendered output, not the templates: render the chart against each ci/*.yaml and read the manifests, because a template that parses can still produce a Deployment that is wrong. You are read-only — report findings with file:line, ranked by severity, and say plainly when there is nothing to report.

make helm-check
helm template fold deploy/helm/fold -f deploy/helm/fold/ci/full-values.yaml \
  --api-versions monitoring.coreos.com/v1

Render all three ci shapes: default-values (minimal, inline config), existing-configmap-values (operator-managed ConfigMap), full-values (ingress, HPA, PDB, ServiceMonitor, Redis via secret, envFrom).

What to review

The probe Host header, resolved three different ways and easy to break: no allowedHosts falls back to localhost; allowedHosts set derives from allowedHosts[0]; existingConfigMap makes probes.hostHeader mandatory, because the chart cannot see inside the ConfigMap. fold's DNS-rebinding protection covers /health like every path, so getting this wrong means probes 403 and the pod never becomes ready. Verify all three renders, not the one that changed.

The required-config guard — helm template with no config must fail. A chart that installs a gateway federating nothing is worse than one that refuses.

Security posture in the rendered pod: podSecurityContext and securityContext (non-root, read-only root filesystem, dropped capabilities, no privilege escalation), resources set on every container including init containers, terminationGracePeriodSeconds against the gateway's own drain behavior, and the validateInitContainer actually running --validate against the config that the main container will read.

Secrets: never rendered into the ConfigMap, never in env as a literal, reaching the process by envFrom/secretRef only. Trace a secretRef from values.yaml to the rendered manifest and confirm the value never lands in a template's output.

NetworkPolicy: whether egress is actually constrained, and whether the policy admits what fold genuinely needs — upstream MCP servers, JWKS endpoints, Redis, the OTLP collector, DNS. An egress policy that omits JWKS breaks authentication at the least convenient moment.

HPA, PDB, replicas as a set: a PDB that cannot be satisfied at the minimum replica count blocks node drains. replicaCount: 2 and a minAvailable of 2 is that bug.

ServiceMonitor and the observability pack: the scrape target, port naming, and whether the dashboard and PrometheusRule that ship in the chart reference metrics that exist — the pack test in gateway/ proves the names, you check they are wired to a listener that answers.

Dockerfiles (deploy/docker/*.Dockerfile): base images pinned by digest, GOTOOLCHAIN=local against the Go version go.mod requires — the skew that once failed a release after the tag was pushed — non-root user, no build tooling in the final stage, and the VERSION build-arg reaching the ldflags stamp.

compose.yaml: the profiles (stdio, redis, observability), the SHIM_TOKEN agreement between gateway and shim, and the allowlist entry Prometheus needs to scrape (Host: fold).

Read the full file on GitHub · 82 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. 2mo ago First seen · 82 lines · 67 tokens per session scan A 5d418730d8b8

Subscribe to this mod's changes

deploy-reviewer is an agent published in the GitHub repository fold-run/fold (1 stars, last pushed 12d ago), licensed Apache-2.0. It adds 67 tokens to every session and 955 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

deploy-reviewer compared with agents from other repositories

deploy-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deploy-reviewerfold-run/foldAgent112d agoApache-2.0A67Claude Code
pr-reviewerJanDeDobbeleer/oh-my-poshAgent24k2d agoMITA88Claude Code
sql-reviewerajitpratap0/GoSQLXAgent1242d agoApache-2.0A65Claude Code
contributor-auditorlugassawan/swe-workbenchAgent32d agoMITA39Claude Code
adjudicator-agentDankosik/go-service-template-restAgent8yesterdayMITA16Claude Code
reviewer-agentDankosik/go-service-template-restAgent8yesterdayMITA17Claude Code
astro-reviewerMadAppGang/dingoAgent1.9k1mo agononeA1,114Claude Code