domux: Instructions file for Claude Code

AGENTS.md

domux AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from pranav7/domux. It costs 5,936 tokens per session, scanned C, original, Apache-2.0.

A set of repository guidelines for domux, a small Go terminal application and command-line tool for managing coding sessions and TODO files. It explains the project layout, supported commands, storage locations, coding style, and tests.

In plain words
What is it for?
Use it when changing domux’s commands, session store, resolver, terminal interface, tmux integration, or root-level Go tests.
Why use it?
It helps developers find the right files and follow the project’s expected build, formatting, and testing workflow before committing changes.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionEnd hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; reads ~/.codex paths.

This is pranav7/domux's own configuration. It tells Claude Code, Codex and OpenCode how to work on domux 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 domux configures →

Reuse

Borrowing it

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

Made for: Claude Code, 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 domux AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/pranav7/domux/agents-md"><img src="https://agentmods.dev/badge/instructions/pranav7/domux/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,936 This file is loaded in full into every session.
When invoked 5,936 The same file — it is already loaded in full.
Security scan C 2 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.05936 $0.05936
Opus 5.5 $0.02374 $0.02374
Sonnet 5.5 $0.01187 $0.01187
Haiku 4.5 $0.00594 $0.00594

Measured 28d ago against content hash 5399dd4ac89d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

domux AGENTS.md scanned grade C with 2 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 28d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- `site/` is domux.dev. `.github/workflows/pages.yml` publishes it with `install.sh` at `/install.sh` on every push to `main` that changes either, so the install command is `curl -fsSL https://domux.dev/install.sh | sh`.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `site/` is domux.dev. `.github/workflows/pages.yml` publishes it with `install.sh` at `/install.sh` on every push to `main` that changes either, so the install command is `curl -fsSL https://domux.dev/install.sh | sh`.
AGENTS.md · 155 lines

How it starts

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

Repository guidelines for domux V2

Rust workspace, five crates under crates/:

  • domux-term: the Emulator trait and GhosttyEmulator, its one implementation. There is no second emulator and no cargo feature to select. Read docs/decisions/0001-terminal-emulator.md and docs/decisions/0002-ghostty-source-acquisition.md before touching this crate.
  • domux-core: pure model, layout, keymap, config, protocol and state types, and the theme model: roles, colour values, chains of themes and the readability guards. No IO, no tokio, no ratatui, no process spawning. Every rule here has a unit test.
  • domux-server: the core task, panes, rendering, socket, persistence. src/testing.rs is the harness every interface test uses.
  • domux-client: the thin client: raw mode, capabilities, keys out, frames in, clipboard, the attach batch that asks the terminal for its colours, the desktop check and the Omarchy watch.
  • domux: the domux binary. One file per API namespace under src/cli/.

The M0 pane spike is gone. M1 lifted its PTY, input and render code into domux-server and deleted crates/m0-spike; docs/milestones/m1.md records what M1 shipped.

