sortie CLAUDE.md

sortie CLAUDE.md is an instructions file for Claude Code from sortie-ai/sortie. It costs 974 tokens per session, scanned A, original, Apache-2.0.

Project instructions for Sortie, a statically linked Go program that coordinates agents and their adapters. They describe commands, naming, package boundaries, and toolchain rules.

In plain words
What is it for?
They guide builds, package imports, adapter registration, Go environment handling, and separation between Sortie-specific code and related projects.
Why use it?
They prevent changes that build successfully but violate Sortie’s architecture, naming conventions, or pinned development setup.

Instructions file for Claude Code

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/sortie-ai/sortie/claude-md
Clone the repo
git clone --depth 1 https://github.com/sortie-ai/sortie

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sortie-ai/sortie/claude-md.svg)](https://agentmods.dev/instructions/sortie-ai/sortie/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/sortie-ai/sortie/claude-md"><img src="https://agentmods.dev/badge/instructions/sortie-ai/sortie/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 974 This file is loaded in full into every session.
When invoked 974 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00974 $0.00974
Opus 5 $0.00487 $0.00487
Sonnet 5 $0.00195 $0.00195
Haiku 4.5 $0.00097 $0.00097

Measured 2d ago against content hash c70741dcf2c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

sortie 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 2d 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 · 51 lines

How it starts

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

sortie

An agent orchestrator that ships as one statically-linked binary with no runtime dependencies. Most of its structure is enforced by convention rather than by the compiler: go build accepts every layering violation listed below.

Commands

make help lists the build, test, and lint targets; they carry the flags CI uses, so prefer one when it fits. Calling the Go toolchain directly is fine when no target does what you need.

Gotchas

  • Go resolves through the asdf shim at ~/.asdf/shims/go. Overriding GOPATH, GOMODCACHE or the binary path breaks the pinned toolchain; GOFLAGS is not such an override and is allowed.
  • Symphony is prior art, not a template. Sortie derives from OpenAI Symphony but diverges intentionally. Do not port Symphony patterns or Elixir idioms.
  • Generic naming in core code. Use agent_*, tracker_*, session_* in orchestrator core. Never jira_*, claude_*, codex_* outside their adapter packages.
  • The orchestrator resolves adapters by kind through internal/registry. Importing a package that registers a kind in its init() is a layering violation there even though go build accepts it; a package alongside it that registers none may be imported directly. cmd/sortie blank-imports every kind package solely to trigger that registration.
  • internal/scm/ is an adapter family. Apply the same boundary rules as internal/tracker/*/: no cross-adapter imports, must not import the orchestrator, normalize external responses to domain types at the boundary.
  • Shared adapter helpers go in an internal/ package named for the concern it serves, never duplicated per adapter and never in internal/domain/. Logic scoped to one adapter family nests under that family instead.
  • Integration tests are env-gated by a per-adapter SORTIE_<ADAPTER>_TEST=1. Without the gate set they must skip cleanly — never fail.
  • workflow.Manager.Reload() is fail-safe. On parse or validation error the previous currentConfig and currentPrompt are retained and LastLoadError() reports the failure. Preserve that invariant; never os.Exit on a bad WORKFLOW.md.
  • Prompt templates render with Option("missingkey=error"). Adding a template variable without wiring its data field is a runtime error, not an empty string.

Read the full file on GitHub · 51 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. 2d ago Changed · +27 tokens per session c70741dcf2c1
  2. 6d ago First seen · 51 lines · 947 tokens per session scan A dceda879a1f4

Subscribe to this mod's changes

sortie CLAUDE.md is an instructions file published in the GitHub repository sortie-ai/sortie (139 stars, last pushed yesterday), licensed Apache-2.0. It adds 974 tokens to every session, about $0.0049 per session on Opus 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.