rein: Command for Claude Code

.claude/commands/rein-interview.md

rein-interview is a command for Claude Code from jstxn/rein. It costs 21 tokens per session (2,248 once invoked), scanned A, original, MIT.

A guided question-and-answer command for turning an unclear software request into a structured specification.

In plain words
What is it for?
Clarifying risky or underspecified requests, checking whether they are ready for implementation, and producing a specification for planning or coding.
Why use it?
It helps reveal missing requirements and records the discussion so work can resume later without losing context.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is jstxn/rein's own configuration. It tells Claude Code how to work on rein 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 rein configures →

View source ↗ jstxn/rein
Reuse

Borrowing it

Nothing to install: this file belongs to jstxn/rein. 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/jstxn/rein/main/.claude/commands/rein-interview.md
Clone the repo
git clone --depth 1 https://github.com/jstxn/rein

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 rein-interview

README.md
[![agentmods](https://agentmods.dev/badge/commands/jstxn/rein/rein-interview.svg)](https://agentmods.dev/commands/jstxn/rein/rein-interview)
Your own site
<a href="https://agentmods.dev/commands/jstxn/rein/rein-interview"><img src="https://agentmods.dev/badge/commands/jstxn/rein/rein-interview.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,248 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.00021 $0.02248
Opus 5 $0.00010 $0.01124
Sonnet 5 $0.00004 $0.00450
Haiku 4.5 $0.00002 $0.00225

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

Security

Grade A, and why

rein-interview 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 8d 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/rein-interview.md · 333 lines

How it starts

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

<Use_When>

  • The request is underspecified, risky, or likely to cause misaligned implementation
  • The user wants clarification before planning or coding
  • You need durable interview state, resumability, or machine-readable handoff artifacts
  • You need a spec bundle that can feed rein-plan, direct implementation, or further refinement </Use_When>

<Do_Not_Use_When>

  • The request already has concrete file targets and stable acceptance criteria
  • The user explicitly asks to skip clarification and execute immediately
  • A complete rein-interview spec already exists and the next step should begin </Do_Not_Use_When>

<Runtime_Contract> The runtime owns:

  • durable state under .rein/state/
  • context snapshots under .rein/context/
  • clarity score computation
  • readiness gates
  • round ordering
  • status display
  • transcript/spec/result bundle output

You own:

  • asking the next question
  • interpreting the user's answer
  • deciding the next target dimension
  • framing the next question in your own judgment and voice
  • producing the final structured summary payload for crystallization </Runtime_Contract>

<Execution_Policy>

  • Ask one question per round, never batch
  • Stay intent-first until scope, non-goals, and decision boundaries are explicit
  • Use runtime state at every transition point; do not keep the authoritative interview state only in prose
  • Show the user current clarity progress after each runtime update
  • Do not crystallize until threshold and readiness gates are satisfied, unless the user explicitly accepts the risk
  • Do not implement directly inside rein-interview
  • Use runtime suggestions for structure, but choose the actual next question yourself </Execution_Policy>

<Interview_Presentation_Contract> Use a consistent chat-safe presentation frame for every visible interview turn.

Layout

Normal round:

[ Interview ]
| Phase: clarifying structure

| Current clarity: N%

| Question
| [one to two short lines]
|
| A. ...
| B. ...
| C. ...

Open-question variant:

[ Interview ]
| Phase: clarifying structure

| Current clarity: N%

| Question
| [one to two short lines]

Review:

[ Review ]
| Phase: confirming summary

| Current clarity: N%

| Question
| [one to two short lines]

Handoff:

[ Handoff ]
| Phase: preparing handoff

| Status: ready for handoff

| Question
| [one to two short lines]

Read the full file on GitHub · 333 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. 8d ago First seen · 333 lines · 21 tokens per session scan A a5761ba2b488

Subscribe to this mod's changes

rein-interview is a command published in the GitHub repository jstxn/rein (12 stars, last pushed 4mo ago), licensed MIT. It adds 21 tokens to every session and 2,248 once invoked, about $0.0001 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.