Build and test

  • cargo build --workspace fetches two pinned inputs on the first build and caches both under ~/.cache/domux: the Ghostty source, cloned at the commit in vendor/ghostty-pin.toml, and the Zig that builds it, from vendor/zig-pin.toml. DOMUX_GHOSTTY_SOURCE_DIR and DOMUX_ZIG point at local copies.
  • A cold build can fail while Zig fetches Ghostty's dependencies: deps.files.ghostty.org returns TlsInitializationFailed intermittently on some networks. The fetch pass already runs with -j1; rerun the build. Decision 0002 records the details.
  • crates/domux-term/scripts/bump-ghostty.sh <commit> is the only thing that edits vendor/ghostty-pin.toml. It regenerates the bindings and runs the suite.
  • cargo test --workspace runs everything. Interface tests live in crates/domux-server/tests/ and assert on frames: a failing test prints the screen as |...| rows with a styles list.
  • cargo clippy --workspace --all-targets -- -D warnings and cargo fmt --all --check must pass before a commit. CI runs cargo fmt --all --check, cargo build --workspace --locked, cargo clippy --workspace --all-targets -- -D warnings and cargo test --workspace --locked, in that order.
  • UPDATE_GOLDEN=1 cargo test -p domux-term --test golden rewrites the golden files. Read the diff against the fixture's intent before committing it: a golden that changed because the emulator changed is the point, and one that changed because a test was loosened is a defect being recorded as correct.
  • crates/domux-term/scripts/ghostty-src.sh prints the Ghostty tree the build resolved. build.rs exports the same path as DOMUX_GHOSTTY_SRC, and tests/header_fingerprint.rs and tests/zig_pin.rs read it, so the bindings are always checked against the headers that were actually compiled.
  • cargo run -p domux -- api schema prints the control API schema.
  • The shell half has its own suites, all POSIX sh: sh tests/license/run.sh, sh tests/release/run.sh and sh tests/install/run.sh (and the same under TEST_SHELL=bash). shellcheck -s sh install.sh scripts/release/*.sh scripts/dev/*.sh tests/lib/assert.sh tests/license/run.sh tests/release/run.sh tests/install/run.sh tests/install/fakebin/* must pass too, the same list .github/workflows/ci.yml gives it: leave out tests/lib/assert.sh and shellcheck exits 1 on the files that source it. CI runs all of it on macOS and Ubuntu.
  • The Neovim plugin has its own suite: nvim --headless -l tests/nvim/run.lua, with Neovim 0.10 or later. It needs no build. It serves a fake control API, and tests/nvim/requests.jsonl, which a domux-core test parses, keeps that fake honest. CI runs it on macOS and Ubuntu against Neovim 0.10.4 and 0.11.6.
  • cargo about generate --fail -o /dev/null about.hbs checks that every compiled crate's license is in about.toml. Install it with cargo install cargo-about --version 0.9.2 --locked --features cli; without --features cli nothing is installed.
  • Releases: a v* tag runs .github/workflows/release.yml, which builds four archives with scripts/release/build-archive.sh, smoke-tests each on its own platform, verifies SHA256SUMS, and publishes the GitHub release with the CHANGELOG.md section for that version. The tag must equal [workspace.package].version. Versions stay low: the releases start at 0.1.0, and the next one is the next patch unless the author asks for another. A CHANGELOG.md section opens with a one-line summary, which domux.dev shows beside the newest version. gh workflow run release.yml -f version=<x.y.z> runs everything except the publish. Read docs/decisions/0039, 0048 and docs/milestones/m5.md before changing any of it.
  • site/ is domux.dev. .github/workflows/pages.yml publishes it with install.sh at /install.sh on every push to main that changes either, so the install command is curl -fsSL https://domux.dev/install.sh | sh. The page is one HTML file with no build step. Decision 0047 records why.
  • Run domux only in its own Ghostty tab, never inside tmux. ~/bin/domux points at target/release/domux. V1, the Go version, is the v1 branch and is never built or run from here.
  • scripts/dev/deploy.sh runs the latest build without ending a pane: it fast-forwards the checkout (--no-pull builds it as it is), builds release, links ~/.local/bin/domux and ~/bin/domux to the build, and runs domux server upgrade. It is safe to run from inside a pane.

Read the full file on GitHub · 155 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. 28d ago Changed · +18 tokens per session 5399dd4ac89d
  2. 29d ago Changed · +33 tokens per session b8c68ca3f2f1
  3. 1mo ago Changed · +2 lines · +286 tokens per session a7f44c911a68
  4. 1mo ago Changed · +1 lines · +107 tokens per session e1c989091a73
  5. 1mo ago Changed · +21 lines · +533 tokens per session ca5e96d3795f
  6. 1mo ago Changed · +69 tokens per session babba29fbd17
  7. 1mo ago Changed · +25 lines · +876 tokens per session scan A → C 920f75b498e6
  8. 1mo ago Changed · +23 lines · +572 tokens per session 2ef3ba5fefec
  9. 1mo ago Changed · +31 lines · +2,927 tokens per session 2a672017a0a9
  10. 1mo ago First seen · 52 lines · 515 tokens per session scan A 03ff23a77875

Subscribe to this mod's changes

domux AGENTS.md is an instructions file published in the GitHub repository pranav7/domux (8 stars, last pushed yesterday), licensed Apache-2.0. It adds 5,936 tokens to every session, about $0.0237 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). 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

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,715 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,461 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

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens