ClawAI: Instructions file for Claude Code

CLAUDE.md

ClawAI CLAUDE.md is an instructions file for Claude Code from ihabkhaled/ClawAI. It costs 3,190 tokens per session, scanned A, original, Apache-2.0.

Root repository instructions for ClawAI, an AI orchestration platform made of backend services, a web interface, and shared packages.

In plain words
What is it for?
Use them at the beginning of ClawAI work to understand instruction priority, find project context, and route tasks to the right documentation.
Why use it?
They provide the starting point and direct agents to the authoritative rules and architecture documents instead of duplicating them.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

This is ihabkhaled/ClawAI's own configuration. It tells Claude Code how to work on ClawAI 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 ClawAI configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/ihabkhaled/ClawAI/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/ihabkhaled/ClawAI

Made for: Claude Code.

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 ClawAI CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ihabkhaled/clawai/claude-md/github.svg)](https://agentmods.dev/instructions/ihabkhaled/clawai/claude-md)
Your own site
<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.

agentmods 80×15 button for ClawAI CLAUDE.md

Your own site · 80×15
<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>
Per session 3,190 This file is loaded in full into every session.
When invoked 3,190 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.03190 $0.03190
Opus 5.5 $0.01276 $0.01276
Sonnet 5.5 $0.00638 $0.00638
Haiku 4.5 $0.00319 $0.00319

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

Security

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.

CLAUDE.md · 171 lines

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. Read QA-WORKFLOW.md and rules/60 first.

Akinator runs on every change, with no command (rule 65). The plugin is optional: the in-repo skills/akinator/SKILL.md is the source. A new flagship or big feature ships its public marketing page in the same change (rule 66).

Read order for a task

  1. npm run knowledge:context -- --task="<task>", then .ai/local/current-context.md.
  2. rules/00-non-negotiable-rules.md.
  3. The rules and skills the context file names; the touched workspace's own CLAUDE.md and generated AGENTS.md.
  4. 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 a Docs: trailer (rules/63).
  • A push whose pre-push runs for minutes can lose its connection and exit 141 after printing pre-push OK. Run npm run gates:receipt first: it proves the tree once and the push then skips those gates. Always check the push's real exit code and git 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 or xhigh/max effort 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, then npm run affected:shared-build and npm run prisma:generate --workspaces --if-present before trusting a gate. Never commit while a background agent writes in the same tree.
  • Never --no-verify or any other hook bypass (ADR-061).

Read the full file on GitHub · 171 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. 5d ago Changed · +22 lines · +544 tokens per session e74a9e86e908
  2. 22d ago Changed · +2 lines · +34 tokens per session 1a93c0c6348f
  3. 23d ago Changed · -141 lines · -4,431 tokens per session 29184233073b
  4. 1mo ago Changed · +1 lines · +214 tokens per session 7585c52af63f
  5. 1mo ago Changed · +14 lines · +656 tokens per session 731f5ba94528
  6. 1mo ago Changed · +4 lines · +175 tokens per session 54ea7abb1eda
  7. 1mo ago Changed · +1 lines · +70 tokens per session c7c6d4f6b102
  8. 1mo ago Changed · +1 lines · +68 tokens per session 45af22e8137f
  9. 1mo ago Changed · +1 lines · +93 tokens per session 3728631117bd
  10. 1mo ago First seen · 266 lines · 5,767 tokens per session scan A 05a9a0824fb9

Subscribe to this mod's changes

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.

Related

ClawAI CLAUDE.md compared with instructions from other repositories

ClawAI CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ClawAI CLAUDE.mdihabkhaled/ClawAIInstructions file243d agoApache-2.0A3,190Claude Code
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