devops-bot AGENTS.md

Instructions for DevOps Bot, a chat-based coding agent that receives requests through Feishu or Slack and can modify code automatically. It supports several AI providers and can manage multiple cloned projects.

In plain words
What is it for?
Running the bot in development or production, building it, checking or formatting its code, and managing projects registered through chat or stored in its local repository directory.
Why use it?
They define the commands, formatting rules, package manager, import style, and security conventions needed to develop and check the bot consistently.

Instructions file for CodexOpenCode

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 instructions/xxxxxccc/devops-bot/agents-md
Clone the repo
git clone --depth 1 https://github.com/xxxxxccc/devops-bot

Made for: Codex, OpenCode.

Per session 1,134 This file is loaded in full into every session.
When invoked 1,134 The same file — it is already loaded in full.
Security scan B 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.01134 $0.01134
Opus 5 $0.00567 $0.00567
Sonnet 5 $0.00227 $0.00227
Haiku 4.5 $0.00113 $0.00113

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

Security

Grade B, and why

devops-bot AGENTS.md scanned grade B 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 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.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Shell tool blocks dangerous commands (`rm -rf /`, `sudo`, `shutdown`, etc.)

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

AGENTS.md · 62 lines

How it starts

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

DevOps Bot

Chat-driven AI coding agent. Users communicate via IM group chat (Feishu or Slack), a two-layer AI system classifies intent and executes code changes automatically. Supports multiple AI providers (Anthropic, OpenAI, OpenAI-compatible).

Commands

Task Command
Dev (hot reload) pnpm dev
Build pnpm build
Start pnpm start
Lint + Format check pnpm check
Lint only pnpm lint
Format (write) pnpm format

Always run pnpm check before committing.

Critical Conventions

  • ESM + NodeNext: All imports must use .js extension (e.g., import { foo } from './bar.js')
  • Node.js builtins: Use node: protocol (e.g., import { readFile } from 'node:fs/promises')
  • Biome for formatting and linting — not ESLint, not Prettier
  • Single quotes, no semicolons, trailing commas (enforced by Biome)
  • pnpm as package manager — do not use npm or yarn
  • No new dependencies without justification; prefer Node.js builtins

Project Context

  • Supports multi-project mode — projects added via chat (add_project intent), auto-cloned to ~/.devops-bot/repos/
  • Supports workspace mode — register a workspace meta-repo (add_workspace intent) with workspace.json manifest; dispatcher AI sees all sub-projects and clones on demand via targetGitUrl
  • Falls back to single-project mode if TARGET_PROJECT_PATH is set
  • IM bot (Feishu or Slack) is the primary user interface — there is no web frontend
  • Two AI layers: fast model (dispatcher) and powerful model (task executor) — provider-agnostic
  • Three-tier task execution: execute_task (low risk, immediate), propose_task (medium risk, needs approval via Issue AI synthesis), create_issue (high risk, discussion only)
  • PR Review: AI-powered code review via review_pr intent, self-review after task completion (with auto-fix loop — up to 2 rounds), or polling/webhook triggers; Memory namespace isolation (task vs review) with selective cross-injection; full PR discussion context (issue comments + review summaries) injected into review and fix prompts
  • Issue AI: Independent AI layer that reads full issue context (body + comments) and synthesizes actionable tasks; also scans external issues with configured labels; in workspace mode, uses two-phase cross-repo triage (quality gate + routing to sub-projects, with sub-issue creation)
  • GitHub App authentication for GitHub operations (PRs, Issues, git push); PAT fallback supported
  • Skills stored at workspace level (~/.devops-bot/skills/), shared across all projects
  • Memory persists in data/memory/ using SQLite (primary) + JSONL exports (AI browsing); features semantic dedup (LLM-driven ADD/UPDATE/NOOP/DELETE decision cycle), change audit trail (memory_history table), periodic pruning of stale memories, and per-project custom extraction prompts via .devops-bot.json
  • Configuration lives in .env.local (never committed)

Read the full file on GitHub · 62 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 · 62 lines · 1,134 tokens per session scan B 2953f5084035

Subscribe to this mod's changes

devops-bot AGENTS.md is an instructions file published in the GitHub repository xxxxxccc/devops-bot (47 stars, last pushed 4mo ago), licensed MIT. It adds 1,134 tokens to every session, about $0.0057 per session on Opus 5. A static security scan graded it B with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.