auto-dev AGENTS.md

A project instruction guide for phodal/auto-dev, a Kotlin Multiplatform development project. Kotlin Multiplatform lets one codebase target platforms such as Android, iOS, desktop, web, and WebAssembly.

In plain words
What is it for?
Use it when changing shared or platform-specific Kotlin code, renderer implementations, internationalization, build tasks, tests, or debugging workflows.
Why use it?
It reminds the agent about platform coverage, build and test requirements, renderer implementations, language rules, and project-specific file locations.

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/phodal/auto-dev/agents-md
Clone the repo
git clone --depth 1 https://github.com/phodal/auto-dev

Made for: Codex, OpenCode.

Per session 623 This file is loaded in full into every session.
When invoked 623 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.00623 $0.00623
Opus 5 $0.00311 $0.00311
Sonnet 5 $0.00125 $0.00125
Haiku 4.5 $0.00062 $0.00062

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

Security

Grade A, and why

auto-dev 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 · 58 lines

How it starts

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

Core Rules

  • Kotlin Multiplatform: Always consider all platforms: JS, WASM, Desktop JVM, Android, iOS
  • Build & Test: Always run build and tests before completing tasks
  • Preserve Intent: If an existing solution doesn't work, preserve its intent
  • Module Clean: Use ./gradlew :xxx:clean instead of global clean, avoid polluting global caches.
  • Test Scripts: Put temporary scripts under docs/test-scripts
  • Logs: Check ~/.autodev/logs/autodev-app.log for debugging
  • Code comments should be in English, for documentation and user-facing strings should be followed user's langauge

KMP Best Practices

  • Use expect/actual for platform-specific code, for example Platform
  • Avoid emoji and UTF-8 in source code which WASM doesn't support
  • @JsExport: Use concrete classes (not interfaces), Promise (not Flow)
  • i18n: Run ./gradlew :mpp-ui:generateI18n4kFiles

Renderer System

When modifying CodingAgentRenderer, update ALL implementations:

  • Kotlin: DefaultCodingAgentRenderer, ComposeRenderer, JewelRenderer, ServerSideRenderer, JsRendererAdapter
  • TypeScript: BaseRenderer.ts, CliRenderer.ts, ServerRenderer.ts, TuiRenderer.ts
  • VSCode: mpp-vscode/src/bridge/mpp-core.ts, mpp-vscode/src/providers/chat-view.ts
  • JVM CLI: CodingCliRenderer, ConsoleRenderer

Design System

  • CLI/TUI: Use semanticInk/semanticChalk from mpp-ui/src/jsMain/typescript/design-system/
  • Compose: Use AutoDevColors or MaterialTheme.colorScheme
  • NO hardcoded colors - always use design tokens
  • Docs: docs/design-system-color.md, docs/design-system-compose.md

Quick Commands

CLI Test:

./gradlew :mpp-core:jsNodeProductionLibraryDistribution
cd mpp-ui && npm run build && npm run start

IDEA Plugin:

cd mpp-idea && ../gradlew compileKotlin
cd mpp-idea && ../gradlew test --tests "cc.unitmesh.devins.idea.renderer.JewelRendererTest"
cd mpp-idea && ../gradlew buildPlugin

Read the full file on GitHub · 58 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 First seen · 58 lines · 623 tokens per session scan A 51552b111ad7

Subscribe to this mod's changes

auto-dev AGENTS.md is an instructions file published in the GitHub repository phodal/auto-dev (4,538 stars, last pushed 27d ago), licensed MPL-2.0. It adds 623 tokens to every session, about $0.0031 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