background-agents: Instructions file for Codex

AGENTS.md

background-agents AGENTS.md is an instructions file for Codex, OpenCode from ColeMurray/background-agents. It costs 2,361 tokens per session, scanned A, original, MIT.

Repository instructions for Open-Inspect, a system that runs coding agents in isolated development environments. They describe its architecture, technologies, packages, dependencies, and common commands.

In plain words
What is it for?
Understanding the repository structure, tracing data flow, checking package dependencies, and running common development commands.
Why use it?
They give coding agents the project context they need before changing code. This reduces confusion about how the web app, control services, sandboxes, and bot integrations fit together.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions OpenCode.

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

About the project

Open-Inspect is a hosted system that lets coding agents work on software tasks in background development environments. Teams use it to connect agents with repositories, communication tools, scheduled events, and parallel sandboxes. The catalogue contains add-ons associated with this system.

ColeMurray/background-agents · 3,433 stars · on GitHub · backgroundagents.dev

Reuse

Borrowing it

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

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 background-agents AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/colemurray/background-agents/agents-md"><img src="https://agentmods.dev/badge/instructions/colemurray/background-agents/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,361 This file is loaded in full into every session.
When invoked 2,361 The same file — it is already loaded in full.
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.02361 $0.02361
Opus 5.5 $0.00944 $0.00944
Sonnet 5.5 $0.00472 $0.00472
Haiku 4.5 $0.00236 $0.00236

Measured 6d ago against content hash 8e1515c59a54, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

background-agents AGENTS.md 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 6d 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.

AGENTS.md · 189 lines

How it starts

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

AGENTS.md

Open-Inspect is a background coding agent system that spawns sandboxed dev environments to work on GitHub repositories. Single-tenant design. Stack: Cloudflare Workers (TypeScript), Modal (Python), Next.js (React), Terraform.

Architecture

Three tiers connected by WebSockets:

  1. Web Client (Next.js on Vercel or Cloudflare Workers via OpenNext) — UI with GitHub OAuth, session dashboard, real-time streaming
  2. Control Plane (Cloudflare Workers + Durable Objects) — session lifecycle, WebSocket hub, GitHub/auth integration. Each session is a Durable Object with SQLite storage. Uses D1 for the session index, repo metadata, environments, and encrypted secrets.
  3. Data Plane (Modal, Python) — sandboxed environments running coding agents. Manages sandbox creation, snapshots, and repository/environment image builds.

Bot integrations — all Cloudflare Workers using Hono:

  • slack-bot — Slack messages → coding sessions
  • github-bot — PR review assignments and @mention commands
  • linear-bot — Linear agent webhooks → coding sessions

Data flow: User prompt → web client → control plane DO (WebSocket) → Modal sandbox → streaming events back through the same WebSocket chain.

Package Dependency Graph

@open-inspect/shared  ←  control-plane, web, slack-bot, github-bot, linear-bot
@open-inspect/control-plane  ←  preview

Build @open-inspect/shared first whenever you change shared types. Other packages import from it at build time.

Package Overview

Package Lang / Framework Purpose
shared TypeScript Shared types, auth utilities, model definitions
control-plane TypeScript / CF Workers + DO Session management, WebSocket streaming, GitHub integration
web TypeScript / Next.js 16 + React 19 User-facing dashboard, OAuth, real-time UI
docs TypeScript / Next.js 16 + Fumadocs Public user documentation at docs.backgroundagents.dev
slack-bot TypeScript / CF Workers + Hono Slack event handler, session creation
github-bot TypeScript / CF Workers + Hono PR review and @mention webhook handler
linear-bot TypeScript / CF Workers + Hono Linear agent webhook handler
preview TypeScript / Node + Playwright Authenticated local preview of web + control plane (dev)
modal-infra Python 3.12 / Modal + FastAPI Sandbox lifecycle, WebSocket bridge to control plane

Read the full file on GitHub · 189 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. 6d ago Changed · +11 lines · +171 tokens per session 8e1515c59a54
  2. 1mo ago Changed · +6 lines · +100 tokens per session cee420d94faa
  3. 1mo ago Changed · +1 lines · +27 tokens per session 6473f31a8df7
  4. 2mo ago First seen · 171 lines · 2,063 tokens per session scan A 028ea5dd8f2f

Subscribe to this mod's changes

background-agents AGENTS.md is an instructions file published in the GitHub repository ColeMurray/background-agents (3,433 stars, last pushed 6d ago), licensed MIT. It adds 2,361 tokens to every session, about $0.0094 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-30.

Related

background-agents AGENTS.md compared with instructions from other repositories

background-agents AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
background-agents AGENTS.mdColeMurray/background-agentsInstructions file3.4k6d agoMITA2,361Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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