oracle

Tool Best practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
📦 Install
npx clawhub@latest install oracle

oracle — best use

Oracle bundles your prompt + selected files into one “one-shot” request so another model can answer with real repo context (API or browser automation). Treat output as advisory: verify against code + tests.

Main use case (browser, GPT‑5.2 Pro)

Default workflow here: --engine browser with GPT‑5.2 Pro in ChatGPT. This is the common “long think” path: ~10 minutes to ~1 hour is normal; expect a stored session you can reattach to.

Recommended defaults:

Golden path

  1. Pick a tight file set (fewest files that still contain the truth).
  2. Preview payload + token spend (--dry-run + --files-report).
  3. Use browser mode for the usual GPT‑5.2 Pro workflow; use API only when you explicitly want it.
  4. If the run detaches/timeouts: reattach to the stored session (don’t re-run).

Commands (preferred)

- oracle --help

- If the binary isn’t installed: npx -y @steipete/oracle --help (avoid pnpx here; sqlite bindings).

- oracle --dry-run summary -p "" --file "src/" --file "!/.test."

- oracle --dry-run full -p "" --file "src/**"

- oracle --dry-run summary --files-report -p "" --file "src/**" - oracle --engine browser --model gpt-5.2-pro -p "" --file "src/**" - oracle --render --copy -p "" --file "src/**"

- Note: --copy is a hidden alias for --copy-markdown.

Attaching files (--file)

--file accepts files, directories, and globs. You can pass it multiple times; entries can be comma-separated. - --file "src/**"

- --file src/index.ts

- --file docs --file README.md

- --file "src/" --file "!src//.test.ts" --file "!/.snap" - Default-ignored dirs: node_modules, dist, coverage, .git, .turbo, .next, build, tmp (skipped unless explicitly passed as literal dirs/files).

- Honors .gitignore when expanding globs.

- Does not follow symlinks.

- Dotfiles filtered unless opted in via pattern (e.g. --file ".github/**").

- Files > 1 MB rejected.

Engines (API vs browser)

- --browser-attachments auto|never|always (auto pastes inline up to ~60k chars then uploads). - Host: oracle serve --host 0.0.0.0 --port 9473 --token

- Client: oracle --engine browser --remote-host --remote-token -p "" --file "src/**"

Sessions + slugs

- List: oracle status --hours 72

- Attach: oracle session --render

Prompt template (high signal)

Oracle starts with zero project knowledge. Assume the model cannot infer your stack, build tooling, conventions, or “obvious” paths. Include:

Safety

“Exhaustive prompt” restoration pattern

For long investigations, write a standalone prompt + file set so you can rerun days later:

Oracle runs are one-shot; the model doesn’t remember prior runs. “Restoring context” means re-running with the same prompt + --file … set (or reattaching a still-running stored session).

← Back to all skills

Get openclaw-cli free

Install in one command and start monitoring your AI gateway.

npm install -g openclaw-cli