dmux is a developer-agent multiplexer that uses tmux and Git worktrees to run multiple coding agents in isolated branches and panes. It helps developers assign tasks to several agents in parallel and then merge the results or create pull requests. The catalogue contains instructions for working with dmux.
Borrowing it
Nothing to install: this file belongs to standardagents/dmux. 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/standardagents/dmux/main/AGENTS.mdgit clone --depth 1 https://github.com/standardagents/dmuxWrote 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/standardagents/dmux/agents-md)<a href="https://agentmods.dev/instructions/standardagents/dmux/agents-md"><img src="https://agentmods.dev/badge/instructions/standardagents/dmux/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/standardagents/dmux/agents-md"><img src="https://agentmods.dev/badge/instructions/standardagents/dmux/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.01916 | $0.01916 |
| Opus 5.5 | $0.00766 | $0.00766 |
| Sonnet 5.5 | $0.00383 | $0.00383 |
| Haiku 4.5 | $0.00192 | $0.00192 |
Grade A, and why
dmux 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md - dmux Maintainer Guide
This file is the maintainer-focused source of truth for working on dmux itself.
Docs map
README.md: end-user overview and install/usage.CONTRIBUTING.md: local development loop and PR workflow.AGENTS.md(this file): maintainer behavior, architecture landmarks, and current dev-mode workflow.
CLAUDE.md is a symlink to this file for tool compatibility.
Project overview
dmux is a TypeScript + Ink TUI for managing parallel AI-agent work in tmux panes backed by git worktrees.
Core behavior:
- One project-scoped dmux session (stable name based on project root hash)
- One worktree per work pane
- Durable regular terminals restored in their last observed working directories
- Agent launch + prompt bootstrap in each pane
- Merge/close actions with worktree cleanup hooks
- Optional multi-project grouping in one session
Important architecture landmarks
src/index.ts: startup, tmux session attach/create, control pane management, dev-mode startup behaviorsrc/DmuxApp.tsx: main TUI state, status/footer, input hookups, source switchingsrc/services/DmuxFocusService.ts: macOS helper lifecycle, fully-focused pane tracking, helper-backed native notificationssrc/services/DmuxAttentionService.ts: attention-notification coordinator for idle/waiting panessrc/services/InferenceService.ts: provider-neutral text inference, dynamic model discovery, and primary/backup failoversrc/services/CodexAppServerClient.ts: ChatGPT subscription auth/model/inference bridge through Codex app-serversrc/services/TerminalPaneNamingService.ts: LLM-based naming for regular terminals — untitled panes are checked aggressively and named from streaming output; titled panes only rename from settled output on a relaxed cadence; human names are protectedsrc/utils/paneAgentTracking.ts: process-tree detection for agents launched manually in any pane, plus exact Claude/Codex session capture used by crash restorationsrc/hooks/usePaneLoading.ts: persisted pane loading/rebinding and recreation for both worktree and terminal panessrc/hooks/useInputHandling.ts: keyboard and menu action handlingsrc/services/PopupManager.ts: popup launch + data plumbingsrc/actions/types.ts: action registry and menu visibility rulessrc/actions/implementations/closeAction.ts: close behavior + source fallback on source-pane removalsrc/components/panes/*: pane list rendering (includes source indicator)src/utils/sidebarMouse.ts+src/hooks/useSidebarMouse.ts: sidebar mouse support; mouse escape sequences are stripped from Ink's stdin via a proxy stream and re-emitted as events. Click highlights a row without changing tmux pane focus, double-click activates it (pane menu / action button), wheel steps the selection.kebabMenuPopupuses the same scheme so menu items are clickable
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.
- 2mo ago First seen · 185 lines · 1,916 tokens per session scan A 7bcfbc772208
dmux AGENTS.md is an instructions file published in the GitHub repository standardagents/dmux (1,816 stars, last pushed 2mo ago), licensed MIT. It adds 1,916 tokens to every session, about $0.0077 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-30.
dmux AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dmux AGENTS.mdstandardagents/dmux | Instructions file | 1.8k | 2mo ago | MIT | A | 1,916 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |