clawhub: Instructions file for Codex

AGENTS.md

clawhub AGENTS.md is an instructions file for Codex, OpenCode from openclaw/clawhub. It costs 1,950 tokens per session, scanned A, original, MIT.

Repository instructions for contributing to ClawHub, covering its project structure, development commands, coding style, tests, and where to record design decisions.

In plain words
What is it for?
Use them when modifying the TanStack Start app, Convex backend, documentation, specifications, or generated files in ClawHub.
Why use it?
They give coding agents and developers the project-specific rules needed to make changes that fit the repository.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Codex; built for openclaw.

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

About the project

ClawHub is a public registry where OpenClaw users publish, version, search, and install text-based agent skills and OpenClaw packages. It provides web browsing, a CLI-oriented API, moderation, vector search, and artifact hosting for code plugins, bundle plugins, and experimental whole-agent packages. The catalogue skills and agents are entries that can be discovered or used through this registry.

openclaw/clawhub · 9,547 stars · on GitHub · clawhub.ai

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/openclaw/clawhub/agents-md"><img src="https://agentmods.dev/badge/instructions/openclaw/clawhub/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,950 This file is loaded in full into every session.
When invoked 1,950 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.01950 $0.01950
Opus 5.5 $0.00780 $0.00780
Sonnet 5.5 $0.00390 $0.00390
Haiku 4.5 $0.00195 $0.00195

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

Security

Grade A, and why

clawhub AGENTS.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 9d 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.

AGENTS.md · 104 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

  • src/ — TanStack Start app code (routes, components, styles).
  • convex/ — Convex backend (schema, queries/mutations/actions, HTTP routes).
  • convex/_generated/ — generated Convex API/types; committed for builds.
  • docs/ — publishable public/operator docs for the ClawHub docs tab.
  • specs/ — product specs, plans, regression notes, design history (see specs/spec.md).
  • public/ — static assets.

Logo assets

For OpenClaw and OpenClaw Foundation logos, see the brand kit.

Durable Intent & Specs

  • Use specs/ to persist system/subsystem intent, invariants, and design rationale that future agents should preserve.
  • Keep intended behavior for security-sensitive flows there, especially moderation, upload gating, scanner outcomes, appeals, bans, ownership, package installability, and API trust boundaries.
  • If code changes reveal or change how a subsystem is supposed to work, update the relevant spec or add a focused spec note instead of burying the intent only in PR text or public docs.
  • Keep docs/ user/operator-facing: explain current behavior and commands there, but put internal “why this must work this way” context in specs/.

Build, Test, and Development Commands

Keep this section as the command map agents normally need, not a full package.json script index.

  • bun run dev — foreground local app server at http://localhost:3000.
  • bunx convex dev --typecheck=disable — local Convex backend/function watcher for manual setup.
  • bunx convex codegen — regenerate convex/_generated after Convex API/schema changes.
  • .worktreeinclude — Codex-managed worktrees copy ignored local state (.env.local, .convex/, and node_modules/) from the local checkout at creation time.
  • bun run setup:worktree — validate copied .env.local / .convex state, or link missing fallback state from a usable source worktree. Use -- --from <path> or CLAWHUB_WORKTREE_SOURCE=<path> when auto-discovery picks the wrong source.
  • bun run dev:worktree — Worktrunk-managed detached worktree server that also seeds local fixtures plus the public corpus once before starting the app when VITE_CONVEX_URL and CONVEX_DEPLOYMENT are local. Requires wt on PATH; from that worktree use wt --yes url to print the branch URL and wt --yes stop to stop it.
  • bun run seed:dev — manual reseed path; runs worktree setup, waits for local Convex, seeds local fixtures plus the public corpus, and refreshes stats.
  • bun run seed — shared non-production seed pipeline used by local setup and disposable PR previews after their target Convex deployment is ready.
  • bun run build — production build (Vite + Nitro).
  • bun run ci:static — required pre-handoff static gate: peer checks, audit, formatting, lint, and dead-code checks.
  • bun run ci:unit — Vitest coverage gate; required for source/test PRs unless docs/config-only.
  • bun run ci:types-build — full TypeScript/build gate for app, Convex, and packages.
  • bun run ci:packages — schema, CLI, and moderation package verification.
  • bun run ci:e2e-http — secretless HTTP and CLI e2e subset.
  • bun run ci:playwright-smoke — chromium smoke against the public read backend.
  • bun run test:pw:local-auth — local Convex/dev-auth browser gate for signed-in/write flows.

Read the full file on GitHub · 104 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. 9d ago Changed · +4 lines · +37 tokens per session 771e41d87b6f
  2. 23d ago Changed 6a3b123534da
  3. 1mo ago Changed · +6 lines · +60 tokens per session 05d943594f2b
  4. 1mo ago Changed · +9 tokens per session f75423b88be6
  5. 1mo ago Changed · +2 lines · +99 tokens per session fffc938622c5
  6. 2mo ago First seen · 92 lines · 1,745 tokens per session scan A 79c7311f8c87

Subscribe to this mod's changes

clawhub AGENTS.md is an instructions file published in the GitHub repository openclaw/clawhub (9,547 stars, last pushed today), licensed MIT. It adds 1,950 tokens to every session, about $0.0078 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-09-03.

Related

clawhub AGENTS.md compared with instructions from other repositories

clawhub AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clawhub AGENTS.mdopenclaw/clawhubInstructions file9.5ktodayMITA1,950Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode