Borrowing it
Nothing to install: this file belongs to qaml-ai/camelAI. 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/qaml-ai/camelAI/main/AGENTS.mdgit clone --depth 1 https://github.com/qaml-ai/camelAIWrote 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/qaml-ai/camelai/agents-md)<a href="https://agentmods.dev/instructions/qaml-ai/camelai/agents-md"><img src="https://agentmods.dev/badge/instructions/qaml-ai/camelai/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.
<a href="https://agentmods.dev/instructions/qaml-ai/camelai/agents-md"><img src="https://agentmods.dev/badge/instructions/qaml-ai/camelai/agents-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.12856 | $0.12856 |
| Opus 5.5 | $0.05142 | $0.05142 |
| Sonnet 5.5 | $0.02571 | $0.02571 |
| Haiku 4.5 | $0.01286 | $0.01286 |
Grade A, and why
camelAI AGENTS.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 23d 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.
curl "https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/analytics_engine/sql" \ How it starts
The opening of the file, as written. The whole thing — 408 lines — stays where its author put it; the contents beside it link to each section on GitHub.
camelAI Agent Guide
Keep this file concise and durable. Add details here only when they help future agents navigate the repo or avoid common mistakes. Feature-specific behavior should usually live near the code or in tests.
What This Is
camelAI is an AI coding assistant platform on Cloudflare Workers + Durable Objects with Cloudflare sandbox containers for builds/analysis. Users chat with persistent coding workspaces; each thread runs camelAI's pi-based coding harness in ChatThreadDO, and generated apps publish to *.camelai.app / environment-specific app hosts.
High-Level Architecture
React Router SSR + browser WS
|
v
Cloudflare main Worker + Durable Objects
|
v
Project files in WorkspaceFilesystemDO + R2 (do-r2 backend)
Builds/deploys + analysis in Cloudflare sandbox containers
Dispatcher Worker routes published user apps.
R2 stores uploads/assets/previews.
Cloudflare AI Gateway and BYOK credentials back model access.
Agent turns run in ChatThreadDO (Pi coding agent). Project source files live
in WorkspaceFilesystemDO + R2 (every project is backend: "do-r2"); builds,
deploys, and analysis run in Cloudflare sandbox containers (ProjectBuildContainer,
AnalysisContainer, DbQueryContainer). The legacy Azure project-runtime-service VM
and its PROJECT_RUNTIME_HOST bridge are gone; the only remaining VM is the
static-IP database egress relay (infra/db-egress-relay/, see docs/db-egress-relay.md).
SQL queries/exports run in DbQueryContainer (the DATA_PROXY binding is served
worker-side). There is no in-repo Go sandbox-host or data-proxy tree.
Repository Map
src/- React Router 7 app, routes, loaders/actions, UI components, shared server/client libraries.src/routes.ts- Imperative React Router route config. Add page/API routes here.src/routes/api/- React Router API routes for most user-facing REST (billing checkout, workspaces, chat groups, etc.).src/components/ui/- shadcn/ui components.workers/main/- Main Cloudflare Worker, Durable Objects, HTTP/SSE transports, admin MCP, admin APIs, proxies, container image Dockerfiles.workers/main/src/identity/-UserDO/OrgDOand related identity helpers (auth.tsis a compatibility barrel).workers/main/src/routes/- Worker-native HTTP (SSE streams, Stripe webhook, admin MCP, most/api/admin/*on Hono). Prefer documenting new paths here vssrc/routes/api/— see API routing below.workers/dispatcher/- Workers for Platforms dispatcher for deployed user apps.workers/app-usage-guard/- Account-wide Durable Object SQLite usage monitor and reversible app quarantine Worker; seedocs/deployed-app-usage-guard-design.md.workers/user-logs-tail/- Tail worker for deployed app logs.workers/e2e-reports/- Public viewer ate2e-reports.camelai.devserving Playwright E2E reports from R2 (uploaded by the E2E workflow); deploy withbun run deploy:e2e-reports.workers/eval-reports/- Read-only results store + viewer for agent evals atevals.camelai.dev(evals run locally;EVAL_REPORT=1publishes them); deploy withbun run deploy:eval-reports.- The Go data-proxy (external
qaml-ai/project-runtime-servicecmd/data-proxy) is retired: SQL queries and warehouse exports now run in theDbQueryContainerCloudflare container (workers/main/src/db-query-service.ts+data-proxy.tscompat surface), and theSANDBOX_HOSTVPC binding is gone. Do not reintroduce either. Decommission checklist:docs/db-egress-relay.md. sandbox/- Agent skills, project scaffold templates (create-worker/), and the canonicalvalidate-notebook.py(byte-copied intoworkers/main/analysis-sandbox-assets/for the analysis image build context). Not the agent control plane or harness — those live inworkers/main(chat-thread-do.ts, Pi tools, Dockerfiles).scripts/- Deploy, eval, self-host, and maintenance scripts.docs/- Supporting documentation; seedocs/README.mdfor the canonical index (many*-plan.md/ feedback files are historical).plans/- Active cross-cutting architecture plans (e.g. OrgDO split, no-VM build/deploy).infra/- Terraform for the static-IP database egress relay VM (infra/db-egress-relay/);infra/selfhost/for self-host cloud templates. Seeinfra/README.md.tests/- Vitest UI /src/libunit tests (vitest.config.ts).workers/main/tests/- Worker / Durable Object / Miniflare tests +evals/(vitest.workers.config.ts).e2e/- Playwright end-to-end specs..agents/skills/- Agent skills for this repo (evals and shadcn).
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.
- 23d ago Changed · -636 tokens per session scan B → A eb3441c19088
- 24d ago Changed · +6 lines · +485 tokens per session scan A → B 9ef49bf60cbf
- 25d ago Changed · +4 lines · +519 tokens per session 507f91750ca5
- 26d ago Changed · +1 lines · +227 tokens per session d7145a8a9753
- 27d ago Changed · -2 lines · -6 tokens per session ed463241cc7f
- 1mo ago Changed · +2 lines · -113 tokens per session d232f2ff31b7
- 1mo ago Changed · +3 lines · +1,228 tokens per session efa4dd343b7d
- 1mo ago First seen · 394 lines · 11,152 tokens per session scan A f9a09873dda1
camelAI AGENTS.md is an instructions file published in the GitHub repository qaml-ai/camelAI (390 stars, last pushed today), licensed MIT. It adds 12,856 tokens to every session, about $0.0514 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.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).