rp-oracle-export-cli

rp-oracle-export-cli is a command for Claude Code from gmickel/gno. It costs 8 tokens per session (444 once invoked), scanned A, original, MIT.

A command that gathers relevant code and task context into a prompt for consultation with an external oracle using rp-cli. It selects files from the codebase instead of requiring you to list them manually.

In plain words
What is it for?
Use it when you want external help understanding or solving a coding task. It helps inspect the workspace, choose relevant files, and create a detailed consultation prompt.
Why use it?
It reduces the work of preparing a complete code question for outside review. It also checks that rp-cli is connected to the correct workspace before exporting context.

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/gmickel/gno/rp-oracle-export-cli
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-oracle-export-cli

README.md
[![agentmods](https://agentmods.dev/badge/commands/gmickel/gno/rp-oracle-export-cli.svg)](https://agentmods.dev/commands/gmickel/gno/rp-oracle-export-cli)
Your own site
<a href="https://agentmods.dev/commands/gmickel/gno/rp-oracle-export-cli"><img src="https://agentmods.dev/badge/commands/gmickel/gno/rp-oracle-export-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 444 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.00008 $0.00444
Opus 5 $0.00004 $0.00222
Sonnet 5 $0.00002 $0.00089
Haiku 4.5 $0.00001 $0.00044

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

Security

Grade A, and why

rp-oracle-export-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 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.

.claude/commands/rp-oracle-export-cli.md · 66 lines

What it actually says

Oracle Export (CLI)

Task: $ARGUMENTS

Export a comprehensive prompt with full context for consultation with an external oracle.

How It Works

Describe the task or question you need the oracle to solve. The context_builder agent will:

  1. Analyze your request and explore the codebase
  2. Select the most relevant files within a token budget
  3. Write a detailed prompt explaining the task and context

You don't need to specify which files to include—just describe what you need help with.

Workflow

0. Workspace Verification (REQUIRED)

Before building context, confirm the target codebase is loaded:

# First, list available windows to find the right one
rp-cli -e 'windows'

# Then check roots in a specific window (REQUIRED - CLI cannot auto-bind)
rp-cli -w <window_id> -e 'tree --type roots'

Check the output:

  • If your target root appears in a window → note the window ID and proceed
  • If not → the codebase isn't loaded in any window

CLI Window Routing (CRITICAL):

  • CLI invocations are stateless—you MUST pass -w <window_id> to target the correct window
  • Use rp-cli -e 'windows' to list all open windows and their workspaces
  • Always include -w <window_id> in ALL subsequent commands

1. Build Context

rp-cli -w <window_id> -e 'builder "<the task/question above>" --response-type clarify'

Wait for context_builder to complete. It will explore the codebase and build optimal context.

2. Export Prompt

Confirm the export path with the user (default: ~/Downloads/oracle-prompt.md), then export:

rp-cli -w <window_id> -e 'prompt export "<confirmed path>"'

Report the export path and token count to the user.

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 · 66 lines · 8 tokens per session scan A 3d783c7c0a2d

Subscribe to this mod's changes

rp-oracle-export-cli is a command published in the GitHub repository gmickel/gno (110 stars, last pushed today), licensed MIT. It adds 8 tokens to every session and 444 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.