thoughtbox AGENTS.md

thoughtbox AGENTS.md is an instructions file for Codex, OpenCode from Kastalien-Research/thoughtbox. It costs 3,222 tokens per session, scanned C, original, MIT.

AGENTS.md instructions for Kastalien-Research/thoughtbox, covering scope, development workflow (source of truth), mandatory skills, conditional protocols and key rules (always apply).

Instructions file for CodexOpenCode

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/kastalien-research/thoughtbox/agents-md
Clone the repo
git clone --depth 1 https://github.com/Kastalien-Research/thoughtbox

Made for: Codex, OpenCode.

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 thoughtbox AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kastalien-research/thoughtbox/agents-md.svg)](https://agentmods.dev/instructions/kastalien-research/thoughtbox/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kastalien-research/thoughtbox/agents-md"><img src="https://agentmods.dev/badge/instructions/kastalien-research/thoughtbox/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,222 This file is loaded in full into every session.
When invoked 3,222 The same file — it is already loaded in full.
Security scan C 1 finding. Scan, not verified.
Origin unknown 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.03222 $0.03222
Opus 5 $0.01611 $0.01611
Sonnet 5 $0.00644 $0.00644
Haiku 4.5 $0.00322 $0.00322

Measured today against content hash 928355fd20d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

thoughtbox AGENTS.md scanned grade C 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 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `PreToolUse` / `BeforeTool`: apply command safety checks before running risky shell commands. Block direct pushes to protected branches, force pushes, branch deletion, dangerous `rm -rf`, and unrequested writes to `.en
AGENTS.md · 226 lines

How it starts

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

Scope

This file is authoritative for the MCP server, plugin, hub, and repo-level tooling. For web app conventions (Next.js 15 app under apps/web/), see apps/web/AGENTS.md.

Development Workflow (Source of Truth)

Every unit of work runs through a mandatory skill. Two additional protocols activate conditionally.

Mandatory Skills

workflow — Full development lifecycle from ideation through merge. Stage 2 produces or updates .specs/ markdown with YAML frontmatter claims (not ADRs). PR claims reference specs as spec_id:claim_id in prs/<branch>.json.

Read .claude/skills/workflow/SKILL.md for multi-stage feature work. For architectural decisions, update the relevant spec with frontmatter claims and an acceptance/evidence plan before implementation.

Conditional Protocols

ulysses-protocol — Activates when 2 consecutive surprises occur during a task. A surprise-gated debugging framework that prevents hallucinated progress through pre-committed recovery actions and falsifiable hypotheses.

Invoke only when stuck: .claude/skills/ulysses-protocol/SKILL.md

theseus-protocol — Use when the task is a refactor (structure changes, behavior preserved). Prevents Refactoring Fugue State via scope locking, adversarial Cassandra audits, and hard reversibility. Do not use for feature work or bug fixes.

Invoke only for refactoring tasks: .claude/skills/theseus-protocol/SKILL.md

Key Rules (always apply)

  1. Specs go in .specs/ (not specs/). Active authority is spec markdown with YAML frontmatter claims (see .schemas/spec-v1.json). Archived ADRs live under docs/decisions/archive/ for historical context only.
  2. Code and spec updates in the same commit. If you change code that a spec describes, update the spec in the same commit.
  3. Atomic commits. One sub-agent = one unit of work = one commit, made after review validates the work.
  4. Sub-agent summaries state: Claims, Spec/Evidence Alignment, Tests run, Known Gaps, Risks.
  5. Default: human is NOT in the loop. Operate autonomously. Escalate only when genuinely stuck after investigation.
  6. Orchestrators don't do manual work. Deploy sub-agents or agent teams. Protect your context window.

Read the full file on GitHub · 226 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 First seen · 226 lines · 3,222 tokens per session scan C 928355fd20d5

Subscribe to this mod's changes

thoughtbox AGENTS.md is an instructions file published in the GitHub repository Kastalien-Research/thoughtbox (64 stars, last pushed 1mo ago), licensed MIT. It adds 3,222 tokens to every session, about $0.0161 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.