devops-bot: Instructions file for Codex

AGENTS.md

devops-bot AGENTS.md is an instructions file for Codex, OpenCode from xxxxxccc/devops-bot. It costs 1,134 tokens per session, scanned B, original, MIT.

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

Written for Codex and OpenCode: the file is AGENTS.md.

This is xxxxxccc/devops-bot's own configuration. It tells Codex and OpenCode how to work on devops-bot 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 devops-bot configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xxxxxccc/devops-bot. 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/xxxxxccc/devops-bot/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/xxxxxccc/devops-bot

Made for: Codex, OpenCode.

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xxxxxccc/devops-bot/agents-md/github.svg)](https://agentmods.dev/instructions/xxxxxccc/devops-bot/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/xxxxxccc/devops-bot/agents-md"><img src="https://agentmods.dev/badge/instructions/xxxxxccc/devops-bot/agents-md/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 devops-bot AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/xxxxxccc/devops-bot/agents-md"><img src="https://agentmods.dev/badge/instructions/xxxxxccc/devops-bot/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.01134 $0.01134
Opus 5.5 $0.00454 $0.00454
Sonnet 5.5 $0.00227 $0.00227
Haiku 4.5 $0.00113 $0.00113

Measured 2mo ago against content hash 2953f5084035, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 2mo 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 (48 stars, last pushed 7mo ago), licensed MIT. It adds 1,134 tokens to every session, about $0.0045 per session on Opus 5.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.

Related

devops-bot AGENTS.md compared with instructions from other repositories

devops-bot AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
devops-bot AGENTS.mdxxxxxccc/devops-botInstructions file487mo agoMITB1,134Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode