rlm-init

rlm-init is a command for Claude Code from spideynolove/claude-dotfiles. It costs 0 tokens per session (729 once invoked), scanned A, original, MIT.

A prompt template and script for starting a tracked research-and-development run in a code repository. It creates a run for a feature or bug fix and can link it to an issue such as GitHub issue #123.

In plain words
What is it for?
Use it to initialise feature or bug-fix runs from a repository root on Windows, macOS, or Linux, with optional links to issue numbers.
Why use it?
It gives repeated coding work a consistent starting point and preserves a run identifier, which helps an agent organise work across steps.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions Codex.

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/spideynolove/claude-dotfiles/rlm-init
Clone the repo
git clone --depth 1 https://github.com/spideynolove/claude-dotfiles

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 rlm-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/spideynolove/claude-dotfiles/rlm-init.svg)](https://agentmods.dev/commands/spideynolove/claude-dotfiles/rlm-init)
Your own site
<a href="https://agentmods.dev/commands/spideynolove/claude-dotfiles/rlm-init"><img src="https://agentmods.dev/badge/commands/spideynolove/claude-dotfiles/rlm-init.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 729 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.00729
Opus 5 $0.00000 $0.00365
Sonnet 5 $0.00000 $0.00146
Haiku 4.5 $0.00000 $0.00073

Measured 5d ago against content hash 2c25e81cba49, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

rlm-init 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 5d 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.

.agents-global/skills/rlm-workflow/docs/templates/commands/rlm-init.md · 73 lines

How it starts

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

rlm-init (prompt template)

This is a copy/paste prompt template. Some agents support custom slash commands; if yours doesn't, paste this prompt into chat.

Usage Pattern

Initialize RLM run: <run-id> [options]

If you have the skill installed, you can scaffold a run directly from the project repo root: Python is cross-platform; PowerShell commands are equivalent.

# Python (Windows/macOS/Linux):
python "<SKILL_DIR>/scripts/rlm-init.py" --repo-root . --run-id "<run-id>" --template feature
python "<SKILL_DIR>/scripts/rlm-init.py" --repo-root . --run-id "<run-id>" --template bugfix --from-issue "#123"
python3 "<SKILL_DIR>/scripts/rlm-init.py" --repo-root . --run-id "<run-id>" --template feature
python3 "<SKILL_DIR>/scripts/rlm-init.py" --repo-root . --run-id "<run-id>" --template bugfix --from-issue "#123"

# Windows PowerShell:
powershell -ExecutionPolicy Bypass -File "<SKILL_DIR>/scripts/rlm-init.ps1" -RepoRoot . -RunId "<run-id>" -Template feature
powershell -ExecutionPolicy Bypass -File "<SKILL_DIR>/scripts/rlm-init.ps1" -RepoRoot . -RunId "<run-id>" -Template bugfix -FromIssue "#123"

# PowerShell 7+ (pwsh):
pwsh -NoProfile -File "<SKILL_DIR>/scripts/rlm-init.ps1" -RepoRoot . -RunId "<run-id>" -Template feature
pwsh -NoProfile -File "<SKILL_DIR>/scripts/rlm-init.ps1" -RepoRoot . -RunId "<run-id>" -Template bugfix -FromIssue "#123"

Arguments

  • run-id - Unique identifier for this run (e.g., "2026-02-21-user-auth")
  • --template - Use a specific template (feature|bugfix|refactor)
  • --from-issue - Link to GitHub issue number

Description

Creates a new RLM run folder with scaffolding:

  1. Creates .codex/rlm/<run-id>/ directory
  2. Generates 00-requirements.md template
  3. Creates addenda/ and evidence/ directories (with standard subfolders)
  4. Optionally populates from issue template

Example

Initialize RLM run: 2026-02-21-add-oauth --template feature

Output

After running this command:

  • Directory: .codex/rlm/2026-02-21-add-oauth/
  • Template: .codex/rlm/2026-02-21-add-oauth/00-requirements.md
  • Evidence: .codex/rlm/2026-02-21-add-oauth/evidence/{screenshots,logs,perf,traces}/

Read the full file on GitHub · 73 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. 5d ago First seen · 73 lines · 0 tokens per session scan A 2c25e81cba49

Subscribe to this mod's changes

rlm-init is a command published in the GitHub repository spideynolove/claude-dotfiles (2 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 729 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-31.