cc-fleet: Instructions file for Claude Code

CLAUDE.md

cc-fleet CLAUDE.md is an instructions file for Claude Code from ethanhq/cc-fleet. It costs 3,436 tokens per session, scanned B, original, Apache-2.0.

Project instructions for cc-fleet, a Go command-line tool and Claude Code plugin that runs Claude workers through other compatible AI providers.

In plain words
What is it for?
Use it when developing, building, testing, or operating cc-fleet and its Claude Code integration.
Why use it?
It explains the different ways workers run and sets coding, testing, and attribution rules so changes fit the project.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ethanhq/cc-fleet/claude-md"><img src="https://agentmods.dev/badge/instructions/ethanhq/cc-fleet/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,436 This file is loaded in full into every session.
When invoked 3,436 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.03436 $0.03436
Opus 5.5 $0.01374 $0.01374
Sonnet 5.5 $0.00687 $0.00687
Haiku 4.5 $0.00344 $0.00344

Measured 12d ago against content hash 8163ca617ad0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

cc-fleet 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 12d 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.

- `~/.claude/settings.json` — cc-fleet sets `env.CLAUDE_CODE_TEAMMATE_COMMAND`,
CLAUDE.md · 197 lines

How it starts

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

What this is

cc-fleet is a Go CLI (+ a Claude Code plugin) that runs third-party LLM providers (DeepSeek, GLM, Kimi, Qwen, MiniMax — anything with an Anthropic-compatible API, plus ChatGPT-subscription codex and OpenAI-protocol endpoints) as real Claude Code workers. The core trick: a provider worker is a genuine claude process whose LLM backend is swapped by launching it with --settings <provider-profile>.json (which sets ANTHROPIC_BASE_URL + an apiKeyHelper) and --model <provider-model-id>. The main session's own auth (OAuth or API key) is never touched.

There are four execution lanes — internalize this split, most of the code maps onto it:

  • Teammate — internal/teammate. A native Claude Code teammate the lead starts with Agent({description, name, subagent_type:"ccf-<provider>[.strong|.fast]", prompt}) and drives with SendMessage; Claude Code owns the team, pane, inbox and cleanup. Claude Code runs the pane through CLAUDE_CODE_TEAMMATE_COMMAND = cc-fleet's shim (<ConfigDir>/bin/claude-teammate), which execs the launcher cc-fleet __teammate-launch; the launcher swaps in the provider's profile and model and execs the lead's exact claude. teammate check (lead's Bash) and teammate guard (the plugin's PreToolUse(Agent) hook) share one Evaluate. Terminal claude only (teammateMode tmux anywhere, auto inside tmux/iTerm2), Claude Code ≥ 2.1.278; not the desktop app, -p, or SDK. Unix-only.
  • Subagent — internal/subagent. claude -p headless, one-shot (or --background with a job file); classified Result envelope on stdout. The reserved id claude runs the leaf on the user's own Claude login (explicit-only; subagent/workflow lanes only — no profile, no keyget).
  • Workflow — internal/workflow. A detached engine running a JS script on an embedded goja VM; each agent() leaf is a provider subagent. Journaled (--resume), leaves can be held/restarted live, workflow wait is the push-notification verb.
  • Interactive — internal/run. Execs a provider-backed interactive claude in the current terminal. No tmux, no team, no locks.

Read the full file on GitHub · 197 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. 12d ago Changed 8163ca617ad0
  2. 14d ago Changed · +38 lines · +887 tokens per session scan A → B a4797cb9e87b
  3. 1mo ago First seen · 159 lines · 2,549 tokens per session scan A 4751bb17b21e

Subscribe to this mod's changes

cc-fleet CLAUDE.md is an instructions file published in the GitHub repository ethanhq/cc-fleet (185 stars, last pushed 4d ago), licensed Apache-2.0. It adds 3,436 tokens to every session, about $0.0137 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-30.

Related

Other instructions, from other repositories