fak: Instructions file for Claude Code

CLAUDE.md

fak CLAUDE.md is an instructions file for Claude Code from anthony-chaudhary/fak. It costs 1,997 tokens per session, scanned A, original, Apache-2.0.

A Claude Code instruction file that points to the canonical fak agent rules and lists important contribution constraints.

In plain words
What is it for?
Guiding Claude Code when working on fak and its documentation or source files.
Why use it?
It helps Claude Code follow the repository's required workflow instead of treating it like an unrestricted codebase.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is anthony-chaudhary/fak's own configuration. It tells Claude Code how to work on fak 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 fak configures →

Reuse

Borrowing it

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

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 fak CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/anthony-chaudhary/fak/claude-md"><img src="https://agentmods.dev/badge/instructions/anthony-chaudhary/fak/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,997 This file is loaded in full into every session.
When invoked 1,997 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.01997 $0.01997
Opus 5.5 $0.00799 $0.00799
Sonnet 5.5 $0.00399 $0.00399
Haiku 4.5 $0.00200 $0.00200

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

Security

Grade A, and why

fak 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 1mo 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.

CLAUDE.md · 82 lines

How it starts

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

CLAUDE.md

Not the human contributor guide. This file is operating instructions for automated contributors working inside the maintainers' shared checkout. Humans want README.md for what fak is and CONTRIBUTING.md for how to contribute; nothing on this page applies to you.

The canonical instructions

The canonical agent instructions for this repo are in AGENTS.md — read it first for build/test/run, the repo map, and the rules.

The six hard rules

