codex-claude-code-config: Instructions file for Claude Code

CLAUDE.md

codex-claude-code-config CLAUDE.md is an instructions file for Claude Code from AnastasiyaW/codex-claude-code-config. It costs 7,757 tokens per session, scanned A, original, MIT.

Global rules for Claude Code covering code quality, task completion, dependency safety, and handling secrets. They define how changes should be implemented and checked in a project.

In plain words
What is it for?
Use them when deciding how to structure a fix, checking code quality, handling dependencies, working with secrets, or finishing a development task.
Why use it?
They give a coding agent consistent boundaries for making minimal, reliable changes and for preventing sensitive data from reaching a public repository.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is AnastasiyaW/codex-claude-code-config's own configuration. It tells Claude Code how to work on codex-claude-code-config 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-claude-code-config configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AnastasiyaW/codex-claude-code-config. 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/AnastasiyaW/codex-claude-code-config/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/AnastasiyaW/codex-claude-code-config

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 codex-claude-code-config CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/anastasiyaw/codex-claude-code-config/claude-md.svg)](https://agentmods.dev/instructions/anastasiyaw/codex-claude-code-config/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/anastasiyaw/codex-claude-code-config/claude-md"><img src="https://agentmods.dev/badge/instructions/anastasiyaw/codex-claude-code-config/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 7,757 This file is loaded in full into every session.
When invoked 7,757 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.1 $0.07757 $0.07757
Opus 5 $0.03879 $0.03879
Sonnet 5 $0.01551 $0.01551
Haiku 4.5 $0.00776 $0.00776

Measured today against content hash dc97677a9775, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

codex-claude-code-config 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 today.

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

How it starts

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

Claude Global Rules

Core Working Rules (always-on, mechanical)

Hard user directives, codified as drop-in rules/ + mirrored on hooks:

  • rules/secrets-as-data.md -- secrets are working data, used freely; the closed Claude/Codex working chat is inside our trust boundary, so an exact credential needed for the task may be read, used, and shown here without masking; do NOT scrub tokens or nag about rotation; the only hard line is nothing leaks into a PUBLIC repo (pre-push scan). Do not dump unrelated credentials without a work need.
  • rules/quality-code.md -- code quality between two poles: no monkey-patches (don't cut corners at the cost of stability) AND no over-engineering (YAGNI ladder); sweet spot = minimal correct architecture + verify. /lean-code = on-demand intensifier (our own skill).
  • rules/finish-the-task.md -- the single work-discipline canon (6 pillars, all in one place): finish to runtime · cover all accepted branches of the current milestone · quality over token economy · difficulty is no reason to defer · fix every exact reproduced cause immediately with one minimal causal test · execute available reversible machine steps instead of telling the user to copy/paste/run them; ask only for the irreducibly human OTP/CAPTCHA/physical approval after reaching that prompt · explicit user instructions outrank skill methodology, and a skill-caused pause names the exact instruction · never block the current sufficient milestone on a future, unavailable, optional, or production-only capability unless it is an explicit current acceptance criterion or causally required for correctness/safety. Broad repeated reviews/tests are forbidden unless a concrete changed risk requires them. Enforced by stop-phrase-guard + session-handoff-*; near-overflow -> write a handoff.
  • rules/quality-over-tokens-independent-verify.md -- optimize for quality, NOT token economy; complex/irreversible work gets independent fresh-context agent verification (Generator-Evaluator).
  • rules/deletion-confirm-and-verify.md -- any deletion needs explicit unambiguous user confirmation; after a delete/copy, re-verify it actually happened. Enforced by human-confirmation-guard + verify-deleted-guard.
  • rules/autonomy-risk-tiers.md -- act WITHOUT asking on anything reversible (restarts, re-runs, config-with-backup, launching jobs); gate only the irreversible tier (DROP/DELETE, rm of non-regenerable data, force-push, prod migrations) via backup -> verify -> proceed, or wait. No "what should we do?" endings on reversible work. Enforced by stop-phrase-guard.
  • rules/no-guessing.md -- never guess: every decision rests on a verifiable source (code / probe / docs / checklist / user quote), not memory or intuition; unsure -> research or ask. High-stakes decisions get an independent fresh-context verifier.
  • rules/git-source-of-truth.md -- git is the single source of truth: everything committable gets committed and pushed; deployed == committed; only 4 classes stay out (regenerable, secrets, machine junk, heavy binaries).
  • rules/file-organization-cohesion.md -- durable artifacts go into the existing structure (repo / KB / project folder); related files stay TOGETHER, not scattered across /tmp, home root, Desktop, Downloads. Advisory hook file-cohesion-guard reminds.
  • rules/cross-harness-agents-md.md -- multi-harness projects keep canonical context in AGENTS.md (Claude Code imports it via @AGENTS.md, Gemini CLI reads it via context.fileName, Codex natively); NO symlinks; markdown briefs/handoffs are the cross-harness context currency.
  • rules/learn-from-corrections.md -- the agent learns a lesson every time the user corrects it: session-feedback-capture (Stop) auto-queues sessions, /distill-feedback extracts durable corrections into rules human-gated. Detection is LLM-semantic (a keyword detector was independently tested and rejected at held-out F1 0.42 vs 0.97). Operationalizes TRACE — compile corrections into rules, and into hooks where mechanically checkable.

Read the full file on GitHub · 477 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. today Changed · +12 lines · +172 tokens per session dc97677a9775
  2. 3d ago Changed · +81 tokens per session 66dbbe312f92
  3. 6d ago First seen · 465 lines · 7,504 tokens per session scan A c991f35f5378

Subscribe to this mod's changes

codex-claude-code-config CLAUDE.md is an instructions file published in the GitHub repository AnastasiyaW/codex-claude-code-config (149 stars, last pushed today), licensed MIT. It adds 7,757 tokens to every session, about $0.0388 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

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens