run-context-test

run-context-test is a command for Claude Code from andrefigueira/.context. It costs 0 tokens per session (282 once invoked), scanned A, original, MIT.

A command for running a controlled test of two documentation setups: one using a single CLAUDE.md file and one using a .context folder.

In plain words
What is it for?
Use it to run a named test case for either the control or treatment group, generate code from the supplied project, and save the code and notes as a timestamped result.
Why use it?
It makes it possible to compare how each documentation setup affects code generation while keeping the test case, project code, and output location consistent.

Command for 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 commands/andrefigueira/.context/run-context-test
Clone the repo
git clone --depth 1 https://github.com/andrefigueira/.context

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 run-context-test

README.md
[![agentmods](https://agentmods.dev/badge/commands/andrefigueira/.context/run-context-test.svg)](https://agentmods.dev/commands/andrefigueira/.context/run-context-test)
Your own site
<a href="https://agentmods.dev/commands/andrefigueira/.context/run-context-test"><img src="https://agentmods.dev/badge/commands/andrefigueira/.context/run-context-test.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 282 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00282
Opus 5 $0.00000 $0.00141
Sonnet 5 $0.00000 $0.00056
Haiku 4.5 $0.00000 $0.00028

Measured 6d ago against content hash 02b7e68ad3e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

run-context-test 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 6d 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/commands/run-context-test.md · 35 lines

What it actually says

You are running an empirical test comparing .context documentation vs single CLAUDE.md.

Test Configuration

Test Case: $ARGUMENTS (e.g., "01-simple-endpoint control" or "02-auth-middleware treatment")

Parse the arguments to get:

  • case_id: The test case (e.g., 01-simple-endpoint)
  • group: Either "control" or "treatment"

Instructions

  1. Load the test case from tests/cases/{case_id}.md - extract the prompt

  2. Load the documentation based on group:

    • If control: Read tests/fixtures/control/CLAUDE.md
    • If treatment: Read all files from tests/fixtures/treatment/.context/
  3. Load the project codebase from tests/fixtures/project/src/

  4. Generate code following the loaded documentation to complete the prompt task

  5. Save your output to tests/outputs/{case_id}/{group}/run-{timestamp}.md

Include in your output:

  • The generated code
  • Brief explanation of your approach
  • Which documentation sections you referenced

Important

  • Follow ONLY the patterns from the loaded documentation
  • Do NOT use knowledge outside what was provided in the documentation
  • Pretend you've never seen this codebase before
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. 6d ago First seen · 35 lines · 0 tokens per session scan A 02b7e68ad3e7

Subscribe to this mod's changes

run-context-test is a command published in the GitHub repository andrefigueira/.context (253 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 282 tokens. 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.