pi-oracle0.7.44
ChatGPT and Grok web-oracle extension for pi with isolated browser auth, async jobs, and project-context archives.
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.
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-oraclebundlesagent-browser(native platform binaries via npmoptionalDependencies) andmodern-tar+ Node 24 nativenode:zlib(zstdandgzip). No manualzstd,tar, or globalagent-browserinstallation required. If no local Chrome/Chromium is found during/oracle-auth, Chrome for Testing is installed automatically viaagent-browser install. - Clean interactive browser auth:
/oracle-auth chatgptand/oracle-auth grokopen 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 tiersinstant,medium,high,extra_high, andpro(6 Pro),.tar.zstarchives up to 512 MB, follow-up turns, and nativeagent-browser downloadartifact capture. - Grok (
grok.com): modesauto,fast,expert,build, andheavy,.tar.gzarchives up to 150 MB, and canonical/c/<id>follow-up turns.
- ChatGPT (
- Zero idle overhead: Event-driven
fs.promises.watchjob 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.0or later (official Pi via@earendil-works/pi-coding-agent, or Fitch Pi viafitchmultz/pi)
Install
pi install npm:pi-oracle
Quick Start
- Authenticate one or both providers once:
/oracle-auth chatgpt
/oracle-auth grok
- Dispatch an oracle job from Pi:
/oracle Review the auth flow and highlight race conditions.
/oracle Use Grok to audit our caching strategy.
- 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