genie: Instructions file for Claude Code

CLAUDE.md

genie CLAUDE.md is an instructions file for Claude Code from automagik-si/genie. It costs 12,406 tokens per session, scanned B, original, Apache-2.0.

Claude Code-specific instructions for the Genie repository, covering commands, documentation changes, and the relationship to its shared AGENTS.md contract. Claude Code is a coding assistant that reads repository instructions while working.

In plain words
What is it for?
Use it when running Genie checks, building or testing the project, or editing documentation stored through its linked repository.
Why use it?
It keeps Claude's repository work aligned with shared engineering rules while adding details specific to Claude Code and Genie documentation.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/automagik-si/genie/claude-md"><img src="https://agentmods.dev/badge/instructions/automagik-si/genie/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12,406 This file is loaded in full into every session.
When invoked 12,406 The same file — it is already loaded in full.
Security scan B 1 finding. 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.12406 $0.12406
Opus 5.5 $0.04962 $0.04962
Sonnet 5.5 $0.02481 $0.02481
Haiku 4.5 $0.01241 $0.01241

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

Security

Grade B, and why

genie CLAUDE.md scanned grade B with 1 finding 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 15d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **`genie doctor` prints ONE `mode drift` line, never one per drifted entry** — `checkWorktreeModes` (`src/genie-commands/doctor-modes.ts`) returns a single aggregated result naming at most five entries in the fixed ord
CLAUDE.md · 285 lines

How it starts

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

Genie CLI

Claude Code overlay: read and follow the canonical shared repository contract in AGENTS.md first. This file adds Claude-specific command and operational detail; shared rules belong in AGENTS.md.

Commands

bun run check        # Full gate: typecheck + lint + dead-code + test + test:residue (git status, ignored included, lists no path component named `undefined`) + cargo test --locked (fails, never skips, without cargo)
bun run build        # Bundle to dist/genie.js (bun target, minified, single file)
bun run typecheck    # tsc --noEmit
bun run lint         # biome check .
bun run dead-code    # bunx knip (has pre-existing false positives for biome/commitlint/husky)
bun test             # All tests
bun test src/lib/v5/task-state.test.ts  # Single file

Docs

docs/ is a symlink to .docs-vendor/genie/ where .docs-vendor is a git submodule of automagik-si/docs (Mintlify, public site at docs.automagik.dev). Engineers see and edit docs/ as if it were a regular subfolder of the genie repo — the submodule machinery is mostly invisible.

  • Operator-facing pages (e.g., docs/installation.mdx, docs/security/key-rotation.mdx, docs/incident-response/canisterworm.mdx) appear on the public Mintlify site at docs.automagik.dev/genie/....
  • Engineering-internal pages live under docs/_internal/ (architecture deep-dives, observability internals, agent-frontmatter contracts, CLI reference dumps, spawn-flow runbooks, detector specs). These are excluded from the public Mintlify build via **/_internal/ in automagik-si/docs/.mintignore — visible inside the genie repo, hidden from public docs.

Workflow when editing docs:

# Make changes (the symlink follows into .docs-vendor/genie/)
$EDITOR docs/installation.mdx

# Commit + push the docs change to automagik-si/docs
cd .docs-vendor
git checkout -b feat/<topic>
git add genie/installation.mdx
git commit -m "docs(genie): ..."
git push -u origin feat/<topic>
gh pr create --base main

# After the docs PR merges, bump the genie superproject pointer
cd ..   # back to genie repo root
git submodule update --remote .docs-vendor
git add .docs-vendor
git commit -m "chore: bump .docs-vendor to docs main"

Read the full file on GitHub · 285 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. 15d ago First seen · 285 lines · 12,406 tokens per session scan B 41108616c68c

Subscribe to this mod's changes

genie CLAUDE.md is an instructions file published in the GitHub repository automagik-si/genie (353 stars, last pushed today), licensed Apache-2.0. It adds 12,406 tokens to every session, about $0.0496 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

genie CLAUDE.md compared with instructions from other repositories

genie CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
genie CLAUDE.mdautomagik-si/genieInstructions file353todayApache-2.0B12,406Claude 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 file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode