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.
curl -O https://raw.githubusercontent.com/pranav7/domux/main/AGENTS.mdgit clone --depth 1 https://github.com/pranav7/domuxWrote 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.
[](https://agentmods.dev/instructions/pranav7/domux/agents-md)<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.
<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>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.
| Model | Per session | Once 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 |
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`. 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: theEmulatortrait andGhosttyEmulator, its one implementation. There is no second emulator and no cargo feature to select. Readdocs/decisions/0001-terminal-emulator.mdanddocs/decisions/0002-ghostty-source-acquisition.mdbefore 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.rsis 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: thedomuxbinary. One file per API namespace undersrc/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 --workspacefetches two pinned inputs on the first build and caches both under~/.cache/domux: the Ghostty source, cloned at the commit invendor/ghostty-pin.toml, and the Zig that builds it, fromvendor/zig-pin.toml.DOMUX_GHOSTTY_SOURCE_DIRandDOMUX_ZIGpoint at local copies.- A cold build can fail while Zig fetches Ghostty's dependencies:
deps.files.ghostty.orgreturnsTlsInitializationFailedintermittently 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 editsvendor/ghostty-pin.toml. It regenerates the bindings and runs the suite.cargo test --workspaceruns everything. Interface tests live incrates/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 warningsandcargo fmt --all --checkmust pass before a commit. CI runscargo fmt --all --check,cargo build --workspace --locked,cargo clippy --workspace --all-targets -- -D warningsandcargo test --workspace --locked, in that order.UPDATE_GOLDEN=1 cargo test -p domux-term --test goldenrewrites 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.shprints the Ghostty tree the build resolved.build.rsexports the same path asDOMUX_GHOSTTY_SRC, andtests/header_fingerprint.rsandtests/zig_pin.rsread it, so the bindings are always checked against the headers that were actually compiled.cargo run -p domux -- api schemaprints the control API schema.- The shell half has its own suites, all POSIX sh:
sh tests/license/run.sh,sh tests/release/run.shandsh tests/install/run.sh(and the same underTEST_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.ymlgives it: leave outtests/lib/assert.shand 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, andtests/nvim/requests.jsonl, which adomux-coretest 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.hbschecks that every compiled crate's license is inabout.toml. Install it withcargo install cargo-about --version 0.9.2 --locked --features cli; without--features clinothing is installed.- Releases: a
v*tag runs.github/workflows/release.yml, which builds four archives withscripts/release/build-archive.sh, smoke-tests each on its own platform, verifiesSHA256SUMS, and publishes the GitHub release with theCHANGELOG.mdsection 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. ACHANGELOG.mdsection 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. Readdocs/decisions/0039,0048anddocs/milestones/m5.mdbefore changing any of it. site/is domux.dev..github/workflows/pages.ymlpublishes it withinstall.shat/install.shon every push tomainthat changes either, so the install command iscurl -fsSL https://domux.dev/install.sh | sh. The page is one HTML file with no build step. Decision0047records why.- Run
domuxonly in its own Ghostty tab, never inside tmux.~/bin/domuxpoints attarget/release/domux. V1, the Go version, is thev1branch and is never built or run from here. scripts/dev/deploy.shruns the latest build without ending a pane: it fast-forwards the checkout (--no-pullbuilds it as it is), builds release, links~/.local/bin/domuxand~/bin/domuxto the build, and runsdomux server upgrade. It is safe to run from inside a pane.
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.
- 28d ago Changed · +18 tokens per session 5399dd4ac89d
- 29d ago Changed · +33 tokens per session b8c68ca3f2f1
- 1mo ago Changed · +2 lines · +286 tokens per session a7f44c911a68
- 1mo ago Changed · +1 lines · +107 tokens per session e1c989091a73
- 1mo ago Changed · +21 lines · +533 tokens per session ca5e96d3795f
- 1mo ago Changed · +69 tokens per session babba29fbd17
- 1mo ago Changed · +25 lines · +876 tokens per session scan A → C 920f75b498e6
- 1mo ago Changed · +23 lines · +572 tokens per session 2ef3ba5fefec
- 1mo ago Changed · +31 lines · +2,927 tokens per session 2a672017a0a9
- 1mo ago First seen · 52 lines · 515 tokens per session scan A 03ff23a77875
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.
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).
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.
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).
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.
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).
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.