omp packages

pi-oracle0.7.44

ChatGPT and Grok web-oracle extension for pi with isolated browser auth, async jobs, and project-context archives.

GitHub Actions Published 17 hours ago MIT ~4.4K downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-oracle

ChatGPT and Grok web-oracle extension for Pi. Archive project context, dispatch long-running web oracle queries asynchronously, continue conversations in the same provider thread, capture generated downloadable artifacts, and automatically wake your Pi session when results arrive.

Highlights

  • Zero external CLI setup: pi install npm:pi-oracle bundles agent-browser (native platform binaries via npm optionalDependencies) and modern-tar + Node 24 native node:zlib (zstd and gzip). No manual zstd, tar, or global agent-browser installation required. If no local Chrome/Chromium is found during /oracle-auth, Chrome for Testing is installed automatically via agent-browser install.
  • Clean interactive browser auth: /oracle-auth chatgpt and /oracle-auth grok open an isolated headed browser window for you to sign in once, save storage state (0600) to ~/.pi/agent/oracle/state/<provider>.json, and run all subsequent oracle jobs cleanly headless with zero macOS Keychain prompts or Chrome profile cloning.
  • Live ChatGPT & Grok support:
    • ChatGPT (chatgpt.com): power tiers instant, medium, high, extra_high, and pro (6 Pro), .tar.zst archives up to 512 MB, follow-up turns, and native agent-browser download artifact capture.
    • Grok (grok.com): modes auto, fast, expert, build, and heavy, .tar.gz archives up to 150 MB, and canonical /c/<id> follow-up turns.
  • Zero idle overhead: Event-driven fs.promises.watch job monitoring runs zero polling timers and zero subprocesses when idle, while still waking your session automatically after restarts.

Requirements

  • Node.js >=24.22.3 (Apple Silicon macOS or Linux)
  • Pi 1.8.0 or later (official Pi via @earendil-works/pi-coding-agent, or Fitch Pi via fitchmultz/pi)

Install

pi install npm:pi-oracle

Quick Start

  1. Authenticate one or both providers once:
/oracle-auth chatgpt
/oracle-auth grok
  1. Dispatch an oracle job from Pi:
/oracle Review the auth flow and highlight race conditions.
/oracle Use Grok to audit our caching strategy.
  1. Follow up in the same provider conversation thread:
/oracle-followup <job-id> Now propose the minimal patch for finding #2.

Commands & Tools

Command Purpose
/oracle <request> Preflight, gather project context, and dispatch a ChatGPT or Grok job
/oracle-followup <job-id> <request> Continue an earlier job in the same provider thread
/oracle-auth [chatgpt|grok] Sign in to ChatGPT or Grok in an isolated headed browser
/oracle-status [job-id|--all] Show provider auth status and recent jobs
/oracle-read <job-id> Read a completed job's response and downloaded artifacts
/oracle-cancel <job-id> Stop an active job and verify worker termination
/oracle-clean <job-id|all> Remove finished job directories

Agent tools: oracle_preflight, oracle_submit, oracle_status, oracle_read, and oracle_cancel.

Configuration

Optional global config at ~/.pi/agent/oracle.json (or legacy ~/.pi/agent/extensions/oracle.json). Trusted projects may override safe defaults in .pi/oracle.json (privileged browser paths and auth settings are global-only):

{
  "defaults": {
    "provider": "chatgpt",
    "chatgptTier": "pro",
    "grokMode": "expert"
  },
  "browser": {
    "runMode": "headless",
    "maxConcurrentJobs": 2
  },
  "artifacts": {
    "capture": true
  }
}

Legacy ChatGPT preset names (such as pro_extended, thinking_light, thinking_extended, thinking_heavy, and instant_auto_switch) are accepted and normalized automatically to pro, medium, high, extra_high, and instant.

License

MIT