ccmux AGENTS.md

ccmux AGENTS.md is an instructions file for Codex, OpenCode from epilande/ccmux. It costs 6,277 tokens per session, scanned A, original, MIT.

A project instruction file for ccmux, a terminal dashboard that tracks AI coding-agent sessions running in tmux panes.

In plain words
What is it for?
It is for developing the Bun and TypeScript command-line tool, monitoring agent logs, and verifying changes to its interactive terminal interface.
Why use it?
It records the supported agents, technical stack, file-watching approach, and coding conventions needed to change the tool safely.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/epilande/ccmux/agents-md.svg)](https://agentmods.dev/instructions/epilande/ccmux/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/epilande/ccmux/agents-md"><img src="https://agentmods.dev/badge/instructions/epilande/ccmux/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 6,277 This file is loaded in full into every session.
When invoked 6,277 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.06277 $0.06277
Opus 5 $0.03138 $0.03138
Sonnet 5 $0.01255 $0.01255
Haiku 4.5 $0.00628 $0.00628

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

Security

Grade A, and why

ccmux 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 · 226 lines

How it starts

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

AGENTS.md

Project Overview

ccmux is a CLI tool for tracking AI coding agent sessions running in tmux panes and jumping to the one that needs you. It uses a background daemon that detects agent processes, watches log files, and scans terminal output to derive session state. An interactive TUI shows live session states at a glance.

Built-in agents: Claude Code, Codex, Cursor, OpenCode, Pi, oh-my-pi (omp), Antigravity, Copilot, Gemini CLI, plus custom agent definitions via config.

Tech Stack

  • Runtime: Bun 1.x
  • Language: TypeScript 5.x
  • TUI Framework: @opentui/solid 0.1.97 (Solid.js-based terminal UI)
  • Reactivity: Solid.js 1.9
  • File Watching: native recursive fs.watch for the agent log trees (log-tree-watcher.ts; chokidar fallback when recursive watching is unavailable), chokidar 4.x for the small flat dirs (markers, Claude subagents); stat-polling for agents that hold their log fd open (codex), whose appends fs.watch cannot see
  • CLI Framework: Commander 14.x

Development Guidelines

  • Always use bun instead of npm for all package management and script execution
  • Avoid as any type casts. Use proper types, generics, or as unknown as T only when source types have a genuine gap
  • Use ccmux show to check session status and see active tmux panes
  • You can run tmux and ccmux commands directly to test features end to end (e.g., ccmux screen, ccmux send, ccmux spawn, tmux list-panes, tmux send-keys)

Verifying TUI changes

Typecheck and bun test verify code correctness, not rendering correctness. After any change touching TUI components, columns, layout, theming, or the daemon→TUI data path, you MUST launch the picker and/or sidebar and capture the output before declaring the work done. Non-rendering CLI commands (ccmux show, ccmux config get/set) do not exercise the renderer.

Always test in a detached, isolated tmux session. Do not launch the picker in a window/pane inside the user's active session.

Read the full file on GitHub · 226 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. 4d ago First seen · 226 lines · 6,277 tokens per session scan A 6576ef8a2132

Subscribe to this mod's changes

ccmux AGENTS.md is an instructions file published in the GitHub repository epilande/ccmux (151 stars, last pushed 4d ago), licensed MIT. It adds 6,277 tokens to every session, about $0.0314 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.