ClawAI CLAUDE.md

ClawAI CLAUDE.md is an instructions file for coding agents from ihabkhaled/ClawAI. It costs 4,872 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

Install

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.

agentmods
npx agentmods add instructions/ihabkhaled/clawai/claude-md
Clone the repo
git clone --depth 1 https://github.com/ihabkhaled/ClawAI

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,872 This file is loaded in full into every session.
When invoked 4,872 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.04872 $0.04872
Opus 5 $0.02436 $0.02436
Sonnet 5 $0.00974 $0.00974
Haiku 4.5 $0.00487 $0.00487

Measured yesterday against content hash 385410530909, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 · 246 lines

How it starts

The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ClawAI — root policy

Canonical entry point for every agent. This file is an index, not a mirror: it carries only what you need before you know what you are doing, plus links to the canonical body for everything else. Rule bodies live in rules/, runbooks in skills/, structural maps in context/, narrative in docs/.

It was 2,595 lines and 167 kB, which spent a large slice of every agent's context window on every task and drifted out of step with the rules/ files it duplicated. Nothing was deleted — each section below links to the canonical home its content moved to.

Identity

Local-first AI orchestration platform. 18 NestJS services + Next.js 16 frontend + 6 shared packages (npm workspaces). 14 PostgreSQL (pgvector) + MongoDB + Redis + RabbitMQ (claw.events, topic exchange) + Ollama. Nginx terminates TLS on 443 and proxies /api/v1/* to services on 4001–4018.

Details: context/architecture-map.md · context/service-catalog.md · context/workspace-map.md · context/port-and-service-map.md

Authority hierarchy (higher wins on conflict)

  1. This file
  2. rules/00-non-negotiable-rules.md — the blockers
  3. context/architecture-map.md + context/stack-and-toolchain.md
  4. Numbered rules/*skills/*context/* + memory/*
  5. Generated .ai/manifests/*
  6. Compact per-tool routers (CODEX.md, cursor.md, GEMINI.md, KIMI.md, GLM.md, QWEN.md, DEEPSEEK.md, MISTRAL.md, AGENTS.md, .cursorrules)

See ADR-055 and ADR-058.

First command, always

npm run knowledge:context -- --task="<what you are doing>"

Then read .ai/local/current-context.md. It resolves the affected workspaces, governing rules, matching skills, reviewers, related events/permissions/env vars, and known pitfalls for your specific task. Compact bootstrap: .ai/BOOTSTRAP.md.

Read the full file on GitHub · 246 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. yesterday Changed · +2 lines · +156 tokens per session 385410530909
  2. 5d ago First seen · 244 lines · 4,716 tokens per session scan A f4aa02bba596

Subscribe to this mod's changes

ClawAI CLAUDE.md is an instructions file published in the GitHub repository ihabkhaled/ClawAI (22 stars, last pushed today), licensed Apache-2.0. It adds 4,872 tokens to every session, about $0.0244 per session on Opus 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

Other instructions, from other repositories