init

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

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/mindroom-ai/mindroom/init
Clone the repo
git clone --depth 1 https://github.com/mindroom-ai/mindroom

Made for: Claude Code.

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 985 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 $0.00005 $0.00985
Opus 5 $0.00003 $0.00492
Sonnet 5 $0.00001 $0.00197
Haiku 4.5 $0.00001 $0.00098

Measured 2d ago against content hash ab8a6d9cd311, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 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 origin/main --stat
  • Full diff: !git diff 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
    • CLAUDE.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 commands.py for command 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
      • Imports at top of file (except for circular imports)

Read the full file on GitHub · 99 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. 2d 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 (254 stars, last pushed 2d ago), licensed Apache-2.0. It adds 5 tokens to every session and 985 once invoked, about $0.0000 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.