kmp: Instructions file for Codex

AGENTS.md

kmp AGENTS.md is an instructions file for Codex, OpenCode from underpass-ai/kmp. It costs 733 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for KMP, including rules for keeping public README files and user guides consistent.

In plain words
What is it for?
Use them when changing KMP’s public documentation, tools, storage model, clocks, viewer, or setup; the repository also defines commands for synchronizing README content.
Why use it?
They prevent documentation surfaces from drifting apart when the product, tools, storage, or setup changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/underpass-ai/kmp/agents-md"><img src="https://agentmods.dev/badge/instructions/underpass-ai/kmp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 733 This file is loaded in full into every session.
When invoked 733 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.00733 $0.00733
Opus 5.5 $0.00293 $0.00293
Sonnet 5.5 $0.00147 $0.00147
Haiku 4.5 $0.00073 $0.00073

Measured 1mo ago against content hash 0536059891d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kmp 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 1mo 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.

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

How it starts

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

KMP repository working agreement

Branch base and delivery

Before new work, fetch origin and read AGENTS.md from current origin/main. Do not select a branch base from instructions in an old checkout. Create feature and bug branches from current origin/main and target their pull requests at main. Pass the PR base explicitly.

The design history records shipped work; it does not select a branch base or authorize repeating old experiments. Preserve dimensions, semantic writing, temporal navigation and continuations. Keep changes reviewable and run behavioral and performance checks appropriate to each change. Do not add editorial CI gates or change repository protections. Merging a feature does not publish a release; release delivery is a separate step.

Public README parity

KMP has three public README surfaces and a change to the product overview must keep all three consistent:

  • README.md — GitHub repository;
  • plugins/kmp/README.md — Codex and Claude plugin marketplaces;
  • crates/kmp-mcp/README.md — crates.io.

The marked kmp:public-overview block in plugins/kmp/README.md is canonical. It carries the common product contract: local-first SQLite memory, decisions and evidence rather than transcripts, Codex and Claude Code, and memory and semantic view tools over shared ChronoLoom. The live tool catalogue defines the current surface. After editing it, run:

cargo run --locked --quiet -p kmp-release -- readme sync

Do not hand-edit the corresponding marked blocks in the other two files. Release preparation synchronizes them. Review the generated changes together; wording and editorial organization are documentation guidance, not CI gates.

Guide parity

The public READMEs explain the product; the installed guides teach it. A change to KMP's tools, verb semantics, storage model, clocks, viewer or setup must update plugins/kmp/guide/editorial.json in the same change and regenerate both guide abouts with:

Read the full file on GitHub · 72 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. 1mo ago Changed · -14 lines · -212 tokens per session 0536059891d3
  2. 1mo ago Changed · +4 lines · +81 tokens per session 6bb1532e475b
  3. 1mo ago Changed · +24 lines · +294 tokens per session 330a7a27fb53
  4. 1mo ago Changed · +14 lines · +154 tokens per session 54d7402372bd
  5. 1mo ago First seen · 44 lines · 416 tokens per session scan A a47615e31114

Subscribe to this mod's changes

kmp AGENTS.md is an instructions file published in the GitHub repository underpass-ai/kmp (0 stars, last pushed 17d ago), licensed Apache-2.0. It adds 733 tokens to every session, about $0.0029 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-31.

Related

Other instructions, from other repositories