Bundle prompts + repo files into one-shot AI requests via the oracle CLI — with browser automation, sessions, and smart file filtering.
npx clawhub@latest install oracleRequirements
Oracle is a CLI tool that packages your prompt and a curated set of source files into a single "one-shot" request, giving an AI model full repo context to answer questions or analyse code. It supports both direct API calls and browser-based automation (e.g. ChatGPT with GPT‑5.2 Pro), handles long-running sessions you can detach and reattach, and lets you preview token spend before committing to a run. Treat oracle's output as advisory — always verify suggestions against your code and tests.
npx clawhub@latest install oracleClick the Install button at the top of this page for one-click setup
.gitignore awareness) to keep token spend predictable.--dry-run before sending anything to a model.--engine api (Claude, Grok, Codex, etc.).Oracle merges your prompt with any number of files, directories, or globs into a single request payload. Pass --file multiple times, mix includes and !-prefixed excludes, and oracle intelligently skips node_modules, dist, .git, and other noise directories automatically.
The --engine browser mode drives ChatGPT or Gemini directly in a browser session — ideal for models only accessible via web UI. It auto-decides whether to paste content inline or upload attachments based on size (up to ~60k chars inline, then file upload).
All runs are stored under ~/.oracle/sessions. If a long browser run detaches or times out, use oracle status --hours 72 to list recent sessions and oracle session <id> --render to reattach — no need to re-run and spend tokens again.
Run --dry-run summary or --dry-run full combined with --files-report to inspect exactly what would be sent and estimate token cost before any real request is made. This prevents surprise overruns on large codebases.
When OPENAI_API_KEY is set (or --engine api is explicit), oracle routes through the API instead of the browser. This unlocks Claude, Grok, Codex, and multi-model workflows that the browser engine doesn't support.
Serve a browser automation host on a remote machine with oracle serve --host 0.0.0.0 --port 9473 --token <secret>, then connect any oracle client to it. Useful for offloading long-running browser sessions to a server.
A developer bundles the relevant src/** files with a detailed prompt describing the bug, error text, and constraints, then runs oracle --engine browser --model gpt-5.2-pro. The model receives full context and returns a patch plan. If the session detaches after 20 minutes, the developer reattaches rather than re-running.
Before committing to an expensive run, a developer runs oracle --dry-run summary --files-report -p "<task>" --file "src/**" to see which files would be included and how many tokens they'd consume, then trims the file set before the real run.
When the browser engine isn't suitable, the developer uses oracle --render --copy -p "<task>" --file "src/**" to render the full bundled prompt to the clipboard, then pastes it manually into any chat interface.
For a complex multi-day debugging effort, a developer writes a standalone prompt file with a 6–30 sentence project briefing, repro steps, and exact errors, then attaches all relevant config and entrypoint files. The prompt is self-contained so the same oracle command can be rerun days later with identical context.
--engine api. When OPENAI_API_KEY is set, oracle defaults to API mode; otherwise it defaults to browser mode.oracle binary — Installed via npm (@steipete/oracle). The npx -y @steipete/oracle fallback works for one-off runs (avoid pnpx due to sqlite binding issues).npx clawhub@latest install oracleRequirements
Log in to write a review
No reviews yet. Be the first to share your experience!