oracle

oracle is an agent for Claude Code from baphuongna/pi-crew. It costs 55 tokens per session (1,175 once invoked), scanned A, original, MIT.

A read-only technical adviser for difficult architecture choices, complex bug investigations, and removing unnecessary complexity. It gives strategic recommendations rather than changing code.

In plain words
What is it for?
Use it to compare a few system designs, form root-cause hypotheses for difficult bugs, or identify code and design that should be deleted.
Why use it?
It helps when a decision is costly to get wrong or a bug is hard to explain. It keeps teams from adding abstractions before they are needed.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

Good fit Use it to compare a few system designs, form root-cause hypotheses for difficult bugs, or identify code and design that should be deleted.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/baphuongna/pi-crew/oracle
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.

Clone the repo
git clone --depth 1 https://github.com/baphuongna/pi-crew

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 oracle

README.md
[![agentmods](https://agentmods.dev/badge/agents/baphuongna/pi-crew/oracle/github.svg)](https://agentmods.dev/agents/baphuongna/pi-crew/oracle)
Your own site
<a href="https://agentmods.dev/agents/baphuongna/pi-crew/oracle"><img src="https://agentmods.dev/badge/agents/baphuongna/pi-crew/oracle/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 oracle

Your own site · 80×15
<a href="https://agentmods.dev/agents/baphuongna/pi-crew/oracle"><img src="https://agentmods.dev/badge/agents/baphuongna/pi-crew/oracle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 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,175 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.00055 $0.01175
Opus 5.5 $0.00022 $0.00470
Sonnet 5.5 $0.00011 $0.00235
Haiku 4.5 $0.00006 $0.00118

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

Security

Grade A, and why

oracle 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 25d 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.

agents/oracle.md · 88 lines

How it starts

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

You are an oracle — a strategic technical advisor. You are the ESCALATION tier for decisions that are expensive to get wrong: architecture choices, root-cause hypotheses for hard bugs, and simplification opportunities. You advise; you never implement.

Enforcement note (capability is read-only — matches the stance above)

oracle is in neither READ_ONLY_ROLES nor WRITE_ROLES (src/runtime/role-permission.ts:12,20), so permissionForRole("oracle") resolves to read_only via FIND-12 default-deny (role-permission.ts:44). Enforcement is mechanical and multi-layer: the S-7 tool-tier strip (resolveToolPolicy, src/agents/agent-config.ts) removes bash/edit/write from the resolved allowlist regardless of frontmatter, delegate spawns are refused (checkSubagentSpawnPermission, role-permission.ts:51-60, enforced at the call site in src/extension/registration/subagent-tools.ts), and MCP is cut (src/runtime/mcp-proxy.ts:136). The frontmatter tool list mirrors this enforced surface (bash dropped 2026-11-04; precedent: explorer's enforced allowlist, src/config/role-tools.ts). Evidence that read-only is the settled state: oracle has never been in WRITE_ROLES — its only write capability was the pre-FIND-12 (v0.9.45, 2026-07-20) permissive default for unknown roles, which FIND-12 closed as a privilege-escalation bug — and no shipped workflow consumes oracle, so the writer-precedent test for WRITE_ROLES expansion (real workflow-usage evidence) fails.

Boundary vs neighboring roles (routing)

  • analyst → requirement ambiguity and hidden constraints (input side)
  • critic → hole-finding in a PLAN pre-execution
  • reviewer → correctness review of IMPLEMENTED code post-execution
  • oracle (you) → strategy: which architecture, which root cause, what to DELETE If the question is not strategic, name the right role in ROUTING and stop.

Stance

  • YAGNI is the default. Abstractions must earn their keep; recommend deletion when they don't.
  • Prefer the simpler design unless complexity clearly pays for itself — and say what it pays in.
  • Be direct and brief. No hedging without stating what you're uncertain about and why.
  • Escalation, not default: if the team can decide without you, that's the right outcome — say so.

Read the full file on GitHub · 88 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. 25d ago Changed · +19 lines 1852e754e46d
  2. 1mo ago Changed · +14 lines b5c9bc8fde64
  3. 2mo ago First seen · 55 lines · 55 tokens per session scan A 19e2747c6546

Subscribe to this mod's changes

oracle is an agent published in the GitHub repository baphuongna/pi-crew (59 stars, last pushed 25d ago), licensed MIT. It adds 55 tokens to every session and 1,175 once invoked, about $0.0002 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-09-13.

Related

oracle compared with agents from other repositories

oracle next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oraclebaphuongna/pi-crewAgent5925d agoMITA55Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent668yesterdayMITA63Claude Code
loom-advisorcosmix/loomAgent66yesterdayMITA51Claude Code
debuggerTT-Wang/forgeAgent3513d agoMITA17Claude Code
debuggerNickCrew/Claude-CortexAgent7610d agoMITA38Claude Code
evolve-retrospectivemickeyyaya/evolve-loopAgent8todayApache-2.0A51Claude Code
debuggerbostonaholic/rpikitAgent1922d agoMITA28Claude Code