Clutch: Instructions file for Claude Code

CLAUDE.md

Clutch CLAUDE.md is an instructions file for Claude Code from fancy1108/Clutch. It costs 3,575 tokens per session, scanned A, original, MIT.

The main rulebook for a desktop application project that coordinates multiple AI agents. It describes the project's purpose, technology choices, coding limits, required checks, and rules for keeping documentation and commits accurate.

In plain words
What is it for?
Use it when developing the application's desktop interface, Python service, agent workflows, documentation, tests, commits, or release checks.
Why use it?
It gives agents one trusted source for how the project must be changed and verified. This helps avoid conflicting instructions, unsafe architecture changes, and unfinished work being marked complete.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fancy1108/clutch/claude-md"><img src="https://agentmods.dev/badge/instructions/fancy1108/clutch/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,575 This file is loaded in full into every session.
When invoked 3,575 The same file — it is already loaded in full.
Security scan A 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.03575 $0.03575
Opus 5.5 $0.01430 $0.01430
Sonnet 5.5 $0.00715 $0.00715
Haiku 4.5 $0.00358 $0.00358

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

Security

Grade A, and why

Clutch CLAUDE.md scanned grade A 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Chat 露 `urlopen SSL UNEXPECTED_EOF` → `web_fetch` 须走 httpx + 友好错误,勿把 urllib SSL 原文甩给用户;改完重启 Sidecar
CLAUDE.md · 194 lines

How it starts

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

Clutch — Tauri · React 19 · FastAPI + LangGraph · 本地零代码多 Agent 编排

Canonical 权威源:本文件为治理规则与开发纪律的唯一完整条文。其他 AI 指令文件(AGENTS.md、.cursor/rules/*.mdc、.github/copilot-instructions.md)仅作索引或精简指针,不得另行维护冲突规则。

📍 项目定位

Pitch: 面向开发者与技术运营人员的桌面应用,可视化编排、运行和监督 AI 多 Agent 工作流;用户零代码拖拽 SOP,系统调度本地 CLI / MCP / Cursor,统一监督执行与人工审批。

栈: Tauri 2.x · React 19 + Vite · Tailwind CSS 4 · Motion · React Flow · pnpm | Python 3.11+ · FastAPI · LangGraph · uv

约束: 必须桌面端、LangGraph 为唯一编排引擎、用户零代码;前端仅 apps/desktop/src,Python 仅 services/orchestrator/src;前端禁止访问 DB 或执行系统命令;React 只投影 WebSocket ClutchState,禁止 setTimeout / mock 模拟编排;Sidecar 开发 localhost:8124、打包 localhost:8123;单次 ≤3 新文件、≤200 行;新依赖须人类批准。

Vibe: 业务语言优先 · 监督而非黑盒 · 失败可操作 · 渐进复杂度 · 本地优先


⛔ 铁律

  • 原子提交:每完成一个原子 task 立即 commit,禁止提交 broken 代码。
  • 每次 Git Commit 必须同步更新/核对 PRD(docs/PRODUCT_INTRO.md),确保产品功能与架构规格说明与真实代码实现100%一致。 用户可见功能合并后,未更新 PRODUCT_INTRO.md 不得将 Task 标为完成(与 CHANGELOG 发版门禁同级)。
  • 禁止猜测文件路径;找不到时读 memory/FILEMAP.md 或列目录确认。
  • 禁止同时处理多个功能;一次一个 task,commit 后再下一个。
  • 禁止在未实际运行校验命令的情况下标记功能完成。
  • 禁止在未更新 specs/ 或 memory/DECISIONS.md 的情况下做架构级业务变更。
  • 禁止硬编码 API Key 或密钥;禁止将密钥写入日志。
  • 禁止扩展 Prototype mock 编排逻辑(setTimeout、mockData 等);去 mock 化须接真实 Sidecar 事件。
  • 禁止未更新 CHANGELOG.md 即打 Release tag 或发布 GitHub Release(scripts/release-preflight.sh INV-R5;见 docs/document-governance.md §Release 硬门禁)。
  • 禁止向 memory/archive/* 追加记录;轮转须新建归档文件并加 Archive Notice。

⚡ 核心命令

操作 命令
前端开发 pnpm dev(仅 Web;桌面见下行)
Tauri 桌面开发 export CLUTCH_RUNTIME_MODE=hybrid && pnpm tauri:dev
前端构建(校验) pnpm build
后端启动(开发) cd services/orchestrator && uv run uvicorn src.main:app --reload --port 8124
后端测试(校验) cd services/orchestrator && uv run pytest
本地一键校验(轻量) ./scripts/verify.sh
本地全量校验(含 E2E) ./scripts/verify.sh --e2e
文档↔代码漂移(机检) ./scripts/check-doc-drift.sh

会话校验(commit 前必跑): ./scripts/verify.sh(含 build + pytest + vitest + 漂移机检,默认排除重型 E2E 以免卡顿)

Read the full file on GitHub · 194 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 Changed · +3 lines · +227 tokens per session aebdaacb8383
  2. 1mo ago First seen · 191 lines · 3,348 tokens per session scan A 3ed5b56b0e96

Subscribe to this mod's changes

Clutch CLAUDE.md is an instructions file published in the GitHub repository fancy1108/Clutch (91 stars, last pushed today), licensed MIT. It adds 3,575 tokens to every session, about $0.0143 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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

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,649 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,384 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

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens