gno: Command for Claude Code

.claude/commands/rp-investigate-cli.md

rp-investigate-cli is a command for Claude Code from gmickel/gno. It costs 11 tokens per session (1,576 once invoked), scanned A, original, MIT.

A deep-investigation workflow for researching a codebase with RepoPrompt's command-line tool. It guides an agent through finding files, examining structure, reading code, building context, and applying edits.

In plain words
What is it for?
Use it to investigate bugs or feature requests, map a repository's structure, gather focused code context, discuss a possible solution, and apply targeted changes with rp-cli.
Why use it?
It provides a repeatable way to understand unfamiliar code before changing it. This helps connect an issue to the relevant files and architecture instead of relying on isolated searches.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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

Reuse

Borrowing it

Nothing to install: this file belongs to gmickel/gno. 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/gmickel/gno/main/.claude/commands/rp-investigate-cli.md
Clone the repo
git clone --depth 1 https://github.com/gmickel/gno

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 rp-investigate-cli

README.md
[![agentmods](https://agentmods.dev/badge/commands/gmickel/gno/rp-investigate-cli.svg)](https://agentmods.dev/commands/gmickel/gno/rp-investigate-cli)
Your own site
<a href="https://agentmods.dev/commands/gmickel/gno/rp-investigate-cli"><img src="https://agentmods.dev/badge/commands/gmickel/gno/rp-investigate-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 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,576 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.00011 $0.01576
Opus 5 $0.00005 $0.00788
Sonnet 5 $0.00002 $0.00315
Haiku 4.5 $0.00001 $0.00158

Measured 7d ago against content hash b5992e8279eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

rp-investigate-cli 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 7d 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/rp-investigate-cli.md · 209 lines

How it starts

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

Deep Investigation Mode (CLI)

Investigate: $ARGUMENTS

You are now in deep investigation mode for the issue described above. Follow this protocol rigorously.

Using rp-cli

This workflow uses rp-cli (RepoPrompt CLI) instead of MCP tool calls. Run commands via:

rp-cli -e '<command>'

Quick reference:

MCP Tool CLI Command
get_file_tree rp-cli -e 'tree'
file_search rp-cli -e 'search "pattern"'
get_code_structure rp-cli -e 'structure path/'
read_file rp-cli -e 'read path/file.swift'
manage_selection rp-cli -e 'select add path/'
context_builder rp-cli -e 'builder "instructions" --response-type plan'
chat_send rp-cli -e 'chat "message" --mode plan'
apply_edits rp-cli -e 'call apply_edits {"path":"...","search":"...","replace":"..."}'
file_actions rp-cli -e 'call file_actions {"action":"create","path":"..."}'

Chain commands with &&:

rp-cli -e 'select set src/ && context'

Use rp-cli -e 'describe <tool>' for help on a specific tool, rp-cli --tools-schema for machine-readable JSON schemas, or rp-cli --help for CLI usage.

JSON args (-j) accept inline JSON, file paths (.json auto-detected), @file, or @- (stdin). Raw newlines in strings are auto-repaired.

⚠️ TIMEOUT WARNING: The builder and chat commands can take several minutes to complete. When invoking rp-cli, set your command timeout to at least 2700 seconds (45 minutes) to avoid premature termination.

Read the full file on GitHub · 209 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. 7d ago First seen · 209 lines · 11 tokens per session scan A b5992e8279eb

Subscribe to this mod's changes

rp-investigate-cli is a command published in the GitHub repository gmickel/gno (110 stars, last pushed yesterday), licensed MIT. It adds 11 tokens to every session and 1,576 once invoked, about $0.0001 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.