🧿

oracle

Rekommenderad

Bundle prompts and repo files into one-shot AI requests with session management, dry-run previews, and browser or API engine support.

av OpenClawv1.0.0
Coding Agents & IDEsProductivityAI PoweredOpen SourceAutomationCLIDeveloper Tool
Ansluter till VM...
Ansluter till VM...
npx clawhub@latest install oracle
29Aktuella installationer
v1.0.0Version

Krav

oracleLLM API Key(optional)Session Storage Directory(optional)

Oracle is a CLI tool that bundles your prompt together with selected source files into a single, context-rich request sent to a large language model. It gives the model genuine repo awareness — no hallucinated file paths, no guessing at your stack — so the answer is grounded in your actual code.Use it to ask deep architectural questions, diagnose bugs with full context, or plan refactors across many files at once. Oracle supports both browser automation (ChatGPT, Gemini) and direct API calls, manages long-running sessions, and lets you preview token spend before committing to a real run.

Hur det fungerar

Oracle operates as a one-shot context injector: it reads your prompt, expands your file globs, filters out noise (node_modules, dist, dotfiles, files over 1 MB), and assembles everything into a single payload.Pick your files — use --file with paths, directories, or globs to include exactly what the model needs.Preview before spending tokens — run --dry-run summary --files-report to see what would be sent and how large the payload is.Choose your engine — --engine browser drives ChatGPT or Gemini via browser automation; --engine api hits the OpenAI API directly (also supports Claude, Grok, Codex).Run and optionally reattach — long browser runs (up to ~1 hour) are stored as sessions under ~/.oracle/sessions; if the CLI times out you can reattach without re-running and re-spending tokens.

Nyckelfunktioner

File bundling with glob support — --file accepts paths, directories, globs, and negation patterns. Pass it multiple times or comma-separate entries.Dry-run preview — --dry-run summary|full plus --files-report shows exactly what would be sent and estimates token cost before any real request.Browser & API engines — browser mode automates ChatGPT and Gemini; API mode targets OpenAI-compatible endpoints including Claude, Grok, and Codex.Persistent sessions with reattach — long-running or detached runs are stored locally; list with oracle status and reattach with oracle session .Readable session slugs — use --slug to give sessions human-readable IDs instead of random hashes.Manual paste fallback — --render --copy builds the full markdown payload and copies it to the clipboard for manual pasting into any chat interface.Remote browser host — serve a browser instance on one machine and connect the CLI from another using --remote-host and --remote-token.Duplicate prompt guard — prevents accidental re-runs of identical prompts; override with --force when a fresh run is intentional.

Krav

LLM API Key (optional) — Required only when using --engine api. When OPENAI_API_KEY is set, Oracle auto-selects API mode. Without it, Oracle defaults to browser mode. Supports: OpenAI API-compatible endpoints.Browser engine (optional, no key needed) — Browser mode drives an existing ChatGPT or Gemini session via automation — no API key required. Supports: ChatGPT (GPT-4, GPT-5.2 Pro), Google Gemini.

Användningsfall

Deep bug diagnosis — Attach your entry points, relevant modules, and the exact error output so the model sees the full picture before answering.Refactor planning — Send a tight file set covering the affected surface area and ask for a patch plan with tradeoffs — no hand-waving about files it can't see.Architecture review — Bundle config files, key directories, and a project briefing to get grounded recommendations without the model inventing your stack.Resumable long investigations — Write an "exhaustive prompt" with a full project briefing and file set so you (or a teammate) can re-run the same query days later and get consistent, reproducible results.

Hur man installerar

1
Run in your terminal
npx clawhub@latest install oracle
or
2
Click the Install button at the top of this page for one-click setup

Vanliga frågor

Recensioner

0 recensioner

Logga in för att skriva en recension

Inga recensioner ännu. Var den första att dela din upplevelse!