mindroom: Command for Claude Code

.claude/commands/init.md

init is a command for Claude Code from mindroom-ai/mindroom. It costs 5 tokens per session (1,205 once invoked), scanned A, original, Apache-2.0.

A command for initializing understanding of a MindRoom project before development work begins. It reviews the project structure, branch changes, and existing differences.

In plain words
What is it for?
Use it at the start of MindRoom work to inspect the repository and understand changes already made.
Why use it?
It gives the coding agent the project context and current work before it starts implementing a requested feature.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md.

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

Reuse

Borrowing it

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

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 init

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/mindroom-ai/mindroom/init"><img src="https://agentmods.dev/badge/commands/mindroom-ai/mindroom/init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,205 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.00005 $0.01205
Opus 5.5 $0.00002 $0.00482
Sonnet 5.5 $0.00001 $0.00241
Haiku 4.5 $0.00001 $0.00120

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

Security

Grade A, and why

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 12d 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/init.md · 103 lines

How it starts

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

Initialize MindRoom Understanding

Your Task

$ARGUMENTS

Instructions:

  • If a feature description was provided above, initialize your understanding of MindRoom and then start implementing that feature
  • If no feature description was provided (empty above), just initialize your understanding and wait for further instructions
  • Either way, first understand the current development context and project structure below

Current Development Context

  • Current branch: !git branch --show-current
  • Changes from main: !git diff --merge-base origin/main --stat
  • Full diff: !git diff --merge-base origin/main

Note: If there are no changes from main, we're starting fresh. Otherwise, understand the current feature being developed from the diff above.

Important: Speech-to-Text Usage

The user often dictates using speech-to-text, so expect:

  • Typos and incorrect words
  • Imperfect sentence structure
  • Homophone substitutions (e.g., "to/too/two", "there/their")
  • Missing punctuation or capitalization

Focus on understanding the intent rather than the exact wording. When in doubt, clarify rather than assume.

Project Understanding

Read and understand the MindRoom project structure:

  1. Read Core Documentation

    • Full README.md for project purpose and architecture
    • AGENTS.md for development guidelines and workflow
  2. Code Structure

    • Main bot: src/mindroom/bot.py
    • Matrix interactions: src/mindroom/matrix/ module
      • matrix/client.py - Core Matrix client functions
      • matrix/mentions.py - Mention handling
      • matrix/message_builder.py - Message construction
      • matrix/identity.py - Matrix ID handling
      • matrix/rooms.py - Room management
      • matrix/state.py - State management
      • matrix/users.py - User management
  3. Development Best Practices

    • ALWAYS check for existing helper functions before implementing new ones
    • Look in matrix/ module for Matrix utilities
    • Check thread_utils.py for thread handling
    • Review src/mindroom/commands/parsing.py and src/mindroom/commands/handler.py for command parsing and dispatch patterns
    • Use uv (not conda) for package management
    • Install: uv sync --all-extras
    • Activate: source .venv/bin/activate
    • Add packages: uv add <package> or uv add --dev <package>
    • Critical Git practices:
      • NEVER use git add . - always add files individually
      • Always run pytest before claiming completion
      • Run pre-commit run --all-files before commits
    • Code style:
      • Prefer functional style over classes
      • Use dataclasses over dictionaries
      • Keep it DRY - aggressively remove unused code
      • Don't wrap in try-except unless necessary
      • Keep imports at file top; function imports may avoid cycles or defer heavy/optional dependencies until first use, following AGENTS.md
      • Keep deferred imports explicit (from x import Y) with # noqa: PLC0415 where needed, and preserve the tests/test_import_graph.py contract

Read the full file on GitHub · 103 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. 12d ago Changed 13da33d4df1b
  2. 17d ago Changed 459eb8cc627b
  3. 22d ago Changed 36e2f907ea00
  4. 1mo ago Changed · +4 lines e39570985a10
  5. 1mo ago First seen · 99 lines · 5 tokens per session scan A ab8a6d9cd311

Subscribe to this mod's changes

init is a command published in the GitHub repository mindroom-ai/mindroom (346 stars, last pushed today), licensed Apache-2.0. It adds 5 tokens to every session and 1,205 once invoked, about $0.0000 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-08-30.