compose-ai-tools: Instructions file for Claude Code

AGENTS.md

compose-ai-tools AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from yschimke/compose-ai-tools. It costs 3,855 tokens per session, scanned C, original, Apache-2.0.

A repository guide for Compose AI Tools, a Gradle plugin and supporting tools that render Jetpack Compose previews to PNG files outside Android Studio. It also records rules enforced by continuous integration, or automated checks run on changes.

In plain words
What is it for?
Use it when changing the plugin, preview rendering, build process, documentation, or agent-specific branch and commit conventions.
Why use it?
It gives coding agents the project map and rules they must follow, including how to keep the documentation short and avoid attributing work to an AI agent in Git history.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; mentions AGENTS.md.

This is yschimke/compose-ai-tools's own configuration. It tells Claude Code, Codex and OpenCode how to work on compose-ai-tools 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 compose-ai-tools configures →

Reuse

Borrowing it

Nothing to install: this file belongs to yschimke/compose-ai-tools. 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/yschimke/compose-ai-tools/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/yschimke/compose-ai-tools

Made for: Claude Code, 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 compose-ai-tools AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/yschimke/compose-ai-tools/agents-md"><img src="https://agentmods.dev/badge/instructions/yschimke/compose-ai-tools/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,855 This file is loaded in full into every session.
When invoked 3,855 The same file — it is already loaded in full.
Security scan C 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.03855 $0.03855
Opus 5.5 $0.01542 $0.01542
Sonnet 5.5 $0.00771 $0.00771
Haiku 4.5 $0.00385 $0.00385

Measured 8d ago against content hash 3bb6ae5f7609, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

compose-ai-tools AGENTS.md scanned grade C 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 8d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- build-brief:instructions:start -->
AGENTS.md · 253 lines

How it starts

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

AGENTS.md

The instruction file every coding agent working on this repository reads. It is deliberately short and deliberately duplicated nowhere: it carries the rules that are enforced by CI, plus a map to where everything else lives.

Keep it small. Codex CLI embeds at most project_doc_max_bytes of this file into its first-turn instructions — 32 KiB by default, silently truncating the rest — and every agent pays for it on every turn. Detail, rationale and worked examples belong in docs/AGENT_GUIDE.md and the rest of docs/, which agents read on demand. How each agent resolves its way here, and what that costs, is measured in docs/AGENT_ENTRYPOINTS.md.

What this project is

A Gradle plugin (ee.schimke.composeai.preview) plus supporting tools that discover @Preview composables in compiled Kotlin classes and render them to PNG outside Android Studio — Jetpack Compose (Android, via Robolectric) and Compose Multiplatform Desktop (via ImageComposeScene). The renderers, the render daemons and the data extractors themselves live in yschimke/compose-preview-daemon and are consumed here at the composeai-preview-daemon pin. Architecture, commands, state seams and the load-bearing constraints: docs/AGENT_GUIDE.md.

The CI-enforced invariants

Break one of these and the pull request goes red. They are stated here, once, and cited — never restated — everywhere else.

Git history must never attribute work to an AI agent

Non-negotiable. Commits are attributed solely to the human committer. Two things are rejected:

  1. a Co-authored-by: trailer, at trailer position, naming an agent (Claude / Codex / ChatGPT / Copilot / Gemini) or using an agent email; and
  2. a commit whose author or committer identity is an agent — an @anthropic.com / @openai.com email, or an agent name set as the identity.

Read the full file on GitHub · 253 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. 8d ago Changed · +2 lines · +61 tokens per session 3bb6ae5f7609
  2. 11d ago Changed · +1 lines · +18 tokens per session a81268985733
  3. 12d ago Changed · +1 lines · +4 tokens per session e5005b5bc2d0
  4. 17d ago Changed · +14 lines · +199 tokens per session d91691f7c70a
  5. 1mo ago Changed · +1 lines · +34 tokens per session 9beabc09f9d9
  6. 1mo ago Changed · +16 lines · +199 tokens per session 1a6c732427a1
  7. 1mo ago Changed · +31 lines · +526 tokens per session scan A → C 6ae32b8e9672
  8. 1mo ago Changed · +5 lines · +103 tokens per session fae8ee74312a
  9. 1mo ago Changed · +11 lines · +223 tokens per session abb3010057e6
  10. 1mo ago First seen · 171 lines · 2,488 tokens per session scan A 907faf643113

Subscribe to this mod's changes

compose-ai-tools AGENTS.md is an instructions file published in the GitHub repository yschimke/compose-ai-tools (121 stars, last pushed today), licensed Apache-2.0. It adds 3,855 tokens to every session, about $0.0154 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). 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

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,549 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens