ccmonitor: Instructions file for Claude Code

CLAUDE.md

ccmonitor CLAUDE.md is an instructions file for Claude Code from MartinWickman/ccmonitor. It costs 277 tokens per session, scanned B, original, MIT.

Repository instructions for ccmonitor, a tool that tracks several concurrent Claude Code sessions in one live view. It uses Claude Code hooks to collect status data from each project.

In plain words
What is it for?
They help develop and test the monitor and hook handler, redirect session data to a test directory, inspect one-time output, and maintain the project's task notes.
Why use it?
They define safe development practices, including using project-local test settings and fake session files instead of changing global configuration or needing live sessions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions Claude Code.

This is MartinWickman/ccmonitor's own configuration. It tells Claude Code how to work on ccmonitor 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 ccmonitor configures →

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/martinwickman/ccmonitor/claude-md"><img src="https://agentmods.dev/badge/instructions/martinwickman/ccmonitor/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 277 This file is loaded in full into every session.
When invoked 277 The same file — it is already loaded in full.
Security scan B 1 finding. 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.00277 $0.00277
Opus 5.5 $0.00111 $0.00111
Sonnet 5.5 $0.00055 $0.00055
Haiku 4.5 $0.00028 $0.00028

Measured 2mo ago against content hash fa7c9f640d49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ccmonitor CLAUDE.md scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Never modify `~/.claude/settings.json`** during development. Use `.claude/settings.local.json` (project-scoped, gitignored) for testing hooks.
CLAUDE.md · 23 lines

What it actually says

ccmonitor

A monitoring tool for tracking multiple concurrent Claude Code instances across projects.

ccmonitor uses Claude Code hooks to collect status data from all running instances and displays them in a single live-updating view.

Development guidelines

  • Never modify ~/.claude/settings.json during development. Use .claude/settings.local.json (project-scoped, gitignored) for testing hooks.
  • Both the hook handler and monitor must support a CCMONITOR_SESSIONS_DIR environment variable that overrides the default ~/.ccmonitor/sessions/ path. Use this to point at a local test directory during development.
  • Use fake session files to test the monitor UI without needing live Claude Code sessions.
  • Don't git commit unless told to!
  • To parse and see the output, you can run the command with ccmonitor --once to just have it run, print the output and then exit.
  • Run unit tests
  • Update the @TODO file to keep track.

Key files

  • @PRD.md — Product requirements
  • @ARCHITECTURE.md — Architecture decisions, data flow, session file schema, tech stack
  • @TODO.md - Progress and what to do next. Update this as you progress
  • GO_BEST_PRACTICES.md - READ THIS WHEN WRITING GO PROGRAMMING LANGUAGE CODE
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. 2mo ago First seen · 23 lines · 277 tokens per session scan B fa7c9f640d49

Subscribe to this mod's changes

ccmonitor CLAUDE.md is an instructions file published in the GitHub repository MartinWickman/ccmonitor (2 stars, last pushed 8mo ago), licensed MIT. It adds 277 tokens to every session, about $0.0011 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

ccmonitor CLAUDE.md compared with instructions from other repositories

ccmonitor CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ccmonitor CLAUDE.mdMartinWickman/ccmonitorInstructions file28mo agoMITB277Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode