atelier-studio AGENTS.md

atelier-studio AGENTS.md is an instructions file for Codex, OpenCode from tofunori/atelier-studio. It costs 3,014 tokens per session, scanned B, original, MIT.

Project-specific instructions for developing and rebuilding Atelier Studio, a desktop application, including its app, backend helper, and gallery servers.

In plain words
What is it for?
Use them before changing the app, runtime, build, or gallery, and when starting or stopping the built application and its related servers.
Why use it?
They document required checks and shutdown steps that prevent old server processes from making updated code appear not to work.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: reads ~/.codex or $CODEX_HOME, but also the file is AGENTS.md. Also seen: positional $N argument; mentions Codex.

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/tofunori/atelier-studio/agents-md
Clone the repo
git clone --depth 1 https://github.com/tofunori/atelier-studio

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 atelier-studio AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tofunori/atelier-studio/agents-md.svg)](https://agentmods.dev/instructions/tofunori/atelier-studio/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/tofunori/atelier-studio/agents-md"><img src="https://agentmods.dev/badge/instructions/tofunori/atelier-studio/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,014 This file is loaded in full into every session.
When invoked 3,014 The same file — it is already loaded in full.
Security scan B 2 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.1 $0.03014 $0.03014
Opus 5 $0.01507 $0.01507
Sonnet 5 $0.00603 $0.00603
Haiku 4.5 $0.00301 $0.00301

Measured 5d ago against content hash 4e861d1ec2e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

atelier-studio AGENTS.md scanned grade B with 2 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 5d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

s'il est nécessaire, se configure séparément dans `~/.codex/config.toml` et

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -m 5 -H "x-atelier-token: $TOKEN" "http://127.0.0.1:$PORT/health" # {"ok":true,...}
AGENTS.md · 204 lines

How it starts

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

Protocole de relance d'Atelier Studio (agents : Codex, Claude, forks)

À suivre EXACTEMENT avant de valider toute modification qui touche l'app, le runtime, le build ou la galerie. Aucune improvisation. Une modification limitée aux documents/plans ne nécessite pas de rebuild. Le non-respect crée des zombies (serveurs galerie/sidecar orphelins) qui servent du vieux code et font croire que le fix « ne marche pas ».

Ce qu'il faut savoir (2 min)

  • L'app buildée = src-tauri/target/release/bundle/macos/Atelier.app. Son process s'appelle tauri-app (PAS « Atelier ») → pkill -x Atelier ne matche jamais.
  • 3 familles de process : l'app (tauri-app), le sidecar chat (Rust seul depuis plan 065 phase A : Resources/rust-server/atelier-studio-server ; l'ancien repli ATELIER_BACKEND=node est retiré, voir docs/soak/033-COMPLETE.md), les serveurs galerie (node …/server/main.mjs, un par projet ouvert — ils SURVIVENT aux relances et l'app les réutilise → zombies = vieux code servi).
  • npm run tauri dev ne survit PAS lancé par un agent (reaping du harness). Seul Thierry le lance depuis son terminal. Les agents utilisent le BUILD.
  • Vite dev sert src/ en direct, mais l'app buildée fige tout au build : aucun changement n'est visible sans rebuild.
  • Le build quotidien génère seulement le bundle macOS .app. Le DMG est réservé aux releases explicites afin d'éviter les grosses images temporaires rw.*.dmg.
  • Chaque worktree garde ses propres target/ pour éviter les collisions. Cargo passe par sccache quand il est installé afin d'accélérer une reconstruction après nettoyage ; le wrapper retombe sur rustc sinon.
  • Le protocole se lance depuis le worktree qui contient les changements. Il détecte sa racine Git et construit/ouvre le Atelier.app de CE worktree. Une seule instance d'Atelier peut tourner à la fois : la phase d'arrêt reste donc globale, même lorsque le build est local au worktree.
  • La galerie a 2 copies : source gallery/ (à committer) et bundle src-tauri/gallery-dist/ (régénéré par scripts/stage-gallery.sh). Modifier gallery/assets/* sans restager = bundle périmé.

Read the full file on GitHub · 204 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. 5d ago First seen · 204 lines · 3,014 tokens per session scan B 4e861d1ec2e4

Subscribe to this mod's changes

atelier-studio AGENTS.md is an instructions file published in the GitHub repository tofunori/atelier-studio (2 stars, last pushed 2d ago), licensed MIT. It adds 3,014 tokens to every session, about $0.0151 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.