tcmux CLAUDE.md

tcmux CLAUDE.md is an instructions file for Claude Code from k1LoW/tcmux. It costs 695 tokens per session, scanned A, original, MIT.

Repository instructions for tcmux, a command-line program that shows coding-agent sessions running in tmux, a terminal tool for managing multiple sessions. They describe how to build, test, install, and lint the project.

In plain words
What is it for?
Use them when developing tcmux, running all or one test, building or installing the program, checking code style, or understanding its main folders.
Why use it?
They give an agent the project-specific commands and structure needed to make changes without guessing how the repository works.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

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/k1low/tcmux/claude-md
Clone the repo
git clone --depth 1 https://github.com/k1LoW/tcmux

Made for: Claude Code.

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 tcmux CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/k1low/tcmux/claude-md.svg)](https://agentmods.dev/instructions/k1low/tcmux/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/k1low/tcmux/claude-md"><img src="https://agentmods.dev/badge/instructions/k1low/tcmux/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 695 This file is loaded in full into every session.
When invoked 695 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.1 $0.00695 $0.00695
Opus 5 $0.00347 $0.00347
Sonnet 5 $0.00139 $0.00139
Haiku 4.5 $0.00069 $0.00069

Measured 6d ago against content hash 4ce951f35d5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tcmux CLAUDE.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 6d 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.

CLAUDE.md · 72 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Build & Development Commands

# Run all tests with coverage
make test

# Run a single test
go test -v ./agent -run TestClaudeAgent_ParseStatus

# Build the binary
make build

# Install locally
make install

# Lint (requires golangci-lint and gostyle)
make lint

# Install dev dependencies
make depsdev

Architecture

tcmux is a CLI tool that displays coding agent instances (Claude Code, GitHub Copilot CLI) running in tmux windows/sessions along with their status.

Core Components

  • cmd/: CLI commands using cobra

    • root.go - Root command with --color flag
    • lsw.go - list-windows (alias: lsw) - Lists windows with coding agent status
    • ls.go - list-sessions (alias: ls) - Lists sessions with coding agent stats
  • agent/: Coding agent detection and status parsing

    • agent.go - Detector interface and Detect() function for agent detection
    • claude.go - Claude Code detection (pane title with prefix or Braille spinner, process claude or node)
    • status_claude.go - Claude Code status parsing
    • copilot.go - Copilot CLI detection (process copilot)
    • status_copilot.go - Copilot CLI status parsing
    • status.go - Common status utilities
  • tmux/: tmux interaction via shell commands

    • tmux.go - Wraps tmux list-panes, tmux list-sessions, tmux capture-pane
  • output/: Output formatting and colorization

    • format.go - Expands format strings with tmux variables and custom #{agent_status} variable
    • color.go - Terminal color handling with termenv

Data Flow

  1. CLI command parses user format string and extracts tmux variables
  2. tmux.ListPanes() or tmux.ListSessions() fetches data from tmux
  3. For each pane, agent.Detect() checks if it's a coding agent (Claude Code or Copilot CLI)
  4. tmux.CapturePane() gets pane content, agent's ParseStatus() determines state
  5. output.ExpandFormat() generates final output with colors

Read the full file on GitHub · 72 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. 6d ago First seen · 72 lines · 695 tokens per session scan A 4ce951f35d5b

Subscribe to this mod's changes

tcmux CLAUDE.md is an instructions file published in the GitHub repository k1LoW/tcmux (41 stars, last pushed 6mo ago), licensed MIT. It adds 695 tokens to every session, about $0.0035 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.