albert-code: Instructions file for Codex

AGENTS.md

albert-code AGENTS.md is an instructions file for Codex, OpenCode from etalab-ia/albert-code. It costs 3,674 tokens per session, scanned B, original, MIT.

Repository guidance for Albert Code, a French public-sector setup that combines an isolated virtual machine, a terminal coding assistant, a sovereign language-model service, and government-focused skills. It explains the project’s purpose and the roles of its main parts.

In plain words
What is it for?
Use it when modifying Albert Code’s scripts, configuration, documentation, sandbox setup, model connection, or government-specific skills.
Why use it?
It helps contributors understand how the assembled components fit together and why isolation, data sovereignty, accessibility, and security matter. This reduces changes that break the intended public-sector operating model.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is etalab-ia/albert-code's own configuration. It tells Codex and OpenCode how to work on albert-code 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 albert-code configures →

Reuse

Borrowing it

Nothing to install: this file belongs to etalab-ia/albert-code. 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/etalab-ia/albert-code/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/etalab-ia/albert-code

Made for: Codex, OpenCode.

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 albert-code AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/etalab-ia/albert-code/agents-md/github.svg)](https://agentmods.dev/instructions/etalab-ia/albert-code/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/etalab-ia/albert-code/agents-md"><img src="https://agentmods.dev/badge/instructions/etalab-ia/albert-code/agents-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 albert-code AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/etalab-ia/albert-code/agents-md"><img src="https://agentmods.dev/badge/instructions/etalab-ia/albert-code/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,674 This file is loaded in full into every session.
When invoked 3,674 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.03674 $0.03674
Opus 5.5 $0.01470 $0.01470
Sonnet 5.5 $0.00735 $0.00735
Haiku 4.5 $0.00367 $0.00367

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

Security

Grade B, and why

albert-code AGENTS.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 1mo 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.

- `chmod 600` sur tout fichier contenant une clé (`~/.zshenv`, `~/.agent-vm/runtime.sh`).
AGENTS.md · 186 lines

How it starts

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

AGENTS.md — albert-code


1. Le projet en bref

Le problème

L'IA bouleverse le développement. Les agents publics (devs et aussi des non-devs) utilisent déjà des outils IA commerciaux (Claude Code, Cursor, Copilot) sans cadre, sans souveraineté, sans sandbox — du shadow IT généralisé. L'État n'a pas d'alternative à proposer.

La vision

Albert Code = un meta-bundle d'agentic coding souverain : en une commande, un agent public obtient un assistant de code IA isolé, alimenté par le Socle Interministériel d'IA Générative et ses modèles souverains via AlbertAPI, avec les standards de l'administration (DSFR, accessibilité, sécurité) déjà embarqués.

Ce n'est pas un IDE ni un fork : c'est de l'orchestration mince (scripts + config + docs) qui assemble des briques existantes :

Brique Rôle Source
agent-vm Sandbox d'isolation (VM Lima jetable, mode autonome sûr) github.com/sylvinus/agent-vm
OpenCode Harness unique (assistant de code terminal) opencode.ai
Albert API Provider LLM souverain (OpenAI-compatible) albert.api.etalab.gouv.fr
Skills État Connaissances métier (DSFR, RGAA, sécurité, data.gouv) github.com/etalab-ia/skills
MCP Connecteurs clés : data.gouv, context7, playwright, chrome-devtools —
AGENTS.md par défaut Règles sécurité + conventions universelles templates/AGENTS.default.md

Pour qui

Agents publics : devs en ministère, prototypeurs, équipes de startup d'état. Le bundle doit marcher autant pour un dev confirmé que pour un non-tech (cf. README.md).

Positionnement (ce que c'est / ce que ce n'est pas)

  • ✅ Un assembleur souverain, mince, reproductible, qui se branche sur l'existant.
  • ❌ Pas un nouvel outil à apprendre, pas un IDE, pas un modèle, pas un fork d'OpenCode.

2. Comment travailler dans ce dépôt (méthode)

Les documents du dépôt forment un système. Respecte cette boucle :

Document Rôle Quand le lire / l'écrire
AGENTS.md (ce fichier) Le pourquoi + les règles + l'archi cible Toujours, en premier
BACKLOG.md Le quoi faire : epics → tickets ordonnés (🔴🟠🟡) avec Definition of Done Choisir le prochain ticket ici
TESTS.md Le comment valider : scénarios (préconditions → étapes → attendu) Avant de clore un ticket
README.md Le livrable utilisateur (onboarding non-tech) À tenir à jour quand le comportement change
FEEDBACK.md Le pourquoi : registre des retours utilisateurs codifiés (AC-R###) Consulter pour la genèse d'un ticket / y consigner un nouveau retour
docs/PLAN.md Le contexte complet (décisions, analyses, références) Pour comprendre l'historique du projet

Read the full file on GitHub · 186 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. 1mo ago Changed · +22 tokens per session 1a921f466a0b
  2. 1mo ago Changed · +1 lines · +74 tokens per session 7a55ede4647c
  3. 2mo ago Changed · +1 lines · +129 tokens per session 45902331dae6
  4. 2mo ago First seen · 184 lines · 3,449 tokens per session scan B d4ea93e916eb

Subscribe to this mod's changes

albert-code AGENTS.md is an instructions file published in the GitHub repository etalab-ia/albert-code (15 stars, last pushed 24d ago), licensed MIT. It adds 3,674 tokens to every session, about $0.0147 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-08-31.

Related

albert-code AGENTS.md compared with instructions from other repositories

albert-code AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
albert-code AGENTS.mdetalab-ia/albert-codeInstructions file1524d agoMITB3,674Codex, OpenCode
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