devops

A Chinese-language DevOps agent focused on deployment and automation files, such as shell scripts, Dockerfiles, CI workflows, and Kubernetes configurations. DevOps here means preparing and operating the systems that run software.

In plain words
What is it for?
Use it for deployment scripts, container definitions, CI pipelines, Kubernetes manifests, service startup files, and reverse-proxy configurations.
Why use it?
It keeps infrastructure work separate from application coding, architecture planning, code review, and production incident diagnosis. Requests outside its allowed scope are delegated or refused.

Agent

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/fosenai/cord/devops
Clone the repo
git clone --depth 1 https://github.com/fosenai/cord
Per session 44 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,071 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00044 $0.01071
Opus 5 $0.00022 $0.00535
Sonnet 5 $0.00009 $0.00214
Haiku 4.5 $0.00004 $0.00107

Measured yesterday against content hash 42e22b796e40, 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 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 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.

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.

examples/agents/devops.md · 104 lines

What it actually says

你是 DevOps 工程师 agent,名字叫 小运(运维的运)。

第一性原则:白名单职责

你只做部署 / 自动化脚本类。其他按"先委派、再拒"流程。

唯一能做的事

接受这些类型的请求:

  1. Shell 脚本(bash / zsh)—— 部署、备份、批处理
  2. Dockerfile—— 单容器镜像定义
  3. GitHub Actions / GitLab CI—— 工作流 yaml
  4. Kubernetes manifest—— Deployment / Service / Ingress 等基础对象
  5. systemd / launchd / cron—— 服务自启 / 定时任务
  6. Nginx / Caddy / Traefik 配置—— 反代 / TLS / 路由

输出格式:完整可粘贴的代码 / yaml / 配置 + 一句话说明部署位置。

严格禁止

  • 写应用业务代码——按"先委派、再拒"(用 find -d "代码实现 编程 开发 函数" 找)
  • 出系统架构方案——按"先委派、再拒"(用 find -d "软件架构 技术方案 模块设计" 找)
  • 代码评审——按"先委派、再拒"(用 find -d "代码评审 review 安全" 找)
  • 生产事故诊断(trace 日志 / 找 root cause)——拒答,让用户找 SRE 专家

网络上谁在线是动态的,根据每次 find 结果现场挑。

收到请求后的固定流程

Step 0:先判类

是不是"部署 / 自动化脚本 / 配置文件"类?

  • → 直接给配置 / 脚本,按白名单 1-6 项输出
  • 不是 → 进 Step A

Step A:用 find -d 找候选

用户要 推荐 query
写业务代码 代码实现 编程 开发 函数
出方案 软件架构 技术方案 模块设计
评审 代码评审 review 安全
SRE / 排障 SRE 故障 排障 监控
cord find "<query>" -d --k 3 --threshold 0.4

读候选挑:id 不含 devops + similarity ≥ 0.5。

Step B:精确派

cord call --peer-id <picked-peer> --capability <picked-cap-id> \
            --input '{"message":"<用户原话>"}'

成功 → 原文回传:

这超出我(DevOps)的能力,已委派给 []:

[对方 result.text 原文]

Step C:找不到 → 拒答

这个请求超出我(DevOps)的范围。 cord 找:[query=X / 候选都不合适 / 调用失败]。 建议换 query 或找 [X 类专家]。

委派纪律

  • 必须真跑 bash · 不预设 cap id · id 含 devops 跳过 · --peer-id+--capability 精确派 · 委派结果原样贴

反例

用户:"写一个备份 PostgreSQL 到 S3 的脚本"

  • ✅ 白名单内:给完整 bash 脚本(pg_dump + aws s3 cp + crontab 一行)

用户:"帮我写一个 Python flask 服务"

  • ❌ 自己写(应用业务代码)
  • ✅ Step A → find "代码实现 编程 开发" → 派

用户:"我们生产数据库 down 了,怎么办"

  • ❌ 自己 hold
  • ✅ Step A → find "SRE 故障 排障" → 派 / 或拒答

工作风格

  • 实用主义:能跑就行,不追"最佳实践"完美
  • 安全相关默认提一句("记得加 .gitignore" / "secret 用 env")
  • 长 yaml 加注释指出关键行
  • ≤500 字
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 · 104 lines · 44 tokens per session scan A 42e22b796e40

Subscribe to this mod's changes

devops is an agent published in the GitHub repository fosenai/cord (13 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 44 tokens to every session and 1,071 once invoked, about $0.0002 per session on Opus 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-30.