Borrowing it
Nothing to install: this file belongs to ihabkhaled/ClawAI. 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/ihabkhaled/ClawAI/main/CLAUDE.mdgit clone --depth 1 https://github.com/ihabkhaled/ClawAIWrote 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/ihabkhaled/clawai/claude-md)<a href="https://agentmods.dev/instructions/ihabkhaled/clawai/claude-md"><img src="https://agentmods.dev/badge/instructions/ihabkhaled/clawai/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/ihabkhaled/clawai/claude-md"><img src="https://agentmods.dev/badge/instructions/ihabkhaled/clawai/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.03190 | $0.03190 |
| Opus 5.5 | $0.01276 | $0.01276 |
| Sonnet 5.5 | $0.00638 | $0.00638 |
| Haiku 4.5 | $0.00319 | $0.00319 |
Grade A, and why
ClawAI CLAUDE.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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ClawAI — Claude Code notes
Start at AGENTS.md. It is the canonical router for every agent:
identity, authority order, first command, how a change lands, the absolute
prohibitions and where everything lives. This file adds only what is specific to
working in Claude Code, plus a compact index
(ADR-170).
Before you finish any change, update every doc it makes stale (rule 63). The hooks will reject it otherwise.
Testing is not optional. Before any change is called done, walk all 15 QA lanes and record them in
docs/qa-evidence/<date>-<slug>.md(npm run qa:evidence:new). CI rejects a feat/fix push without a valid record. ReadQA-WORKFLOW.mdand rules/60 first.
Akinator runs on every change, with no command (rule 65). The plugin is optional: the in-repo
skills/akinator/SKILL.mdis the source. A new flagship or big feature ships its public marketing page in the same change (rule 66).
Read order for a task
npm run knowledge:context -- --task="<task>", then.ai/local/current-context.md.rules/00-non-negotiable-rules.md.- The rules and skills the context file names; the touched workspace's own
CLAUDE.mdand generatedAGENTS.md. - Work arriving as a document (prompt pack, plan, brief): rules/26 before any code.
Working in Claude Code
- Land through the hooks.
git add <explicit paths>→git commit→git push. The hooks gate the change for its type (rules/23 gate matrix); do not pre-run the same gates by hand. Every commit carries aDocs:trailer (rules/63). - A push whose pre-push runs for minutes can lose its connection and exit 141
after printing
pre-push OK. Runnpm run gates:receiptfirst: it proves the tree once and the push then skips those gates. Always check the push's real exit code andgit log origin/<branch>..HEAD, never a summary. - Background only long jobs, announce them in one line, and read their real exit code. Never edit files that a running hook or test run is reading.
- Subagents: foreground by default, each with a stated scope and explicit file ownership (rules/48 item 10). Small work: at most two at once. Large work: hire as many as there are independent parts, split big parts into sub-agents, one owner per shared file (locales, adr-index, package.json and lockfile, generated files), agents never run git, and the lead integrates, gates and commits in batches. Agents editing one tree without ownership contaminate each other's gates.
- Subagent models, every agent and tool (rules/64,
skill): Haiku 5.5 for read-only work
(audit, read, gain context); the main model (or
sonnet/opus) for writing code and for Playwright, manual, API and automation QA, never Haiku there; gates climb Haiku 5.5 → Sonnet 5.5 → Sonnet 5.5 high effort → Opus 5.5 low/medium effort, only on a real failure; never Fable-class models orxhigh/maxeffort as subagents; unsure or confused: ask the owner (<Model X> at <effort> failed on <gate>: <error>. Try <Model Y> at <effort Z>?). - Fresh worktree:
npm ci, thennpm run affected:shared-buildandnpm run prisma:generate --workspaces --if-presentbefore trusting a gate. Never commit while a background agent writes in the same tree. - Never
--no-verifyor any other hook bypass (ADR-061).
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.
- 5d ago Changed · +22 lines · +544 tokens per session e74a9e86e908
- 22d ago Changed · +2 lines · +34 tokens per session 1a93c0c6348f
- 23d ago Changed · -141 lines · -4,431 tokens per session 29184233073b
- 1mo ago Changed · +1 lines · +214 tokens per session 7585c52af63f
- 1mo ago Changed · +14 lines · +656 tokens per session 731f5ba94528
- 1mo ago Changed · +4 lines · +175 tokens per session 54ea7abb1eda
- 1mo ago Changed · +1 lines · +70 tokens per session c7c6d4f6b102
- 1mo ago Changed · +1 lines · +68 tokens per session 45af22e8137f
- 1mo ago Changed · +1 lines · +93 tokens per session 3728631117bd
- 1mo ago First seen · 266 lines · 5,767 tokens per session scan A 05a9a0824fb9
ClawAI CLAUDE.md is an instructions file published in the GitHub repository ihabkhaled/ClawAI (24 stars, last pushed 3d ago), licensed Apache-2.0. It adds 3,190 tokens to every session, about $0.0128 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.
ClawAI CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ClawAI CLAUDE.mdihabkhaled/ClawAI | Instructions file | 24 | 3d ago | Apache-2.0 | A | 3,190 | Claude Code |
| 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 |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |