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.
npx agentmods add instructions/ghostwriternr/claude-code-containers/claude-mdgit clone --depth 1 https://github.com/ghostwriternr/claude-code-containersWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01566 | $0.01566 |
| Opus 5 | $0.00783 | $0.00783 |
| Sonnet 5 | $0.00313 | $0.00313 |
| Haiku 4.5 | $0.00157 | $0.00157 |
Grade A, and why
claude-code-containers CLAUDE.md scanned grade A 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> { How it starts
The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Development Commands
npm run dev # Start local development server (http://localhost:8787)
npm run deploy # Deploy to Cloudflare Workers
npm run cf-typegen # Generate TypeScript types after wrangler config changes
⚠️ Important: Always run npm run cf-typegen after making changes to wrangler.jsonc. This regenerates the TypeScript types and updates worker-configuration.d.ts to match your bindings and configuration.
Wrangler CLI Commands
npx wrangler dev # Start local development (same as npm run dev)
npx wrangler dev --remote # Use remote Cloudflare resources
npx wrangler deploy # Deploy to production (same as npm run deploy)
npx wrangler login # Authenticate with Cloudflare
npx wrangler versions upload # Upload new version with preview URL
Tech Stack & Architecture
This is a Cloudflare Workers Container project that integrates Claude Code with GitHub for automated issue processing. It combines:
- TypeScript Worker (
src/index.ts) - Main request router and GitHub integration - Node.js Container (
container_src/src/main.ts) - Containerized Claude Code environment running on port 8080 - Durable Objects - Two DO classes:
GitHubAppConfigDOfor encrypted credential storage andMyContainerfor container management
Key Architecture Points
Request Flow:
- Worker receives requests and routes based on path
- GitHub webhooks trigger issue processing in Claude Code containers
- Container routes (
/container,/lb,/singleton,/error) for testing and load balancing - Setup routes (
/claude-setup,/gh-setup/*) handle API key configuration and GitHub app OAuth
Container Management:
- Extends
cf-containerslibrary'sContainerclass - Default port 8080, 45-second sleep timeout
- Lifecycle hooks:
onStart(),onStop(),onError() - Load balancing support across multiple container instances
- Contains Claude Code SDK (
@anthropic-ai/claude-code) and GitHub API client (@octokit/rest)
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.
- 2d ago First seen · 161 lines · 1,566 tokens per session scan A 2d69ac97e3df
claude-code-containers CLAUDE.md is an instructions file published in the GitHub repository ghostwriternr/claude-code-containers (244 stars, last pushed 1y ago), licensed MIT. It adds 1,566 tokens to every session, about $0.0078 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
apex-accelerator iac-bicep-best-practices.instructions.md
Bicep-specific IaC best practices for Azure templates. Security baseline, naming, AVM mandate, anti-patterns.
awsmux AGENTS.md
Instructions for 0hardik1/awsmux, covering agents.md, what awsmux is, build, test, verify, layout and the safety model — invariants you must not weaken.
terraform-provider-pipefy AGENTS.md
Instructions for pipefy/terraform-provider-pipefy, covering agents.md, project overview, setup and requirements, essential commands and project layout.
plan-forge azd.instructions.md
Azure Developer CLI (azd) patterns — azure.yaml structure, infra folder, tags, hooks, pipelines.
plan-forge terraform.instructions.md
Terraform Azure patterns — file structure, providers, state, naming, security, testing.
plan-forge naming.instructions.md
Azure naming conventions — Microsoft CAF abbreviations, constraints, uniqueness, tagging.