teamclaude: Instructions file for Claude Code

CLAUDE.md

teamclaude CLAUDE.md is an instructions file for Claude Code from albertnahas/teamclaude. It costs 1,147 tokens per session, scanned B, original, MIT.

Project instructions for TeamClaude, a server that watches Claude Code agent activity and displays a live sprint dashboard. They document its commands, architecture, data flow, and development checks.

In plain words
What is it for?
They guide development, building, testing, and type-checking for TeamClaude, including its dashboard, server, CLI, and real-time agent activity display.
Why use it?
They give coding agents a shared understanding of how the dashboard, server, filesystem watcher, and WebSocket connection fit together. This makes changes and troubleshooting more consistent.

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/albertnahas/teamclaude/claude-md.svg)](https://agentmods.dev/instructions/albertnahas/teamclaude/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/albertnahas/teamclaude/claude-md"><img src="https://agentmods.dev/badge/instructions/albertnahas/teamclaude/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,147 This file is loaded in full into every session.
When invoked 1,147 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.01147 $0.01147
Opus 5 $0.00574 $0.00574
Sonnet 5 $0.00229 $0.00229
Haiku 4.5 $0.00115 $0.00115

Measured 8d ago against content hash 24cb8447a29d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade B, and why

teamclaude 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 8d 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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

├── prompt.ts Compiles sprint prompt for PM/manager/engineer agents
CLAUDE.md · 102 lines

How it starts

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

Commands

npm run dev                # Dev server with tsx (hot reload at http://localhost:3456)
npm run build              # Dashboard (Vite) → server/ui.html, then esbuild → dist/server.js
npm test                   # vitest run (all 220+ tests)
npm run test:watch         # vitest in watch mode
npx vitest run server/complexity.test.ts   # Run a single test file
npm run type-check         # tsc --noEmit (strict mode)

The dashboard build produces a single-file HTML bundle (dashboard/ → server/ui.html) via vite-plugin-singlefile. The server build then copies this into dist/.

Architecture

TeamClaude is a real-time sprint visualization server for Claude Code agent teams. It observes agent activity by watching the filesystem and renders a live dashboard via WebSocket.

bin/teamclaude.js          CLI entry: init (scaffold plugin) | start (spawn server)
        │
        ▼
server/index.ts            HTTP + WebSocket server (port 3456)
├── state.ts               Shared SprintState singleton + WsEvent types + broadcast()
├── watcher.ts             Chokidar watches ~/.claude/teams/ and ~/.claude/tasks/
├── persistence.ts         Debounced save/load of state to .teamclaude/state.json
├── prompt.ts              Compiles sprint prompt for PM/manager/engineer agents
├── tmux.ts                Tmux session lifecycle + pane capture polling
├── protocol.ts            Detects message protocol tags (TASK_ASSIGNED, APPROVED, etc.)
├── planner.ts             Task dependency inference + execution ordering
├── model-router.ts        Task complexity → model selection (haiku/sonnet/opus)
├── retro.ts               Auto-generates sprint retrospective markdown
├── git.ts                 Sprint branch creation + PR summary
└── ui.html                Dashboard bundle (generated, do not edit directly)

dashboard/src/             React + TypeScript (Vite)
├── App.tsx                Main component: useReducer over WsEvent stream
├── hooks/useWebSocket.ts  Reconnecting WebSocket with exponential backoff
├── hooks/useTheme.ts      Dark/light mode toggle
└── components/            Pure, props-driven components

Read the full file on GitHub · 102 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. 8d ago First seen · 102 lines · 1,147 tokens per session scan B 24cb8447a29d

Subscribe to this mod's changes

teamclaude CLAUDE.md is an instructions file published in the GitHub repository albertnahas/teamclaude (13 stars, last pushed 4mo ago), licensed MIT. It adds 1,147 tokens to every session, about $0.0057 per session on Opus 5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 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,296 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,469 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens