thoughts_init

thoughts_init is a command for coding agents from hoblin/claude-ruby-marketplace. It costs 6 tokens per session (558 once invoked), scanned A, original, MIT.

A command that checks whether the repository is set up for a shared thoughts system. The system stores working notes and links repository-specific notes into the project.

In plain words
What is it for?
Use it to verify the repository's notes infrastructure and prepare a list of setup tasks when checks fail.
Why use it?
It identifies missing folders, scripts, links, or repository setup before other thoughts-related commands are used. If something is missing, it reports the required fixes and waits for permission before changing anything.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the rpi plugin — 12 commands, 12 agents shipped together

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/hoblin/claude-ruby-marketplace/thoughts_init
Clone the repo
git clone --depth 1 https://github.com/hoblin/claude-ruby-marketplace

Or install rpi, the plugin that ships this one along with the rest of its 12 commands, 12 agents.

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 thoughts_init

README.md
[![agentmods](https://agentmods.dev/badge/commands/hoblin/claude-ruby-marketplace/thoughts_init.svg)](https://agentmods.dev/commands/hoblin/claude-ruby-marketplace/thoughts_init)
Your own site
<a href="https://agentmods.dev/commands/hoblin/claude-ruby-marketplace/thoughts_init"><img src="https://agentmods.dev/badge/commands/hoblin/claude-ruby-marketplace/thoughts_init.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 558 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.00006 $0.00558
Opus 5 $0.00003 $0.00279
Sonnet 5 $0.00001 $0.00112
Haiku 4.5 $0.00001 $0.00056

Measured 4d ago against content hash 35332cb9734f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

thoughts_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 4d 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.

plugins/rpi/commands/thoughts_init.md · 71 lines

What it actually says

Initialize Thoughts System

Initialize the thoughts system for the current repository.

Process

Step 1: Diagnostic Checks

Run these checks and collect results:

  1. ~/thoughts exists: test -d "$HOME/thoughts"
  2. ~/thoughts is git repo: test -d "$HOME/thoughts/.git"
  3. ~/thoughts/global structure exists: test -d "$HOME/thoughts/global"
  4. Scripts exist: test -x "$HOME/thoughts/bin/thoughts-sync"
  5. Scripts in PATH: command -v thoughts-sync >/dev/null 2>&1
  6. Current dir is git repo: test -d ".git"
  7. ./thoughts/shared symlinked correctly: test -L "./thoughts/shared" && readlink "./thoughts/shared" | grep -q "thoughts/repos/"

Step 2: Report or Fix

If all checks pass:

Thoughts system ready. RPI workflow commands will now work correctly.

- ~/thoughts: OK (with global/ structure)
- Scripts: OK (in PATH)
- Repository: OK (thoughts/shared → ~/thoughts/repos/{repo}/shared)

If any check fails: Build todo list of what needs fixing, present to user, wait for authorization.

Step 3: Execute Fixes (after authorization)

If ~/thoughts missing:

mkdir -p "$HOME/thoughts/bin"
mkdir -p "$HOME/thoughts/global/$(whoami)"
mkdir -p "$HOME/thoughts/global/shared"
mkdir -p "$HOME/thoughts/repos"
git -C "$HOME/thoughts" init
cp "${CLAUDE_PLUGIN_ROOT}/templates/thoughts-bin/"* "$HOME/thoughts/bin/"
chmod +x "$HOME/thoughts/bin/"*

If PATH not configured:

RC_FILE="$HOME/.bashrc"
[[ "$SHELL" == *"zsh"* ]] && RC_FILE="$HOME/.zshrc"
echo 'export PATH="$HOME/thoughts/bin:$PATH"' >> "$RC_FILE"

Tell user to run source ~/.zshrc or restart terminal.

If current repo not initialized:

"$HOME/thoughts/bin/thoughts-init-repo"

Step 4: Verify and Report

After fixes, re-run checks and report final status.

Important

  • Never make changes without user authorization
  • If current directory is not a git repo, report error and stop
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. 4d ago First seen · 71 lines · 6 tokens per session scan A 35332cb9734f

Subscribe to this mod's changes

thoughts_init is a command published in the GitHub repository hoblin/claude-ruby-marketplace (37 stars, last pushed 24d ago), licensed MIT. It adds 6 tokens to every session and 558 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.