oracle
추천Bundle prompts and repo files into one-shot AI requests with session management, dry-run previews, and browser or API engine support.
npx clawhub@latest install oracle요구 사항
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.
작동 원리
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.
주요 기능
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
요구 사항
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.
활용 사례
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.
설치 방법
npx clawhub@latest install oraclenpx clawhub@latest install oracle요구 사항
자주 묻는 질문
리뷰
0개 리뷰리뷰를 작성하려면 로그인
아직 리뷰가 없습니다. 첫 번째로 경험을 공유해 보세요!