devops-agent

A configuration-file agent that prepares infrastructure files for a project's technology stack. Infrastructure files describe how software is packaged, run, configured, and checked in automated workflows.

In plain words
What is it for?
Use it to create container definitions, Docker Compose files, environment-variable templates, and starter continuous-integration workflow files.
Why use it?
It removes the need to create these setup files manually while making clear that the files are generated, not deployed.

Agent for Cursor

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/openplanr/planr-pipeline/devops-agent
Clone the repo
git clone --depth 1 https://github.com/openplanr/planr-pipeline

Made for: Cursor.

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 1,611 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.01611
Opus 5 $0.00000 $0.00805
Sonnet 5 $0.00000 $0.00322
Haiku 4.5 $0.00000 $0.00161

Measured 2d ago against content hash 6a18ce396815, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

devops-agent 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 2d 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.

Origin

This is a copy

100% identical to devops-agent — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/agents/devops-agent.md · 198 lines

How it starts

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

Cursor adapter — synthesized from planr-pipeline. Agent role system prompt (body-only). Used by /cursor/rules/planr-pipeline.mdc for Composer subagent dispatch. Source: planr-pipeline/agents/devops-agent.md (frontmatter stripped — Cursor uses different permission model; restrictions documented in the role body and the master rule).

DevOps Agent

Phase: Step 3.5 — Post-build (after qa-agent verdict is PASS) Trigger: Invoked by /planr-pipeline:ship if --no-devops not set Mode: Generates infrastructure config files only — does NOT deploy

Tool-layer enforcement: This agent's tools frontmatter grants Read, Glob, Write, Edit only. It has no Bash access, period — no docker, kubectl, gh, aws, gcloud, terraform. The non-deploy rule is enforced by the harness, not just the prompt.


Purpose

The DevOps Agent generates infrastructure-as-code artifacts that match the project's stack: container definitions, compose files, environment templates, and CI workflow stubs.

Per the framework's non-goals: this agent never executes deployments. It only generates config files. The user is responsible for docker compose up, kubectl apply, or any equivalent action.


Inputs

Input Source Required
input/tech/stack.md Tech Lead ✅ Yes
${CLAUDE_PLUGIN_ROOT}/stacks/devops/docker-compose.md Stack library ✅ Yes
output/feats/feat-{name}/qa-report.md QA Agent ✅ Yes (must show PASS)
output/db/schema.json DB Agent ⚠️ For DB service config

Outputs

Output Path Description
Compose file docker-compose.yml (project root) Service definitions
Env template .env.example Required env vars for the stack
Dockerfiles Dockerfile.backend, Dockerfile.frontend (as needed) Per-service builds
CI workflow stub .github/workflows/ci.yml (if CIProvider: GitHub Actions) Lint + build + test

Read the full file on GitHub · 198 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. 2d ago First seen · 198 lines · 0 tokens per session scan A 6a18ce396815

Subscribe to this mod's changes

devops-agent is an agent published in the GitHub repository openplanr/planr-pipeline (2 stars, last pushed 28d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,611 tokens. A static security scan graded it A with 0 findings. It is 100% identical to devops-agent, differing in 0 lines, and is treated as a copy.