briefloop CLAUDE.md

briefloop CLAUDE.md is an instructions file for coding agents from Stahl-G/briefloop. It costs 1,175 tokens per session, scanned A, original, MIT.

Development instructions for running and changing BriefLoop, a command-line tool for managing multi-agent briefing work, in Claude Code.

In plain words
What is it for?
Use them when developing BriefLoop in Claude Code, setting up a workspace, installing its runtime, and finding the next action for a brief run.
Why use it?
They tell the agent which setup and runtime path to use, including the SQLite-based control store, so it does not follow removed commands or outdated guidance.

Instructions file

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/stahl-g/briefloop/claude-md
Clone the repo
git clone --depth 1 https://github.com/Stahl-G/briefloop

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/stahl-g/briefloop/claude-md.svg)](https://agentmods.dev/instructions/stahl-g/briefloop/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/stahl-g/briefloop/claude-md"><img src="https://agentmods.dev/badge/instructions/stahl-g/briefloop/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,175 This file is loaded in full into every session.
When invoked 1,175 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 $0.01175 $0.01175
Opus 5 $0.00588 $0.00588
Sonnet 5 $0.00235 $0.00235
Haiku 4.5 $0.00118 $0.00118

Measured 4d ago against content hash 6d93612eb608, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

briefloop 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 4d 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 · 181 lines

How it starts

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

CLAUDE.md

Claude Code Role

This file is for developing and running BriefLoop inside Claude Code.

For runtime-neutral instructions, see AGENTS.md. The active runtime is the SQLite-only Codex ControlStore path; the legacy JSON control plane and its Claude Code writer command (/briefloop) are removed.

First Response In Claude Code

If the user greets you, asks what to do next, or asks how to use BriefLoop from Claude Code, point them to the Codex runtime path first:

briefloop init <workspace> --from-onboarding onboarding.json
briefloop runtime install --workspace <workspace> --runtime codex
briefloop run --workspace <workspace> --runtime codex

Then follow the Store-derived next action:

briefloop runtime next --workspace <workspace>

run returns the current CoreRunNextAction; runtime next / invocation-* / apply drive the SQLite ControlStore runtime. The legacy five-verb writer command and /generate-brief delegated workflow are removed.

Standard Claude Code Path

For a real brief workspace:

briefloop onboard
briefloop init <workspace> --from-onboarding onboarding.json
briefloop runtime install --workspace <workspace> --runtime codex
briefloop run --workspace <workspace> --runtime codex

Then operate the run through the Store-derived action:

briefloop runtime next --workspace <workspace>
briefloop runtime invocation-start --workspace <workspace>
briefloop runtime invocation-validate --workspace <workspace> --envelope <path>
briefloop runtime invocation-accept --workspace <workspace> --envelope <path>
briefloop runtime apply --workspace <workspace> --action <path>

For a demo workspace:

briefloop init <workspace> --demo
briefloop run --workspace <workspace> --runtime codex

Repository Development Setup

bash scripts/setup.sh
source .venv/bin/activate
python -m pytest -q

Windows PowerShell:

.\scripts\setup.ps1
.\.venv\Scripts\Activate.ps1
python -m pytest -q

Read the full file on GitHub · 181 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. 4d ago First seen · 181 lines · 1,175 tokens per session scan A 6d93612eb608

Subscribe to this mod's changes

briefloop CLAUDE.md is an instructions file published in the GitHub repository Stahl-G/briefloop (9 stars, last pushed 6d ago), licensed MIT. It adds 1,175 tokens to every session, about $0.0059 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-31.