clawdi: Instructions file for Codex

AGENTS.md

clawdi AGENTS.md is an instructions file for Codex, OpenCode from Clawdi-AI/clawdi. It costs 1,755 tokens per session, scanned A, original, MIT.

A set of repository instructions for Clawdi-AI/clawdi, an open-source system for running AI agents with a command-line tool, backend, dashboard, and communication adapters.

In plain words
What is it for?
Use it when developing, documenting, testing, or running the Clawdi repository locally.
Why use it?
It helps an agent understand the repository structure, ownership boundaries, required documentation, and local setup steps before making changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is Clawdi-AI/clawdi's own configuration. It tells Codex and OpenCode how to work on clawdi 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 clawdi configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Clawdi-AI/clawdi. 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/Clawdi-AI/clawdi/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Clawdi-AI/clawdi

Made for: Codex, OpenCode.

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 clawdi AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/clawdi-ai/clawdi/agents-md/github.svg)](https://agentmods.dev/instructions/clawdi-ai/clawdi/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/clawdi-ai/clawdi/agents-md"><img src="https://agentmods.dev/badge/instructions/clawdi-ai/clawdi/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.

agentmods 80×15 button for clawdi AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/clawdi-ai/clawdi/agents-md"><img src="https://agentmods.dev/badge/instructions/clawdi-ai/clawdi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,755 This file is loaded in full into every session.
When invoked 1,755 The same file — it is already loaded in full.
Security scan A 1 finding. 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.01755 $0.01755
Opus 5.5 $0.00702 $0.00702
Sonnet 5.5 $0.00351 $0.00351
Haiku 4.5 $0.00176 $0.00176

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

Security

Grade A, and why

clawdi 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 20d 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.

Done: `curl -sS http://localhost:8000/health` returns `{"status":"ok"}`.
AGENTS.md · 236 lines

How it starts

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

Clawdi

The best home for all your AI agents. Run them in the cloud or connect your own—with their context and tools in one place. This repository contains the CLI, FastAPI backend, TanStack dashboard, shared types, agent adapters, channels, and sync.

Maintain agent-facing repository docs with docs/agent-docs-guide.md.

OSS Boundary

Hosted infrastructure is owned outside this repo by first-party hosted control planes. Do not add hosted service runbooks, private addresses, or internal deployment details here.

Repository Map

apps/web/          TanStack Start dashboard
backend/           FastAPI backend, async PostgreSQL, Alembic
packages/cli/      TypeScript/Bun CLI, adapters, MCP stdio server
packages/shared/   Shared types, constants, generated API client
packages/whatsapp-baileys-sidecar/  WhatsApp Baileys sidecar package
docs/              Contributor docs, ADRs, plans, scenarios

For architecture and ownership, read docs/architecture.md.

Local End-to-End

Install dependencies once:

bun install

Install Git hooks once from the main checkout, after installing dependencies:

bunx lefthook install

Do not run that command from a worktree: all worktrees share .git/hooks. Dependency installation leaves hooks untouched; the explicit trustedDependencies list excludes lefthook's automatic postinstall. See Bun lifecycle scripts and Lefthook installation.

Done: bun install in a worktree preserves the shared hook files.

Terminal 1, backend:

docker compose up -d postgres
cd backend
cp .env.example .env
uv sync
python3 - <<'PY'
import secrets
for name in ("VAULT_ENCRYPTION_KEY", "ENCRYPTION_KEY", "ADMIN_API_KEY"):
    print(f"{name}={secrets.token_hex(32)}")
PY

Set those three generated values in backend/.env. Also set:

DEV_AUTH_BYPASS=true
DEV_AUTH_TOKEN=dev-bypass
CLERK_JWT_ISSUER=https://dev-local.clerk.accounts.dev

Read the full file on GitHub · 236 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. 20d ago Changed · +14 lines · +117 tokens per session 80bc8905a986
  2. 21d ago Changed · +3 lines · +34 tokens per session 184dede429db
  3. 25d ago Changed · +1 lines · +6 tokens per session 68681e2fdbb3
  4. 1mo ago First seen · 218 lines · 1,598 tokens per session scan A 56f1f9b62b97

Subscribe to this mod's changes

clawdi AGENTS.md is an instructions file published in the GitHub repository Clawdi-AI/clawdi (104 stars, last pushed yesterday), licensed MIT. It adds 1,755 tokens to every session, about $0.0070 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.

Related

Other instructions, from other repositories