collie: Instructions file for Claude Code

CLAUDE.md

collie CLAUDE.md is an instructions file for Claude Code from AltanS/collie. It costs 17,945 tokens per session, scanned A, original, MIT.

Repository instructions for Collie, a mobile web interface for monitoring and replying to Herdr agents through Tailscale. They describe its React frontend, TypeScript bridge, project decisions, and development rules.

In plain words
What is it for?
Use them when changing the mobile interface, bridge, agent harnesses, API integration, or project version.
Why use it?
They preserve settled design decisions and explain the verified interface between the phone UI and the agent system.

Instructions file for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; mentions Claude Code.

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

About the project

Collie is a mobile web interface for monitoring and controlling terminal-based AI agents through Herdr, tmux, or zellij, with access provided over Tailscale. It lets operators check agent sessions, respond to prompts, search output, and perform terminal actions from a phone, including through push notifications and voice or file input.

AltanS/collie · 1,589 stars · on GitHub · colliepwa.dev

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/altans/collie/claude-md"><img src="https://agentmods.dev/badge/instructions/altans/collie/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17,945 This file is loaded in full into every session.
When invoked 17,945 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.17945 $0.17945
Opus 5.5 $0.07178 $0.07178
Sonnet 5.5 $0.03589 $0.03589
Haiku 4.5 $0.01794 $0.01794

Measured today against content hash 3bb2a0c075a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

collie 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 today.

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 · 836 lines

How it starts

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

CLAUDE.md — working agreement for this repo

Collie (repo AltanS/collie) — a phone web UI for the AI agents running in your terminal, served over Tailscale. A mobile-first PWA (Vite + React + TS + Tailwind v4 + shadcn) plus a Bun/TS bridge that mirrors ONE multiplexer per install — Herdr, tmux or zellij — letting you monitor and reply to agents from a phone. Herdr is one adapter among the three, not the product: it is the default, it is the only one that talks over a Unix socket, and its plugin route stays supported — plugin id herdr.collie (manifest: herdr-plugin.toml). Orientation: README.md · ARCHITECTURE.md · the UI's visual language DESIGN.md · verified API HERDR_API.md · decisions .adr/ · adding a harness HARNESS_CONTRIBUTING.md · adding a multiplexer MUX_CONTRIBUTING.md.

Decision records — read before reopening a settled question

.adr/ holds the decisions whose reasoning would otherwise live only in a PR thread — specifically the ones that close off an option someone will reasonably propose again. If you're about to argue why not rather than how, check there first; if the answer isn't there and the decision is that shape, add one (numbering + format: .adr/README.md).

Rules elsewhere in this file stay short and normative and link to the ADR for the argument. Don't restate an ADR's reasoning here, and don't edit a superseded ADR into agreement with the present — mark it superseded and write the next one.

Versioning — MANDATORY

Collie is SemVered, and the version is enforced, so it never silently drifts.

The version lives in three files that must always agree, plus a matching CHANGELOG entry: herdr-plugin.toml (canonical — Herdr reads it) · package.json · web/package.json · newest numbered ## [x.y.z] heading in CHANGELOG.md. ## [Unreleased] is not numbered and is not part of that agreement.

Read the full file on GitHub · 836 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. today Changed · +2 lines · +65 tokens per session 3bb2a0c075a6
  2. 2d ago Changed · +4 lines · +110 tokens per session 6e9a4c685b55
  3. 5d ago Changed · +2 tokens per session f3edd1b12f11
  4. 6d ago Changed · +14 lines · +337 tokens per session cbb610084939
  5. 7d ago Changed · +1 lines · +30 tokens per session 9642425c6a88
  6. 8d ago Changed · +9 lines · +233 tokens per session b82388d4edfc
  7. 9d ago Changed · +2 tokens per session 8aeb676c04fb
  8. 13d ago Changed 291dce80aa47
  9. 14d ago Changed · -2 tokens per session 0b98c87f54e2
  10. 17d ago First seen · 806 lines · 17,168 tokens per session scan A 7bbf47eaa936

Subscribe to this mod's changes

collie CLAUDE.md is an instructions file published in the GitHub repository AltanS/collie (1,589 stars, last pushed yesterday), licensed MIT. It adds 17,945 tokens to every session, about $0.0718 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-08-30.

Related

collie CLAUDE.md compared with instructions from other repositories

collie CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
collie CLAUDE.mdAltanS/collieInstructions file1.6kyesterdayMITA17,945Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode