AgentSkillsCN

oracle

【做什么】通过 Oracle CLI 将提示词与文件路由至 GPT-5 Pro、Gemini 3 Pro、Claude Opus 4.1 等模型 【如何】利用 Oracle Serve(在 :9473 上运行的持久化浏览器守护进程)或通过 OPENAI_API_KEY 调用 API 【何时】作为第二意见、多模型对比,或仅限浏览器的功能(图像生成、扩展思维) 【为什么】实现跨模型验证,并访问当前上下文中尚不可用的模型 触发条件:“询问 GPT”、“Oracle”、“第二意见”、“询问 ChatGPT”、“与 GPT 交叉核对”、“多模型”、“比较模型”、“GPT-5”、“Gemini”、“使用 Oracle”

SKILL.md
--- frontmatter
name: oracle
description: |
  [WHAT] Route prompts + files to GPT-5 Pro, Gemini 3 Pro, Claude Opus 4.1, and more via oracle CLI
  [HOW] Uses oracle serve (persistent browser daemon on :9473) or API with OPENAI_API_KEY
  [WHEN] Second opinion, multi-model comparison, browser-only features (image gen, extended thinking)
  [WHY] Cross-model validation and access to models not available in current context

  Triggers: "ask gpt", "oracle", "second opinion", "ask chatgpt", "cross-check with gpt",
            "multi-model", "compare models", "gpt-5", "gemini", "use oracle"

oracle 🧿

Bundle your prompt and files so another AI can answer with real context. Speaks GPT-5.x, Gemini 3 Pro, Claude Sonnet 4.5, Claude Opus 4.1, and more — via API or browser automation.

Local Setup (THIS MACHINE)

Browser mode is pre-configured. oracle serve runs as a launchd daemon. Agents just run oracle -p "..." --file ... — config handles routing to serve.

code
Engine:  browser (via oracle serve on 127.0.0.1:9473)
Config:  ~/.oracle/config.json (remoteHost + token already set)
Daemon:  ~/Library/LaunchAgents/com.oracle.serve.plist
API key: OPENAI_API_KEY in ~/.env.local (source it first)

DO NOT use --engine browser or --browser-manual-login flags directly. DO NOT try to sniff Chrome cookies — macOS app-bound encryption blocks it. JUST RUN: oracle -p "your prompt" --file path/to/files

If oracle fails with "unauthorized" or cookie errors:

  1. Check serve is running: launchctl list | grep oracle
  2. Restart: launchctl stop com.oracle.serve && launchctl start com.oracle.serve
  3. Login needed: open http://127.0.0.1:9473 — Chrome window should appear, login to ChatGPT once
  4. For API mode: source ~/.env.local && oracle --engine api -p "..."

Repository: steipete/oracle Homepage: askoracle.dev Language: TypeScript (95%) · JavaScript (4.2%) · Shell (0.8%) Stars: 1,235 · License: Other Latest: v0.8.5 (2026-01-19)

Source Information

This skill synthesizes knowledge from the project README, CHANGELOG, GitHub issues, releases, and file structure — all sourced from the GitHub repository. Confidence is medium across all sources; no conflicting information was detected.

When to Use This Skill

Use this skill when you need to:

  • Route a prompt + files to a stronger model — bundle context and send to GPT-5 Pro, Gemini 3 Pro, Claude Opus 4.1, etc.
  • Multi-model comparison — run the same prompt against multiple models in one invocation
  • Browser automation for ChatGPT/Gemini — when you don't have API keys or need browser-specific features (image generation, thinking time)
  • Copy/render bundles — assemble markdown bundles for manual paste into any AI chat
  • Session management — track, replay, and reattach to long-running API sessions (GPT-5 Pro detaches by default)
  • MCP integration — use Oracle as an MCP server for tool-based AI workflows
  • Remote browser service — run oracle serve on a signed-in host, connect from clients
  • Check known issues — browser mode quirks, attachment bugs, platform-specific workarounds

Real-World Triggers

ScenarioCommand Pattern
Get a second opinion from GPT-5 Prooracle -p "Review this" --file src/**/*.ts
Compare models on the same promptoracle --models gpt-5.1-pro,gemini-3-pro -p "..." --file ...
No API key, use browseroracle --engine browser -p "..." --file ...
Preview token usage before sendingoracle --dry-run summary -p "..." --file ...
Copy bundle for manual pasteoracle --render --copy -p "..." --file ...

Quick Reference

Installation

bash
# npm (global)
npm install -g @steipete/oracle

# Homebrew
brew install steipete/tap/oracle

# One-shot (no install)
npx -y @steipete/oracle …

Requires Node 22+.

Core Examples

Simple API run (needs OPENAI_API_KEY):

bash
oracle -p "Write an architecture note for the storage adapters" --file src/storage/README.md

Multi-model run:

bash
oracle -p "Cross-check the data layer assumptions" \
  --models gpt-5.1-pro,gemini-3-pro \
  --file "src/**/*.ts"

Copy bundle for manual paste:

bash
oracle --render --copy \
  -p "Review the TS data layer for schema drift" \
  --file "src/**/*.ts,*/*.test.ts"

Browser mode (no API key needed):

bash
oracle --engine browser -p "Walk through the UI smoke test" --file "src/**/*.ts"

Dry run preview:

bash
oracle --dry-run summary -p "Check release notes" --file docs/release-notes.md

Gemini browser image generation:

