albert-code AGENTS.md

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

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/etalab-ia/albert-code/agents-md
Clone the repo
git clone --depth 1 https://github.com/etalab-ia/albert-code

Made for: Codex, OpenCode.

Per session 3,449 This file is loaded in full into every session.
When invoked 3,449 The same file — it is already loaded in full.
Security scan B 1 finding. 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.03449 $0.03449
Opus 5 $0.01724 $0.01724
Sonnet 5 $0.00690 $0.00690
Haiku 4.5 $0.00345 $0.00345

Measured 2d ago against content hash d4ea93e916eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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 · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 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 · 184 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 · 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 (5 stars, last pushed 6d ago), licensed MIT. It adds 3,449 tokens to every session, about $0.0172 per session on Opus 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.