Cranpose: Instructions file for Codex

AGENTS.md

Cranpose AGENTS.md is an instructions file for Codex, OpenCode from samoylenkodmitry/Cranpose. It costs 1,557 tokens per session, scanned A, original, Apache-2.0.

A contributor guide for Cranpose, a Rust user-interface framework inspired by Android's Jetpack Compose. It defines coding, testing, error-handling, naming, and Android-only project rules.

In plain words
What is it for?
Use it when developing or reviewing Cranpose Rust code, especially public functions, asynchronous code, and Android UI components. It lists the repository's expected quality checks and conventions.
Why use it?
It gives coding agents a consistent standard for changes and helps catch problems through formatting, linting, unit tests, and integration tests. It also discourages unfinished migrations and copied code.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents.

This is samoylenkodmitry/Cranpose's own configuration. It tells Codex and OpenCode how to work on Cranpose 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 Cranpose configures →

Reuse

Borrowing it

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

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 Cranpose AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/samoylenkodmitry/cranpose/agents-md"><img src="https://agentmods.dev/badge/instructions/samoylenkodmitry/cranpose/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,557 This file is loaded in full into every session.
When invoked 1,557 The same file — it is already loaded in full.
Security scan A 0 findings. 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.01557 $0.01557
Opus 5.5 $0.00623 $0.00623
Sonnet 5.5 $0.00311 $0.00311
Haiku 4.5 $0.00156 $0.00156

Measured yesterday against content hash f430e086b12b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Cranpose 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 yesterday.

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

How it starts

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

Agent Notes for Cranpose

  • No unsafe code or unwrap(). Keep KISS, DRY and SOLID; duplicated code of ten or more lines needs a shared abstraction.

  • Fix root causes and audit every consumer of a wrong value. Leave no partial fixes, deprecated paths or compatibility layers in this pre-alpha repo. Review architecture, correctness and maintainability before completion.

  • Handle all platforms, always. A change is not done while any platform Cranpose ships lacks it: Android, iOS, watchOS, macOS, Windows, Linux and the web (WebGPU and WebGL).

  • Always make performance optimizations. Never write absurd, wasteful code, and remove any you spot in the codebase as soon as you spot it.

  • If you spot a clone, copy or allocation made just to satisfy the borrow checker, immediately rearchitect so no allocation is needed. A big refactoring is justified.

  • For implementation, read Rust/API conventions and the performance coding guide. Document public APIs only.

  • Tests: write only e2e and integration tests through public entry points, plus tests for corner cases that can break behavior. No unit tests of implementation details (private state, internal structure, call order): they test nothing and duplicate the code. Test bodies go under /test*/, never beside implementation.

  • Prefer RustRover MCP for semantic navigation, types/usages, call graphs and refactoring when ready; pass projectPath. Use direct tools for known-file reads, literal searches, documentation and simple edits, and shell tools for builds, tests, Git and SSH. Open the IDE only when semantic work warrants the setup; if access fails, explain once and use an appropriate fallback. Respect project host and execution limits. Read code tools.

  • Check branch/status at start and completion and after relevant git operations; isolate concurrent work. Never use git reset. Preserve unrelated and uncommitted work.

  • Merge a batch of ready PRs straight into main, one after another, each on its own green CI run: no combined branch, no rebase and no new run after another PR of the batch lands. Rebase only for a conflict. Then check main's CI once for the whole batch and fix what it finds. A PR that changes only README files merges without waiting for CI.

  • When done with a worktree (any repository's), push its work and run just worktree-done <path>, from another repository just -f <Cranpose checkout>/justfile worktree-done <path>; it removes the worktree and its branch or says what would be lost. Reclaim disk with just gc-apply. Never rm a worktree, target/ or build/.

  • Keep tool results near 2,000 tokens by default; return relevant excerpts, failures and changed results. Save full logs to files and expand only when needed. Discover only needed tool schemas; reuse unchanged instructions and evidence.

  • Batch independent reads/checks. Wait 30–60 seconds for long jobs when supported; report progress between waits. Avoid tight polling, repeated status checks and unchanged log dumps.

  • Run targeted checks after meaningful edits and required broad checks before integration; rerun only for changed code, failures or new risks. Documentation-only edits need link/format validation, not product builds.

  • Work without subagents unless requested. When requested, use bounded tasks and minimal context; use only small, fast, inexpensive models. After two passes with no measurable progress, revisit the hypothesis or reference and change approach. Do not declare unfinished work complete.

Performance rules:

  • Benchmark on the slowest shipped device against the last release before merging. Desktop numbers do not count.
  • Keep every test, benchmark and device run as short as physically possible. Alternate A and B, read the result after each pair, and stop as soon as it clearly shows the answer: a difference well past the noise, or clearly no difference. Never run long fixed batches.
  • Benchmarks measure each launch from its start, warm-up included, over the same span for every subject, and keep the fps of every second of the run. Every graph shows those seconds; no data is dropped or hidden, and frameworks are compared on the same full runs. Every report shows each subject's first start after install (its data and caches cleared) and its second start apart, for every framework, case and metric.
  • When moving work between CPU, GPU or threads, measure the unit that bounds that device.
  • Gate every new shader or per-frame feature so code that does not use it compiles or skips it out. Compare malioc registers and cycles per variant.
  • In shaders, test pipeline constants with &, | or if (CONST), never && or ||. Call large functions from one site.
  • No extra pass, offscreen copy, isolation or synchronous compile without a per-case proof that it is needed. A missing opt-in must not add cost.
  • No sleep or blocking wait in the frame loop.
  • Every pacing or heuristic branch must be reachable on a real device and covered by a test of that state.
  • Schedulers choose a job's work when the job starts, from current demand. Bound the queues and drop stale jobs.
  • Key each cache artifact separately (plans vs compiled binaries). Persist entries created after startup.
  • Recycle per-frame storage on the thread that produced it. Growth across frames is a leak.
  • Debug order: diff against the release, offline proxies (malioc, spirv-opt, frame replay), then one ABAB device run on a frozen commit.

Read the full file on GitHub · 47 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. yesterday Changed · +1 lines · +45 tokens per session f430e086b12b
  2. 9d ago Changed · +13 tokens per session 0ad3b2e64324
  3. 12d ago Changed · +2 lines · +143 tokens per session 436a5c329691
  4. 13d ago Changed · +1 lines · +66 tokens per session 9dd0f03106a1
  5. 17d ago Changed · +4 lines · +202 tokens per session 979b5854a212
  6. 19d ago Changed · +15 lines · +309 tokens per session dc097258fdda
  7. 20d ago Changed · +24 tokens per session 1ffe47f403d3
  8. 22d ago Changed · +6 tokens per session 03b8ed163b52
  9. 24d ago Changed · +1 lines · +92 tokens per session 1f22d1810700
  10. 26d ago First seen · 23 lines · 657 tokens per session scan A aec7c5890c68

Subscribe to this mod's changes

Cranpose AGENTS.md is an instructions file published in the GitHub repository samoylenkodmitry/Cranpose (51 stars, last pushed today), licensed Apache-2.0. It adds 1,557 tokens to every session, about $0.0062 per session on Opus 5.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

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