cc-windows: Instructions file for Claude Code

CLAUDE.md

cc-windows CLAUDE.md is an instructions file for Claude Code from pickjason/cc-windows. It costs 2,960 tokens per session, scanned B, a copy of cc-windows AGENTS.md, MIT.

Repository instructions for cc-window, a local web dashboard for monitoring and controlling multiple Claude Code sessions. They describe its commands, data sources, and TypeScript server and browser architecture.

In plain words
What is it for?
Running the development or production app, checking types, changing session monitoring or terminal behavior, and working with its event logs, historical records, and browser interface.
Why use it?
They explain how the dashboard observes session status and historical usage, so coding agents do not confuse live monitoring with transcript analysis or invent an unsupported interface.

Instructions file for Claude Code

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

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/wang/.claude.

Reuse

Borrowing it

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

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 cc-windows CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/pickjason/cc-windows/claude-md"><img src="https://agentmods.dev/badge/instructions/pickjason/cc-windows/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,960 This file is loaded in full into every session.
When invoked 2,960 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 97% copy Near-identical to another mod 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.02960 $0.02960
Opus 5.5 $0.01184 $0.01184
Sonnet 5.5 $0.00592 $0.00592
Haiku 4.5 $0.00296 $0.00296

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

Security

Grade B, and why

cc-windows 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 1mo 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.

npm run install-hooks # = bash scripts/install-hooks.sh,装监控 hooks 到 ~/.claude/settings.json
Origin

This is a copy

97% identical to cc-windows AGENTS.md — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 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.

项目本质

cc-window 是一个本地网页版 Claude Code 多会话管理台:一屏监控全机所有 Claude Code 会话状态、网页里新建会话、操作每个会话的交互式终端。仅监听 127.0.0.1:4317。

奠基事实(动手前务必理解):Claude Code 没有对外的 socket / 端口 / HTTP 查询接口。本项目的全部可观测性来自三件事的叠加,改任何状态/会话逻辑都绕不开这三个源:

  1. 轮询 claude agents --json(源 A,全量会话真相 + busy/idle/waiting)
  2. tail ~/.claude/monitor/events.jsonl(源 B,hooks 写的秒级事件流,给出精确等待原因)
  3. 自管 PTY(用 node-pty 启动会话并桥接到浏览器 xterm.js)

详尽且已核实的事实在 docs/02-claude-code-observability.md——它是本仓库的基石文档,涉及 Claude Code 行为时先读它,不要凭记忆推断。

除实时管理外,还有一块历史用量统计(看板顶栏「📊 统计」入口):解析 ~/.claude/projects/**/*.jsonl 历史记录,出活跃热力图 / token 趋势 / 日报等。它复用同一批 transcript 文件,但做的是「回看历史用量」,与上面三源「看实时状态」是不同维度。承接独立工具 cc-journal,合并设计见 docs/11-merge-cc-journal.md。

常用命令

npm install            # postinstall 自动 chmod +x node-pty 的 spawn-helper(见下方坑)
npm run dev            # 开发:vite(5173,HMR)+ 后端(4317),浏览器开 http://127.0.0.1:5173
npm run build && npm start   # 生产:构建后由后端单端口托管,开 http://127.0.0.1:4317
npm run typecheck      # tsc --noEmit —— strict + noUncheckedIndexedAccess,覆盖 server/web 含 *.test.ts
npx tsx web/terminalResize.test.ts  # 跑单个单元测试(无 npm test / 无 runner,逐个 tsx 跑)
npm run install-hooks  # = bash scripts/install-hooks.sh,装监控 hooks 到 ~/.claude/settings.json
  • 没有 linter、没有测试 runner(无 npm test),但有单元测试:核心纯逻辑被抽到无副作用的小模块(web/terminalResize.ts、server/tmux-handoff.ts 等),每个配一个同名 *.test.ts,用 node:assert/strict 断言、末尾 console.log("... passed"),逐个 npx tsx <file>.test.ts 跑。改这类逻辑前先看有没有对应 .test.ts,改完把它跑绿。
  • 完整校验仪式(见 docs/10):跑齐全部 8 个 *.test.ts + npm run typecheck + npm run build。tsconfig 开了 strict + noUncheckedIndexedAccess。
  • hooks 安装器支持 --dry-run(只看 diff)与 --uninstall(只移除本工具的 8 个 hook,保留其它);写入前自动备份 settings.json。需要 jq。
  • UI 改动按项目惯例用浏览器实机截图验证(mcp__claude-in-chrome)。

架构与数据流

后端(server/,tsx 直跑 TS,ESM,import 带 .js 后缀)

单进程 express + ws,index.ts 是装配点,把这些单例接起来:

Read the full file on GitHub · 71 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. 1mo ago First seen · 71 lines · 2,960 tokens per session scan B 1aa1e036b1c9

Subscribe to this mod's changes

cc-windows CLAUDE.md is an instructions file published in the GitHub repository pickjason/cc-windows (5 stars, last pushed 4mo ago), licensed MIT. It adds 2,960 tokens to every session, about $0.0118 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). It is 97% identical to cc-windows AGENTS.md, differing in 6 lines, and is treated as a copy.

Related

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).

microsoft/vscode · 9,715 tokens

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.

vercel/next.js · 7,461 tokens

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).

microsoft/vscode · 5,262 tokens

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.

langchain-ai/langchain · 4,680 tokens

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).

microsoft/vscode · 2,731 tokens

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.

deepseek-ai/deepseek-harness · 4,261 tokens