The six that will bite you if you skip them:

  • Work directly on the trunk (main). Never open a feature branch or new worktree — the trunk guard refuses off-trunk commits (OFF_TRUNK). The one sanctioned exception is a detached per-worker worktree that lands its diff back on main via fak worktree worker prepare|land|reap (build isolation, #1334 / epic #3165): because it is detached (never a branch) and commits only through the serialized land under the worker's lane lease, it is not off-trunk and never trips OFF_TRUNK. Feature branches and any other off-trunk commit stay forbidden. (Details in AGENTS.md.)
  • Commit via fak commit --path or fak sweep by explicit path — all commits must be made via fak commit --path <p> -m "<subject> (fak <leaf>)" or fak sweep --apply --lane <lane> -m "<subject>". fak commit locks the lane, stages exactly your paths, provides automatic DCO sign-off (with -s accepted for compatibility), and verifies that no peer files were raced in (PATHSPEC_RACE). End every ship commit's Conventional-Commits subject with a bindable (fak <leaf>) trailer so the dos verify referee can bind it — e.g. fix(gateway): treat same-tick ready as positive (fak gateway). A bare un-stamped subject stays NOT_SHIPPED. The /commit-clean skill mechanizes this rule end to end. WARNING: Raw git commits are strictly an emergency-only fallback, permitted ONLY when the fak binary is unbuilt (git commit -s -m "<subject> (fak <leaf>)" -- <paths>); never use git add -A or uncoordinated raw git commits on the shared multi-session tree. (Full convention in AGENTS.md.)
  • Default is to ship green work and sync safely unprompted — do more work by default: pre-flight sync with trunk (fak sync check, fak sync reconcile --apply, or fak sync apply), verify on-device (fak validate --mine <paths>, go test ./internal/<pkg>/...), commit by explicit path (fak commit --path <p> -m "<subject> (fak <leaf>)" or fak sweep --apply --lane <lane> -m "<subject>"), and push unprompted via fak sync push or fak commit --push. "Green" requires shift-left proof: for changes touching executable CLI verbs, gateway adapters, runtime logic, or hardware/compute paths, execute real paths in dogfood, integration tests, or live hardware sub-component runs rather than relying on mock-only or shallow tests. Bias heavily toward testing sub-components on live physical hardware (divide and conquer) with high volume and frequency (e.g. fak validate --strix --subkernels=..., make mac-perf, make cuda-test). Safe merge discipline: verify no in-flight MERGE_HEAD exists before staging (if active, unstage and wait; never clobber, abort, or finish a peer's merge); use fak sync apply (--ff-only) for clean trunk convergence; route divergence via fak sync reconcile (disjoint integration, superset merge, or dirty parking via fak wip park); never force-push, use --autostash, or perform raw 3-way merges. Dual-repo synchronization invariant & Companion Dev Harness: when working across both repos or touching shared interfaces (pkg/*), keep both fak and fak-private synchronized (fetch both remotes and refs/fak/locks/*, fast-forward both, sync go.work to prevent module skew, and audit with public leak scrub tools/scrub_public_copy.py --audit-staged or fak-dev audit-leak --staged). Local development in fak is first-class and companion-governed: pre-commit hooks in fak automatically run 5-gate boundary checks (cmd/fak-boundary) and secret leak audits when fak-private is present. In-tree CLI commands fak-dev gate, fak-dev provenance, fak-dev audit-leak, and fak-dev ticket bridge directly to companion tools without requiring directory switches. Cross-repo issue quoting rule: bare #<num> strictly denotes a public fak issue; quoting a fak-private issue in public fak MUST be explicitly qualified as fak-private#<num> (or anthony-chaudhary/fak-private#<num>) to ensure provenance is unambiguous. Full default + verify command in AGENTS.md.
  • Divide and conquer: Delegate substantive work and keep this coordinator context clean; enforce capability-aware scoping and persistence — structurally drive 10x subagent adoption by launching 4–8 (up to 16 on multi-core hosts) specialized subagents concurrently across pairwise tree-disjoint lanes. Decompose substantive or multi-part requests into atomic single-concern units and deploy multi-agent triads per leaf (researcher/explore -> worker -> cross-validator/issue-auditor). Divide and conquer applies equally to hardware verification: isolate compute workloads into discrete sub-components (sub-kernels, GEMV/GEMM microbenchmarks, Vulkan primitives) to test on live physical devices early and often, rather than bottlenecking on monolithic full-model runs. Top-level coordinator (depth 0) aggressively fans out parallel subagents; leaf workers (depth 1) execute directly within assigned package boundaries and must NOT invoke nested task calls (preventing recursion depth exhaustion, #12028). Use guarded headless agents or equivalent isolated workers for investigation, implementation, tests, and review. Constrain smaller models and workers to atomic S0/S1 leaf units (1–3 files, single package, exactly one witness). Scope abstention strictly to bounded high-difficulty aspects (concurrency, frozen ABI, kernel memory layout, security gates): emit a structured ABSTAIN for the escalated boundary while executing all independent, safe, solvable sub-components (such as reproduction tests or diagnostics). Treat guard refusals as actionable feedback rather than session stops: query fak recover <TOKEN>, adapt execution or wait out transient locks, and maintain momentum on the objective without repeating failing calls. Keep only decisions and compact witnessed evidence here; independently verify worker effects before landing or reporting them. Reserve direct work for lightweight coordination and truly trivial tasks. Full contract in AGENTS.md.
  • The Go module is the repository root — run go commands from the clone root; go install github.com/anthony-chaudhary/fak/cmd/fak@latest resolves directly.
  • Strict Ban on PowerShell and Loose Scripts — Mandatory Modular Go Programs — adding new PowerShell scripts (.ps1), Bash/POSIX shell scripts (.sh), batch files (.bat, .cmd), or loose scripts is STRICTLY BANNED across this repo and fak-private. An exception requires an extraordinary, super heavily justified reason (basically ~1 in the whole repo, such as initial host bootstrapping before Go is installed). All new automation, test runners, harnesses, session orchestrators, and background tooling MUST be native Go programs (cmd/*, Go leaves registered as fak CLI verbs, or quarantined sub-modules). Think modular, integrated, long-term value.

Read the full file on GitHub · 82 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. 1mo ago Changed · +2 lines · +228 tokens per session 70275767d0d8
  2. 1mo ago Changed · +20 lines · +461 tokens per session 00284394b51b
  3. 1mo ago Changed · +146 tokens per session 0805d14bfe49
  4. 1mo ago Changed · +3 lines · +192 tokens per session 18e68fe9b55b
  5. 1mo ago Changed · +2 lines · +64 tokens per session 96504cd6336f
  6. 1mo ago First seen · 55 lines · 906 tokens per session scan A ff8ba1dbaa52

Subscribe to this mod's changes

fak CLAUDE.md is an instructions file published in the GitHub repository anthony-chaudhary/fak (42 stars, last pushed today), licensed Apache-2.0. It adds 1,997 tokens to every session, about $0.0080 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

Other instructions, from other repositories

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 · 9,649 tokens

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,549 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens