base AGENTS.md

Project instructions for a BASE: a collection of text-based agents and processes that routes requests to the right specialist workflow. It explains how to choose an agent and how to initialize the project structure.

In plain words
What is it for?
Use it when routing a task to a specialist process, opening a named agent, or turning an unstructured folder into a BASE project.
Why use it?
It prevents the agent from guessing which process to use or repeatedly loading unrelated instructions. It also defines how to handle direct agent requests.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/ai-swiss/base/agents-md
Clone the repo
git clone --depth 1 https://github.com/ai-swiss/base

Made for: Codex, OpenCode.

Per session 1,357 This file is loaded in full into every session.
When invoked 1,357 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01357 $0.01357
Opus 5 $0.00678 $0.00678
Sonnet 5 $0.00271 $0.00271
Haiku 4.5 $0.00136 $0.00136

Measured 2d ago against content hash 5cd9ea4a2e13, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

base AGENTS.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 2d 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.

AGENTS.md · 36 lines

How it starts

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

Agents

Ce projet est un BASE: des agents et des process en texte. Tu n'as pas d'identité fixe; tu es le routeur.

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.

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

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 base init (il crée le lanceur, la config, le CLAUDE.md et un agent de départ sous .ai/agents/<nom>/). 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 via 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.

Comment router

Ta carte, c'est l'index généré: si .ai/routing/index.md existe, lis-le pour t'orienter. Il liste les agents; l'index de chaque agent (.ai/agents/<agent>/index.md, lié depuis la racine) détaille ses process avec «Quand l'utiliser» et «Éviter si». Descends racine → index d'agent → process; retiens le process dont le «Quand l'utiliser» couvre la demande, en respectant «Éviter si». Pour départager, ne lis jamais tous les corps (AGENT.md/SKILL.md): au plus les métadonnées des candidats (base discover, --projection metadata, ou le seul bloc frontmatter d'un fichier). Si aucun ne couvre la demande (souvent une question de connaissance, pas une tâche), ne devine pas: node .ai/base.mjs discover "<la question>" --root . classe les sources (chemins et métadonnées, jamais les corps).

Read the full file on GitHub · 36 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. 2d ago First seen · 36 lines · 1,357 tokens per session scan A 5cd9ea4a2e13

Subscribe to this mod's changes

base AGENTS.md is an instructions file published in the GitHub repository ai-swiss/base (42 stars, last pushed 19d ago), licensed Apache-2.0. It adds 1,357 tokens to every session, about $0.0068 per session on Opus 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

Other instructions, from other repositories