compose-ai-tools AGENTS.md

compose-ai-tools AGENTS.md is an instructions file for Codex, OpenCode from yschimke/compose-ai-tools. It costs 2,421 tokens per session, scanned A, 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 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/yschimke/compose-ai-tools/agents-md
Clone the repo
git clone --depth 1 https://github.com/yschimke/compose-ai-tools

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 compose-ai-tools AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yschimke/compose-ai-tools/agents-md.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,421 This file is loaded in full into every session.
When invoked 2,421 The same file — it is already loaded in full.
Security scan A 0 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 $0.02421 $0.02421
Opus 5 $0.01210 $0.01210
Sonnet 5 $0.00484 $0.00484
Haiku 4.5 $0.00242 $0.00242

Measured today against content hash 7332a6d4d41d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

compose-ai-tools AGENTS.md scanned grade A with 0 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 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). 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.

GitHub App bot accounts (…[bot], e.g. claude[bot]) are exempt from (2) but not from (1). Explicitly fine, and intentionally not matched: links to an agent session (claude.ai/code), the "🤖 Generated with …" and _Generated by [Claude Code]_ footers, and ordinary PR comments — none of those claim authorship.

Read the full file on GitHub · 169 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. today Changed · +25 lines · +389 tokens per session 7332a6d4d41d
  2. 4d ago First seen · 144 lines · 2,032 tokens per session scan A a55cecbf204b

Subscribe to this mod's changes

compose-ai-tools AGENTS.md is an instructions file published in the GitHub repository yschimke/compose-ai-tools (110 stars, last pushed today), licensed Apache-2.0. It adds 2,421 tokens to every session, about $0.0121 per session on Opus 5. A static security scan graded it A with 0 findings. 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