Borrowing it
Nothing to install: this file belongs to ghostwriternr/claude-code-containers. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ghostwriternr/claude-code-containers/main/CLAUDE.mdgit clone --depth 1 https://github.com/ghostwriternr/claude-code-containersWrote 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.
[](https://agentmods.dev/instructions/ghostwriternr/claude-code-containers/claude-md)<a href="https://agentmods.dev/instructions/ghostwriternr/claude-code-containers/claude-md"><img src="https://agentmods.dev/badge/instructions/ghostwriternr/claude-code-containers/claude-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.
<a href="https://agentmods.dev/instructions/ghostwriternr/claude-code-containers/claude-md"><img src="https://agentmods.dev/badge/instructions/ghostwriternr/claude-code-containers/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01566 | $0.01566 |
| Opus 5.5 | $0.00626 | $0.00626 |
| Sonnet 5.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 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.
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.
- 2mo 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 (245 stars, last pushed 1y ago), licensed MIT. It adds 1,566 tokens to every session, about $0.0063 per session on Opus 5.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.
claude-code-containers CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| claude-code-containers CLAUDE.mdghostwriternr/claude-code-containers | Instructions file | 245 | 1y ago | MIT | A | 1,566 | Claude Code |
| plan-forge naming.instructions.mdsrnichols/plan-forge | Instructions file | 6 | 2d ago | MIT | A | 1,453 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |