A free tool from the Institut du Numérique ResponsableFrançaisDiscover the INR

Green Codex

Responsible digital practice also starts in your code.

Rules to design, develop and verify with Codex, while preserving the quality, accessibility and sobriety of digital services.

An open skill, maintained by the INR and its community.

Practices that follow your work

Green Codex selects the relevant rules from the need, the technologies and the observable evidence.

Design a useful service

Check the need, actual use and ease of use before adding more features.

The 3U approach

Improve the code

Target costly queries, transfers, resources and behaviours in your environment.

The technical catalogue

Verify the results

Link each finding to evidence, report limits and test the changes actually made.

The end-of-task summary
Languages and environments covered

Java, Rust, C, C++, C#, Swift, Go, Python, JavaScript, TypeScript, PHP, Ruby, Scala, Kotlin, Julia, Nim, Zig, Shell, SQL, PL/SQL, HTML, CSS, React, Vue, Angular, Svelte, Preact, Astro and Solid. Detecting a technology does not make all of its rules applicable.

Get started in your project

For a first installation on macOS or Linux, with Git and Codex already installed, get the repository and copy the skill folder. If the destination already exists, read the guide before changing it.

From the root of the downloaded repository:

mkdir -p ~/.agents/skills
cp -R green-codex ~/.agents/skills/green-codex

Then call $green-codex in your request. Codex can also select the skill automatically.

Open the installation guide

Install Green Codex: video

A 50-second animated demonstration, without audio, for a first installation on macOS or Linux. Git and Codex must already be installed. The on-screen text is in French; the transcript below is in English.

The commands appear on screen. Playback only starts when you ask. Download the MP4 video.
Read the transcript and copy the commands

This animation illustrates the commands to run. It is not a recorded session or an installation carried out on your machine.

Get the project

In a terminal, from a folder where you want to download the repository:

git clone https://github.com/Institut-du-Numerique-Responsable/green-codex.git
cd green-codex

Copy the skill

From the repository root, for a first installation. If ~/.agents/skills/green-codex already exists, review and back up your local changes before updating.

mkdir -p ~/.agents/skills
cp -R green-codex ~/.agents/skills/green-codex

Check the copy

ls ~/.agents/skills/green-codex/SKILL.md

The file path should print without an error. This confirms the file is present; check that the skill is available in Codex afterwards.

Use Green Codex

Open your project in Codex CLI or the IDE extension and type this request in Codex, not in the terminal:

$green-codex
Review this project and suggest verifiable eco-design improvements.

If the skill does not appear, restart Codex. Read the official Codex skills documentation.

Frameworks that guide action

The project rules rely on documented sources. They are not a compliance certification.

RGESN

Eco-design of digital services, from user need to lifecycle.

GR491

Responsible design: user experience, code, data and hosting.

Opquast

Quality, clarity and robustness of web experiences.

RGAA

Safeguards for keyboard use, focus, contrast and semantics. A full RGAA audit remains separate.

See the sources and their coverage limits

Useful, used and usable

Confirm the need, observe actual use and check that people can complete their task, including with a keyboard.

Each dimension needs its own evidence. Missing information stays to be verified.

Responsible digital guides

These guides are written in French.

RIA31 is distinct from the EU AI Act. Generated documents do not prove that an organisation has adopted the practices.

Sobriety applies to the assistant too

Reducing unnecessary tokens and calls supports responsible digital practice by limiting the processing used for the same result, while preserving quality.

The actual environmental gain depends on the model, the infrastructure and the use.

The NR-TOK rules cover targeted reads, context reuse, operations, models and measuring rework.

Read the Codex sobriety guide (in French)

Rules inspired by and adapted from Caveman, by Julius Brussee. The INR extensions are documented.

Evidence for every finding

The summary lists the rules applied, the actions taken, why they matter, the checks and the limits.

The included static tools check specific patterns: SQL projection, media autoplay and periodic polling in JavaScript.

An optional hook can check the structure of the summary. Its installation and trust review are explicit; it does not check whether the evidence is true.

Use the NR summary
PASS
The item reviewed is verified within the stated scope.
FAIL
A gap is found and backed by verifiable evidence.
REVIEW_REQUIRED
Evidence, a check or a decision is still needed.

A passing scan proves neither overall compliance nor energy savings. The evaluations separate format checks from review of what the answers mean.

A project open to your contributions

Suggest a fix, document a use case or contribute to the evaluations.

Code and references adapted from Caveman: Apache-2.0. Original documentation: CC BY 4.0. BP-AIR, maturity and RIA31 adaptations: CC BY-SA 4.0. Licences per file and third-party attributions (in French).

Led by the INR

Green Codex is maintained by Guillaume Gallon, Guillaume Bourgeois and Vincent Courboulay, with contributions from the community.

Meet the project team

The INR approach for coding assistants (in French)