bash
oracle --engine browser --model gemini-3-pro \
  -p "a cute robot holding a banana" \
  --generate-image out.jpg --aspect 1:1

Session management:

bash
oracle status                      # List sessions
oracle session <id> --render       # Replay a session
oracle status --clear --hours 168  # Prune old sessions

Remote browser service:

bash
# Host (signed-in Chrome)
oracle serve --host 0.0.0.0:9473 --token secret123

# Client
oracle --engine browser --remote-host localhost:9473 --remote-token secret123 -p "..."

Supported Models

ModelTypeNotes
gpt-5.1-proAPI (default)Alias to GPT-5.2 Pro
gpt-5-proAPIOriginal GPT-5 Pro
gpt-5.1 / gpt-5.2APIStandard models
gpt-5.1-codexAPICodex variant (API-only)
gpt-5.2-instant / gpt-5.2-proAPISpeed/quality variants
gemini-3-proAPI + BrowserNeeds GEMINI_API_KEY or Chrome cookies
claude-4.5-sonnet / claude-4.1-opusAPINeeds ANTHROPIC_API_KEY
Any OpenRouter IDAPIe.g., minimax/minimax-m2

Key Flags

FlagPurpose
-p, --prompt <text>Required prompt
-f, --file <paths...>Attach files/dirs (globs + ! excludes)
-e, --engine <api|browser>Choose API or browser
-m, --model <name>Select model
--models <list>Comma-separated models for multi-model runs
--render, --copyPrint/copy assembled markdown bundle
--waitBlock for background API runs
--dry-run [summary|json|full]Preview without sending
--write-output <path>Save final answer to file
--files-reportPrint per-file token usage
--base-url <url>Point API at LiteLLM/Azure/OpenRouter
--browser-model-strategyselect|current|ignore for ChatGPT picker
--browser-thinking-timelight|standard|extended|heavy
--browser-manual-loginReuse persistent automation profile
--background / --no-backgroundForce Responses API background mode
--timeout <seconds|auto>API deadline (auto = 60m for pro)

Configuration

Defaults in ~/.oracle/config.json (JSON5). Key settings:

  • browser.chatgptUrl — target a specific ChatGPT workspace/folder
  • browser.thinkingTime / browser.manualLogin — browser defaults
  • browser.remoteHost / browser.remoteToken — remote service connection
  • browser.forceEnglishLocale — opt into --lang/--accept-lang

Environment Variables

VariablePurpose
OPENAI_API_KEYGPT-5.x API access
GEMINI_API_KEYGemini 3 Pro API access
ANTHROPIC_API_KEYClaude models API access
ORACLE_HOME_DIROverride session storage path (~/.oracle/sessions)
AZURE_OPENAI_*Azure endpoint configuration

MCP Integration

Run the stdio server via oracle-mcp. Configure in .mcp.json or via mcporter.

Codex Skill Integration

bash
mkdir -p ~/.codex/skills
cp -R skills/oracle ~/.codex/skills/oracle

Then reference in AGENTS.md/CLAUDE.md.

Key Concepts

  • Bundle — Oracle assembles your prompt + files into a single markdown bundle. This bundle is what gets sent to the model (API) or pasted (browser/copy mode).
  • Engineapi (default when keys present) or browser (experimental, uses Chrome automation). API is more reliable.
  • Multi-model runs--models sends the same bundle to multiple models, aggregating cost/usage.
  • Background/detach — GPT-5 Pro API runs detach by default. Use --wait to block, or oracle session <id> to reattach.
  • Sessions — Stored in ~/.oracle/sessions. Replay with oracle session <id> --render. Prune with oracle status --clear.

Known Issues (Open)

IssueSummary
#79Chrome opens and auto-closes in browser mode
#76MAX_FILE_SIZE_BYTES not configurable
#75Browser mode fails during manual login
#65Browser doesn't select ChatGPT 5.2-pro correctly
#68MCP consult tool ignores browser config
#51Windows cookie extraction for Gemini browser

Platform Notes

  • macOS: Browser mode stable
  • Linux: May need --browser-chrome-path / --browser-cookie-path
  • Windows: Prefer --browser-manual-login or inline cookies if decryption is blocked

Working with This Skill

Beginner

Start with --render --copy to see what Oracle bundles, then paste manually. Graduate to API mode once you have keys set up.

Intermediate

Use multi-model runs (--models) to cross-check answers. Use --dry-run to preview token costs. Set up ~/.oracle/config.json for persistent defaults.

Advanced

Deploy oracle serve for remote browser access. Integrate via MCP for tool-based workflows. Use --background with session management for long-running GPT-5 Pro queries.

Available References

FileContentsConfidence
references/README.mdFull README with installation, usage, flags, integrationMedium
references/CHANGELOG.mdVersion history from v0.7.2 through v0.8.5Medium
references/issues.md6 open + 29 closed GitHub issuesMedium
references/releases.md30 releases with detailed notesMedium
references/file_structure.md342-item repository treeMedium

Version History (Recent)

VersionDateHighlights
v0.8.52026-01-19Bridge workflow + MCP browser controls, background/zombie flags
v0.8.42026-01-05Zod 4.3.5, attachment upload fixes
v0.8.32025-12-31Cookie wait, force English locale, attachment hardening
v0.8.22025-12-30Release script fixes, test stabilization
v0.8.12025-12-30Config defaults for thinkingTime/manualLogin
v0.8.02025-12-28Browser reliability push (reattach, capture, uploads)

Generated by Skill Seeker | Enhanced from GitHub repository sources