kmux AGENTS.md

kmux AGENTS.md is an instructions file for Codex, OpenCode from kkd927/kmux. It costs 324 tokens per session, scanned A, original, MIT.

Project instructions for kmux, a terminal application that lets developers run several coding-agent conversations and views side by side. They define priorities for keeping agent output readable and sessions usable across panes and restored sessions.

In plain words
What is it for?
Use them when modifying kmux's terminal, pane, surface, restore, rendering, or session behavior. They guide which changes need automated tests.
Why use it?
They help changes preserve conversation output and session continuity while the user switches views or resumes work. They also discourage adding tests for purely visual changes while requiring tests for important behavior.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kkd927/kmux/agents-md.svg)](https://agentmods.dev/instructions/kkd927/kmux/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kkd927/kmux/agents-md"><img src="https://agentmods.dev/badge/instructions/kkd927/kmux/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 324 This file is loaded in full into every session.
When invoked 324 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.00324 $0.00324
Opus 5 $0.00162 $0.00162
Sonnet 5 $0.00065 $0.00065
Haiku 4.5 $0.00032 $0.00032

Measured 4d ago against content hash 0eb219fb3fa9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

kmux 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 4d 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 · 21 lines

What it actually says

AGENTS.md

kmux focus

kmux is a terminal app for working with coding AI agents such as Claude Code, Codex CLI, and Gemini CLI.

The product should prioritize reliable multi-surface agent workflows: agent output must stay stable, readable, and unbroken while users switch surfaces, split panes, restore sessions, and keep multiple agent conversations running side by side.

When changing terminal, pane, surface, restore, or rendering behavior, treat coding-agent output continuity as a primary product requirement.

Test discipline

Do not add or expand automated tests merely because code changed. Tests are for behavior important enough that CI should prevent it from regressing.

  • Do not add tests for trivial visual or mechanical edits such as pixel-level spacing, alignment, colors, copy changes, simple element moves, or removal of UI that has no meaningful behavioral contract.
  • Add tests for significant logic and durable contracts such as state transitions, data transformations, persistence and restore behavior, process or session lifecycle, security boundaries, error handling, and regressions that would materially affect users.
  • For minor UI changes, use proportionate visual or manual verification when useful instead of encoding incidental markup, text, or CSS details into CI.
  • When removing behavior, remove obsolete tests and fixtures. Do not replace them with negative assertions unless absence is itself a meaningful product requirement or a credible regression risk.
  • Test a rule at the layer that owns it. Avoid duplicating the same assertion across normalization, state, and rendering layers.
  • Prefer observable outcomes over implementation details. Keep every assertion relevant to the behavior named by the test.
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. 4d ago First seen · 21 lines · 324 tokens per session scan A 0eb219fb3fa9

Subscribe to this mod's changes

kmux AGENTS.md is an instructions file published in the GitHub repository kkd927/kmux (25 stars, last pushed today), licensed MIT. It adds 324 tokens to every session, about $0.0016 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.