mscodebase-intelligence: Command for OpenCode

.opencode/command/experiment.md

experiment is a command for OpenCode from ManSio/mscodebase-intelligence. It costs 13 tokens per session (610 once invoked), scanned A, original, MIT.

An experiment command for testing one hypothesis against a deliberately chosen control. It records the exact inputs, settings, raw output, and a verdict so the result can be checked later.

In plain words
What is it for?
Use it to compare two approaches, measure a stated difference, and record whether the evidence supports the hypothesis.
Why use it?
It prevents conclusions based on changing inputs, missing controls, summaries, or empty data. It also makes failed runs and non-reproducible results visible instead of hiding them.

Command for OpenCode

Written for OpenCode: installed under .opencode/.

This is ManSio/mscodebase-intelligence's own configuration. It tells OpenCode how to work on mscodebase-intelligence 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 mscodebase-intelligence configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python tools/verification/gates.py --gate population --input '{"population": N, "computed_rate": R}'.

Reuse

Borrowing it

Nothing to install: this file belongs to ManSio/mscodebase-intelligence. 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/ManSio/mscodebase-intelligence/main/.opencode/command/experiment.md
Clone the repo
git clone --depth 1 https://github.com/ManSio/mscodebase-intelligence

Made for: 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 experiment

README.md
[![agentmods](https://agentmods.dev/badge/commands/mansio/mscodebase-intelligence/experiment/github.svg)](https://agentmods.dev/commands/mansio/mscodebase-intelligence/experiment)
Your own site
<a href="https://agentmods.dev/commands/mansio/mscodebase-intelligence/experiment"><img src="https://agentmods.dev/badge/commands/mansio/mscodebase-intelligence/experiment/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 experiment

Your own site · 80×15
<a href="https://agentmods.dev/commands/mansio/mscodebase-intelligence/experiment"><img src="https://agentmods.dev/badge/commands/mansio/mscodebase-intelligence/experiment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 610 The whole file, excluding the scripts and references it only reads on demand.
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.00013 $0.00610
Opus 5.5 $0.00005 $0.00244
Sonnet 5.5 $0.00003 $0.00122
Haiku 4.5 $0.00001 $0.00061

Measured 26d ago against content hash 6e2dd0ea6442, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

experiment 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 26d 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.

.opencode/command/experiment.md · 59 lines

How it starts

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

You are running the EXPERIMENT phase. A measurement without a control is a story.

Before running

  1. Write the hypothesis and what would refute it. Not "test if X is faster" — "X is faster than Y when Z, and I will be wrong if the median difference is under 10ms".
  2. Freeze the input into experiments/<name>/frozen/ with a sha256, BEFORE you look at any result. If you edit the list after seeing the outcome, the result is indistinguishable from hindsight.
  3. Decide the control now. Every experiment needs a case that MUST FAIL. An instrument that has never been seen to fail has not been shown to work.
  4. Record reproducibility parameters explicitly in the command, never by default: seed, temperature, reasoning budget, model version, variant. A decision made earlier in this session that never made it into the command line did not happen.

While running

  • Capture raw output, not a summary. If the run printed 3 lines, keep all 3.
  • If the population is empty, the answer is "undeterminable", not 0. An empty input is a different state from a measured zero and must look different on the way out.
  • If something fails once, do not retry with the same parameters. Change the hypothesis or the method, and say which.

Afterwards

  1. Recompute from the raw data. Do not read your own previous verdict back as input. Recompute, then compare.
  2. Run the gates:
    python tools/verification/gates.py --gate population --input '{"population": N, "computed_rate": R}'
    python tools/verification/run_all.py
    
  3. Held-out or not? Replaying on the case where the bug was found is ✅ confirmed on known case, never generalization. Mark it exactly.
  4. Count the denominator. "Fixed 3 places" is meaningless. Report N of M, and how many distinct idioms.

Output

## EXP-<n> — <hypothesis>
**Command:** <exact, copy-pasteable>
**Raw output:** <verbatim, or the path to the frozen file>

**Result:** ...
**Verdict:** CONFIRMED | REFUTED | PARTIAL | HELD-OUT CONFIRMED | UNKNOWN
**Gates:** G1 <verdict> · G2 <verdict> · G4 <verdict>
**Population:** N of M, selected by <rule>
**Negative control:** failed as required — <raw>

Read the full file on GitHub · 59 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. 26d ago First seen · 59 lines · 13 tokens per session scan A 6e2dd0ea6442

Subscribe to this mod's changes

experiment is a command published in the GitHub repository ManSio/mscodebase-intelligence (3 stars, last pushed 5d ago), licensed MIT. It adds 13 tokens to every session and 610 once invoked, about $0.0001 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-10-04.