set-copilot: Instructions file for Claude Code

CLAUDE.md

set-copilot CLAUDE.md is an instructions file for Claude Code from tatargabor/set-copilot. It costs 12,851 tokens per session, scanned A, original, MIT.

A repository-specific instruction file for Claude Code, an AI coding assistant. It records project commands, testing rules, architecture notes, and the OpenSpec workflow used to propose and apply changes.

In plain words
What is it for?
Use it when working on this repository to build the TypeScript project, run tests, follow its specification workflow, and verify changes involving audio, external services, or process management.
Why use it?
It gives the coding assistant the project context it needs instead of relying on general assumptions. It also explains which checks cover pure code and which parts require running the real command-line tool.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 set-copilot CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tatargabor/set-copilot/claude-md"><img src="https://agentmods.dev/badge/instructions/tatargabor/set-copilot/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12,851 This file is loaded in full into every session.
When invoked 12,851 The same file — it is already loaded in full.
Security scan A 0 findings. 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.12851 $0.12851
Opus 5.5 $0.05140 $0.05140
Sonnet 5.5 $0.02570 $0.02570
Haiku 4.5 $0.01285 $0.01285

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

Security

Grade A, and why

set-copilot CLAUDE.md scanned grade A with 0 findings 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 459 lines

How it starts

The opening of the file, as written. The whole thing — 459 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 build            # tsc → dist/ (bin + exports point at dist, so build before testing the CLI)
npm run dev -- <args>    # run the CLI from TypeScript source, e.g. npm run dev -- doctor
npm test                 # vitest run
npx vitest run src/config.test.ts       # a single file
npx vitest run -t "flushes on a sentence"  # a single test by name

There is no linter. tsc runs in strict mode and is the only static check.

Tests cover the pure logic only (config resolution, keyword matching, source globbing, transcript flush rules, prompt rendering) — everything that does not need a microphone. Anything touching audio, Soniox, or the PID lifecycle is verified by running the CLI.

set-copilot doctor is the fastest way to verify a change end-to-end: it probes the real audio chain (binary → device → bytes → signal level) rather than guessing, and reports whether Soniox credentials resolve.

OpenSpec workflow

Spec-driven changes live in openspec/changes/; the applied source of truth is openspec/specs/. Drive this work through the /opsx:* skills (/opsx:propose, /opsx:apply, /opsx:archive, /opsx:continue, /opsx:status), not the raw openspec CLI by hand — the skills enforce the workflow (context-file reads, status/artifact ordering, sync-then-archive). The bare CLI is fine only for quick read-only inspection.

The cycle is propose → /opsx:review → apply → verify → archive. /opsx:review runs two agents blind and in parallel — adversarial-code-reviewer (refutes the plan against the real code) and rules-conformance-auditor (PASS/FAIL/N-A per mandatory rule) — and merges them into openspec/changes/<name>/review-findings.md. No apply while a CRITICAL there is OPEN; see .claude/rules/spec-adversarial-review.md.

Commit at each step. An /opsx:apply (implementation) and an /opsx:archive (spec sync + move) are each a commit-worthy unit — commit after each rather than batching many changes into one. Doing it after the fact is fine when a run got ahead of its commits, but the default is one commit per apply and one per archive.

Read the full file on GitHub · 459 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. 9d ago Changed · +11 lines · +212 tokens per session ead5c7f1e6a0
  2. 1mo ago Changed · +13 lines · +871 tokens per session 1892d60ae393
  3. 2mo ago Changed · +15 lines · +859 tokens per session 4407f43d85f5
  4. 3mo ago First seen · 420 lines · 10,909 tokens per session scan A 3627eac8ff89

Subscribe to this mod's changes

set-copilot CLAUDE.md is an instructions file published in the GitHub repository tatargabor/set-copilot (3 stars, last pushed 6d ago), licensed MIT. It adds 12,851 tokens to every session, about $0.0514 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

set-copilot CLAUDE.md compared with instructions from other repositories

set-copilot CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
set-copilot CLAUDE.mdtatargabor/set-copilotInstructions file36d agoMITA12,851Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot