For AI agents: this page as Markdown · llms.txt · JSON Schema

Internal testing

Warning

Not ready for public use. These features are in the code and you can run them, but we are still testing them internally. They are unsupported and may change or disappear in any release without notice. Nothing in Rerail's documentation promises they work. Do not build on them or rely on them.

Each is marked Internal testing: where defined. Its descriptions (CLI usage, MCP tools, OMP and Pi tools and commands) start with [Internal testing], via internalTesting() in src/engine/internal-testing.ts.

Feature Where it surfaces
Full-repository scanning rerail scan; audit_requests_create, audit_requests_list, repository_audits_list, repository_audit_entries_list
Conversation rules, cosine (similarity) and command (tool-call) kind: "conversation" rules, badged Internal testing in the dashboard; /cosine-rules and conversation_rules in OMP and Pi; /rerail-create's command rules (Tool-call rules); conversation rules a rule pack ships (pack format)
Semantic tools rerail_mark, rerail_select, rerail_project, rerail_relate in OMP and Pi
Block mode mode: "block", stored and delivered exactly like steer; CLI and API writes that set it say it steers in this release, the dashboard shows Block (steers for now)
Activation profiles rerail activate, rerail activation request, rerail profile, --profile
Event stream rerail events
Headless scan rerail scan without --session: a scan of a checkout with no daemon or session; its rerail.scan/1 report
Remote sink rerail remote; the daemon's sender; remote lines in rerail status; remote.json, remote-tokens/, remote-outbox.sqlite, machine-id in the Rerail home
Steer strategies rewind and subagent, experimental: off unless RERAIL_EXPERIMENTAL_STEER_STRATEGIES=1 steerStrategy in audit settings (rerail settings --steer-strategy, audit_settings_update); Pi's rerail_fix tool; benchmark/steer-strategy.ts
Automatic first repository audit, experimental: off unless RERAIL_EXPERIMENTAL_FIRST_REPOSITORY_AUDIT=1 One full-repository audit in log mode at the first session in a checkout
Missed-steer digest, experimental: off unless RERAIL_EXPERIMENTAL_MISSED_STEER_DIGEST=1 Late code-rule steers held and sent as one steer at the agent's yield; Cursor's stop follow-up

Experimental steer features

Each is off unless its variable is 1 for the process running Rerail's runtime.

That is the daemon for OMP, Claude Code, Codex and Cursor. For a Pi session, which runs Rerail in process, it is the coding agent itself.

Missed-steer digest

Set RERAIL_EXPERIMENTAL_MISSED_STEER_DIGEST=1; for Cursor's follow-up, also in Cursor's hook environment.

Edge cases

Steer strategies

Set RERAIL_EXPERIMENTAL_STEER_STRATEGIES=1. The checkout's steerStrategy (rerail settings --steer-strategy) then picks how a code-rule steer reaches the agent; off, every steer is message.

Strategy What the agent gets
message (default) The steer as in in-session surfaces.
rewind Its edit undone, and a steer to redo it following the rule.
subagent The steer, plus a note to hand the fix to a subagent.
How rewind and subagent work

rewind applies when the edit's own check steers before its tool result is answered.

subagent notes that the steer comes from Rerail and the agent's task is unchanged.

benchmark/steer-strategy.ts measures the three strategies on real coding agents.