codex-claw: Instructions file for Codex

AGENTS.md

codex-claw AGENTS.md is an instructions file for Codex, OpenCode from slashdevcorpse/codex-claw. It costs 805 tokens per session, scanned A, original, MIT.

A project-specific instruction guide for coding agents working on the CodexClaw app. It documents the app structure, commands, coding conventions, file naming, routing, and styling rules.

In plain words
What is it for?
Use it when developing the React app to find development, build, test, lint, formatting, routing, and style guidance.
Why use it?
It gives an agent the project’s local expectations so changes fit the existing codebase and can be checked with the project’s commands.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 codex-claw AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/slashdevcorpse/codex-claw/agents-md"><img src="https://agentmods.dev/badge/instructions/slashdevcorpse/codex-claw/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 805 This file is loaded in full into every session.
When invoked 805 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.00805 $0.00805
Opus 5.5 $0.00322 $0.00322
Sonnet 5.5 $0.00161 $0.00161
Haiku 4.5 $0.00081 $0.00081

Measured 2mo ago against content hash 7dfc1c722627, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex-claw 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 2mo 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 · 64 lines

How it starts

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

AGENTS

Overview

CodexClaw app lives in apps/codex-claw and is built with React + TanStack Router + Tailwind CSS v4.

Commands

  • pnpm -C apps/codex-claw dev — Start development server
  • pnpm -C apps/codex-claw build — Build for production
  • pnpm -C apps/codex-claw preview — Preview production build
  • pnpm -C apps/codex-claw test — Run tests
  • pnpm -C apps/codex-claw lint — Run ESLint
  • pnpm -C apps/codex-claw format — Run Prettier
  • pnpm -C apps/codex-claw check — Format and lint fix

Conventions

Code Style

  • Functions: Always use the function keyword. Avoid const for function definitions.
  • Types: Always use type T = { ... }. Do not use interface.
  • File Naming: Use kebab-case for all files (e.g., chat-screen.tsx, use-session.ts).
  • NEVER use useEffect for anything that can be expressed as render logic
  • MUST use cn utility (clsx + tailwind-merge) for class logic

Routing & Structure

  • Routes live in apps/codex-claw/src/routes using TanStack file routing.
  • Global styles and CSS variables live in apps/codex-claw/src/styles.css.
  • Local environment values go in apps/codex-claw/.env.local.

UI & Styling

  • Typography: Never use font weights bolder than font-medium. Apply small negative tracking (tracking-tight or similar) on main titles.
  • Colors:
    • Use the custom Tailwind palette (e.g., bg-primary-50, text-primary-900).
    • Never use arbitrary color values.
    • Avoid bg-white, bg-black, text-white, text-black, and outline-black; use primary palette tokens instead.
  • Markdown Titles: Avoid top margin on markdown headings.
  • MUST use text-balance for headings and text-pretty for body/paragraphs
  • MUST use tabular-nums for data
  • SHOULD use truncate or line-clamp for dense UI
  • NEVER modify letter-spacing (tracking-*) unless explicitly requested
  • MUST use a fixed z-index scale (no arbitrary z-*)
  • SHOULD use size-_ for square elements instead of w-_ + h-*
  • Icons:
    • All icons should use size={20} and strokeWidth={1.5} consistently
  • React 19 Refs: Use regular function components with direct ref passing instead of React.forwardRef (React 19 supports refs as regular props)

Read the full file on GitHub · 64 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. 2mo ago First seen · 64 lines · 805 tokens per session scan A 7dfc1c722627

Subscribe to this mod's changes

codex-claw AGENTS.md is an instructions file published in the GitHub repository slashdevcorpse/codex-claw (1 stars, last pushed 3mo ago), licensed MIT. It adds 805 tokens to every session, about $0.0032 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-31.

Related

codex-claw AGENTS.md compared with instructions from other repositories

codex-claw AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-claw AGENTS.mdslashdevcorpse/codex-clawInstructions file13mo agoMITA805Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot