Writ: Instructions file for Claude Code

CLAUDE.md

Writ CLAUDE.md is an instructions file for Claude Code from infinri/Writ. It costs 1,166 tokens per session, scanned A, original, MIT.

A set of repository instructions for Claude Code, an AI coding tool. It defines the allowed branch and files, where the project architecture is documented, how to recover work after interruptions, and which checks to run.

In plain words
What is it for?
Use it to guide work on the Writ project, recover the current task from handoff files, distinguish current code from reference material, and require confirmation before pushing changes.
Why use it?
It gives the coding agent project-specific rules instead of leaving it to guess how the repository is organised or what it may change. This helps protect important branches and preserve continuity between sessions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/infinri/writ/claude-md"><img src="https://agentmods.dev/badge/instructions/infinri/writ/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,166 This file is loaded in full into every session.
When invoked 1,166 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.01166 $0.01166
Opus 5.5 $0.00466 $0.00466
Sonnet 5.5 $0.00233 $0.00233
Haiku 4.5 $0.00117 $0.00117

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

Security

Grade A, and why

Writ 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 16d 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 · 39 lines

How it starts

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

Writ: project instructions for Claude Code

Branch and scope

  • Work only on v2/architecture-rebuild. Never modify main. Confirm before any push.
  • V2 is being built here. The existing writ/, hooks/, bin/, agents/, rules/, scripts/ (except check-v2-docs.py) and tests/ trees are V1 reference material only: mine them for evidence, do not reproduce their structure.
  • Do not change README.md or its media in docs/assets/; V2 architecture lives in V2-ARCHITECTURE.md and docs/.

Recover state first (every new session and after every compaction)

Start here: read SESSION-HANDOFF at the start of every development session and after every compaction, before changing any code. It is the authoritative recovery entry point; resume the task its section F names instead of restarting work.

  1. git branch --show-current, git status, git log --oneline -10, git fetch origin && git rev-parse HEAD origin/v2/architecture-rebuild.
  2. Read SESSION-HANDOFF, then WORK-STATE, then active rows in TASKS and DECISION-LOG.
  3. If the docs and the repository disagree, reconcile before writing code. The repository is the source of truth, not the previous conversation.

Continuity rule. Before context compaction, milestone completion, or ending a substantive development session, update the authoritative session handoff with verified repository state, implemented versus unimplemented features, test evidence, open risks, decisions, and an executable next-task plan. After context compaction or a new session, read CLAUDE.md and the authoritative session handoff before changing code. Verify git state and resume the next unfinished authorized task without repeating completed work.

Authoritative architecture

V2-ARCHITECTURE, docs index, master plan, M0 checklist, security invariants, threat model, ADRs, contracts.

Read the full file on GitHub · 39 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. 16d ago First seen · 39 lines · 1,166 tokens per session scan A bf4896ec2532

Subscribe to this mod's changes

Writ CLAUDE.md is an instructions file published in the GitHub repository infinri/Writ (333 stars, last pushed yesterday), licensed MIT. It adds 1,166 tokens to every session, about $0.0047 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-11-15.

Related

Writ CLAUDE.md compared with instructions from other repositories

Writ CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Writ CLAUDE.mdinfinri/WritInstructions file333yesterdayMITA1,166Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot