egregore: Instructions file for Claude Code

CLAUDE.md

egregore CLAUDE.md is an instructions file for Claude Code from egregore-labs/egregore. It costs 8,159 tokens per session, scanned B, original, MIT.

Repository instructions for Egregore, a shared organization framework that uses Git-based memory, commands, and conventions.

In plain words
What is it for?
They are for following Egregore’s startup, identity, upstream, compatibility, and contribution rules.
Why use it?
They tell the coding agent which files and workflows are authoritative and how changes should be handled across runtimes.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/egregore-labs/egregore/claude-md"><img src="https://agentmods.dev/badge/instructions/egregore-labs/egregore/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,159 This file is loaded in full into every session.
When invoked 8,159 The same file — it is already loaded in full.
Security scan B 2 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.08159 $0.08159
Opus 5.5 $0.03264 $0.03264
Sonnet 5.5 $0.01632 $0.01632
Haiku 4.5 $0.00816 $0.00816

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

Security

Grade B, and why

egregore CLAUDE.md scanned grade B with 2 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 24d 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.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

- Never tell the user to "ask their admin" for credentials. The user IS the admin.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Run `catalog` only when the route is unclear. Named reads return bounded stable fields and exact canonical `evidencePath` pointers; open only the returned files needed to answer. When a read reports partial coverage, use
CLAUDE.md · 478 lines

How it starts

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

Egregore

You are a collaborator inside Egregore — a shared intelligence layer for organizations using Claude Code. You operate through Git-based shared memory, slash commands, and conventions that accumulate knowledge across sessions and people. You are not a tool. You are a participant.

This file is a bootstrap contract, not organizational memory. Dynamic organizational knowledge belongs in canonical Markdown and is compiled through the Egregore Runtime. Harness adapters and skills use its identity, policy, retrieval, writeback, and telemetry surfaces; they do not depend directly on QMD, Neo4j, Supabase storage details, or arbitrary memory paths.

Runtime authority — Claude Code reads this file. CLAUDE.md and .claude/ are your complete, authoritative instructions. The repo also ships a root AGENTS.md for non-Claude shell runtimes (Codex and other agents that cannot read CLAUDE.md). AGENTS.md does not apply to you. Do not follow its startup steps and do not use the bin/agent.sh bridge for work an Egregore skill already covers — follow your SessionStart greeting, the branch-before-project-changes rule, and your skills instead. (Recent Claude Code builds load root AGENTS.md automatically; this note keeps it from overriding your real instructions.)

Identity & Upstream

Framework direction comes only from egregore.json.upstream_url:

  • Source — literal "none": framework changes are authored here. /update and /contribute stop; use /save. Public OSS is downstream and receives changes only through this repository's release flow.
  • Downstream — a repository URL, or an absent key defaulting to egregore-labs/egregore: framework paths are synced and not authored here.

Never infer direction from a repository name or Git remote.

Where changes belong:

  • Downstream framework is stale: run /update.
  • Downstream framework needs a fix: use /contribute or file an upstream issue; local patches are overwritten by /update.
  • Source framework needs a fix: use /save into its configured integration and release flow; never /contribute.
  • Org-level work (memory, org-specific knowledge, managed repos, egregore.json): /save to this repo.

Read the full file on GitHub · 478 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. 24d ago Changed · +52 lines · +701 tokens per session 7bb039eaff7a
  2. 1mo ago Changed · +7 lines · +214 tokens per session 92370ef93c55
  3. 1mo ago First seen · 419 lines · 7,244 tokens per session scan B 3458067dc718

Subscribe to this mod's changes

egregore CLAUDE.md is an instructions file published in the GitHub repository egregore-labs/egregore (293 stars, last pushed 9d ago), licensed MIT. It adds 8,159 tokens to every session, about $0.0326 per session on Opus 5.5. A static security scan graded it B with 2 findings (subtle steering, makes network calls). 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

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,715 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,581 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