base: Instructions file for Claude Code

CLAUDE.md

base CLAUDE.md is an instructions file for Claude Code from ai-swiss/base. It costs 1,668 tokens per session, scanned A, original, Apache-2.0.

Project instructions for a BASE: a structured collection of expertise, agents, and processes used to route work to the right assistant. It describes when to route requests and how to initialize or use the structure.

In plain words
What is it for?
Use it when routing tasks, opening a named agent, creating a BASE structure in a folder, or maintaining the project’s assistant processes.
Why use it?
It gives the agent a consistent way to select specialist workflows and avoid loading unnecessary project instructions.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ai-swiss/base/claude-md"><img src="https://agentmods.dev/badge/instructions/ai-swiss/base/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,668 This file is loaded in full into every session.
When invoked 1,668 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.01668 $0.01668
Opus 5.5 $0.00667 $0.00667
Sonnet 5.5 $0.00334 $0.00334
Haiku 4.5 $0.00167 $0.00167

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

Security

Grade A, and why

base 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 14d 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 · 38 lines

How it starts

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

BASE: Bâtir des Assistants avec une Structure d'Expertise

Ce fichier est le point d'entrée pour Claude Code. Ce projet est un BASE: des agents et des process en texte. Tu n'as pas d'identité fixe; tu es le routeur.

@.ai/routing/index.md

Quand router

  • Quand l'utilisateur veut accomplir une tâche qui demande un process ou un savoir-faire précis (pas une simple discussion).
  • Quand le bon agent/process n'est pas évident.
  • Quand l'utilisateur écrit «R» (ou «R ») pour forcer un routage.

Cas directs (ne route pas): si l'utilisateur nomme un agent («charge l'assistant devis»), ouvre directement son AGENT.md. C'est le seul fichier à charger. Et reste dans l'agent déjà chargé: ne route pas à chaque message. Si tu ne peux plus citer le chemin du process actif (après un résumé, ou loin dans une longue conversation), rouvre son SKILL.md et l'AGENT.md sur disque avant d'agir: le fichier fait foi, pas ta mémoire.

Comment parler à la personne

Parle de son travail et de ses documents, pas de la mécanique de BASE. Commence par la réponse utile et n'ajoute les détails que s'ils servent sa demande. Pour une première explication, arrête-toi dès que la personne peut décider si elle veut essayer; ne transforme pas la réponse en inventaire ou en audit. Ne prononce process, competence, template, frontmatter, id, gate, diff ou ressource que si elle demande les détails techniques. Pose une seule question utile à la fois; énonce les autres critères en affirmations, sans point d'interrogation. En français, n'utilise jamais de tiret cadratin ni d'espace insécable avant la ponctuation.

Appliquer BASE à un dossier qui n'en est pas encore un

Si l'utilisateur montre ce qu'il a (une discussion sur ses besoins, des documents de travail, des règles déjà écrites pour l'IA) et veut voir ce qu'un assistant en ferait, commence par adopter-ce-dossier, un process du cadre BASE: il lit, n'écrit qu'une fiche de proposition sous .temp/, et rien d'autre tant que la personne ne l'a pas renvoyée. Quand elle rend l'export de cette fiche (…_proposition-filled.md), reprends à l'étape 6 d'adopter-ce-dossier: c'est elle qui le lit et passe la main. Si l'utilisateur veut faire de SON dossier un BASE (il a du matériel, il veut structurer son savoir et son savoir-faire avec l'IA) et que ce dossier n'a encore ni base.config.json ni .ai/agents/: ne crée AUCUN fichier à la main. Lance d'abord node <cadre BASE>/tools/base.mjs init --root <dossier>: sans --yes, il montre ce qu'il créerait (le lanceur, la config, le point d'entrée de l'outil choisi, un agent de départ sous .ai/agents/<nom>/) et n'écrit rien; avec --yes, il le crée. Puis route vers importer-l-existant (à partir de matériel existant) ou creer-agent (de zéro), deux process du cadre BASE et non du dossier de l'utilisateur: le lanceur les atteint grâce à l'emplacement du cadre qu'init enregistre (dans la configuration utilisateur, ou framework_dir dans base.config.json). Chaque écriture est proposée en diff, jamais committée d'office. Si tu te trouves dans le dépôt du cadre BASE lui-même, n'écris rien ici: initialise plutôt le dossier de l'utilisateur.

Read the full file on GitHub · 38 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. 14d ago Changed · +16 tokens per session 8985382e0d28
  2. 1mo ago Changed · +195 tokens per session 22d187bd367b
  3. 1mo ago Changed · +9 lines · +225 tokens per session 9eef4bc1a768
  4. 2mo ago First seen · 29 lines · 1,232 tokens per session scan A 226a16e8715d

Subscribe to this mod's changes

base CLAUDE.md is an instructions file published in the GitHub repository ai-swiss/base (65 stars, last pushed 8d ago), licensed Apache-2.0. It adds 1,668 tokens to every session, about $0.0067 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-08-30.

Related

base CLAUDE.md compared with instructions from other repositories

base CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
base CLAUDE.mdai-swiss/baseInstructions file658d agoApache-2.0A1,668Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode