oracle: Instructions file for Codex

AGENTS.md

oracle AGENTS.md is an instructions file for Codex, OpenCode from steipete/oracle. It costs 1,152 tokens per session, scanned A, original, MIT.

Project instructions describe how to use Oracle, a tool that lets developers ask another AI model for help with code and files. They also document test settings, browser runs, waiting behavior, saved sessions, and command-line output.

In plain words
What is it for?
Use them when you are stuck on a coding problem, need Oracle to inspect files, or are running Oracle-related tests and command-line tasks.
Why use it?
They give the coding agent project-specific rules for asking Oracle and running its slower tests. This reduces confusion about which model, account, test mode, or session to use.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is steipete/oracle's own configuration. It tells Codex and OpenCode how to work on oracle itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything oracle configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/steipete/Projects/oracle/runner.

About the project

Oracle is a command-line tool and MCP server that packages a prompt with selected project files, sends them to an AI model, and saves the response as a session. Developers and coding agents use it to get a second-model review based on the actual code and context. The catalogue add-ons support Oracle workflows.

steipete/oracle · 4,059 stars · on GitHub · askoracle.sh

Reuse

Borrowing it

Nothing to install: this file belongs to steipete/oracle. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/steipete/oracle/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/steipete/oracle

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for oracle AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/steipete/oracle/agents-md/github.svg)](https://agentmods.dev/instructions/steipete/oracle/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/steipete/oracle/agents-md"><img src="https://agentmods.dev/badge/instructions/steipete/oracle/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for oracle AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/steipete/oracle/agents-md"><img src="https://agentmods.dev/badge/instructions/steipete/oracle/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,152 This file is loaded in full into every session.
When invoked 1,152 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01152 $0.01152
Opus 5.5 $0.00461 $0.00461
Sonnet 5.5 $0.00230 $0.00230
Haiku 4.5 $0.00115 $0.00115

Measured 17d ago against content hash 416782d54f7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

oracle AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 30 lines

How it starts

The opening of the file, as written. The whole thing — 30 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.MD

Oracle-specific notes:

  • ChatGPT project URLs: [email protected] -> https://chatgpt.com/g/g-p-691edc9fec088191b553a35093da1ea8-oracle/project; [email protected] -> https://chatgpt.com/g/g-p-69505ed97e3081918a275477a647a682/project. Prefer studpete URL if steipete project not found.
  • Pro browser runs: allow up to 10 minutes; never click "Answer now"; keep at least 1–2 Pro live tests (reattach must stay Pro); move other tests to faster models where safe.
  • Live smoke tests: OpenAI live tests are opt-in. Run ORACLE_LIVE_TEST=1 pnpm vitest run tests/live/openai-live.test.ts with a real OPENAI_API_KEY when you need the background path; gpt-5-pro can take ~10 minutes.
  • Wait defaults: gpt-5-pro API runs detach by default; use --wait to stay attached. gpt-5.1 and browser runs block by default; every run prints oracle session <id> for reattach.
  • Session storage: Oracle stores session data under ~/.oracle; delete it if you need a clean slate.
  • CLI output: the first line of any top-level CLI start banner should use the oracle emoji, e.g. 🧿 oracle (<version>) ...; keep it only for the initial command headline. Exception: the TUI exit message also keeps the emoji.
  • Model access note (2025-11-23): gpt-5.1-pro and grok-4.1 are not yet available on Peter’s keys; live tests that require them will fail until access is granted.
  • Oracle CLI on Node 25: if pnpm dlx @steipete/oracle --help fails with a missing node_sqlite3.node, rebuild sqlite3 in the pnpm dlx cache using system Python: PYTHON=/usr/bin/python3 /Users/steipete/Projects/oracle/runner npx node-gyp rebuild from the sqlite3 package dir printed in the error, then rerun the command.
  • Before a release, skim manual smokes in docs/manual-tests.md and rerun any that cover your change surface (especially browser/serve paths).
  • If browser smokes echo the prompt (Instant), rerun with --browser-keep-browser --verbose in tmux, then inspect DOM with pnpm tsx scripts/browser-tools.ts eval ... to confirm assistant turns exist; we fixed a case by refreshing assistant snapshots post-send.
  • Browser “Pro thinking” gate: never click/auto-click ChatGPT’s “Answer now” button. Treat it as a placeholder and wait 10m–1h for the real assistant response (auto-clicking skips long thinking and changes behavior).
  • Browser smokes should preserve Markdown (lists, fences); if output looks flattened or echoed, inspect the captured assistant turn via browser-tools.ts eval before shipping.
  • Working on Windows? Read and update docs/windows-work.md before you start.
  • Sparkle signing key lives at /Users/steipete/Library/CloudStorage/Dropbox/Backup/Sparkle; set SPARKLE_PRIVATE_KEY_FILE to that path when notarizing the notifier.
  • Browser cookie sync + Node 25: if browser runs fail with “Failed to load keytar… Cannot find module '../build/Release/keytar.node'” and no cookies are applied, rebuild keytar in the pnpm dlx cache: run PYTHON=/usr/bin/python3 /Users/steipete/Projects/oracle/runner npx node-gyp rebuild inside the keytar directory printed in the error, then rerun the oracle command.

Browser-mode debug notes (ChatGPT URL override)

  • When a ChatGPT folder/workspace URL is set, Cloudflare can block automation even after cookie sync. Use --browser-keep-browser to leave Chrome open, solve the interstitial manually, then rerun.
  • If a run stalls/looks finished but CLI didn’t stream output, check the latest session (oracle status) and open it (oracle session <id> --render) to confirm completion.
  • Active Chrome port/pid live in session metadata (~/.oracle/sessions/<id>/meta.json). Connect with npx tsx scripts/browser-tools.ts eval --port <port> "({ href: window.location.href, ready: document.readyState })" to inspect the page.
  • To debug with agent-tools, launch Chrome via an Oracle browser run (cookies copied) and keep it open (--browser-keep-browser). Then use ~/Projects/agent-scripts/bin/browser-tools ... --port <port> with the port from ~/.oracle/sessions/<id>/meta.json. Avoid starting a fresh browser-tools Chrome when you need the synced cookies.
  • Double-hop nav is implemented (root then target URL), but Cloudflare may still need manual clearance or inline cookies.
  • After finishing a feature, ask whether it matters to end users; if yes, update the changelog. Read the top ~100 lines first and group related edits into one entry instead of scattering multiple bullets.
  • Beta publishing: when asked to ship a beta to npm, bump the version with a beta suffix (e.g., 0.4.4-beta.1) before publishing; npm will not let you overwrite an existing beta tag without a new version.

Read the full file on GitHub · 30 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · -1 lines · -41 tokens per session 416782d54f7a
  2. 2mo ago First seen · 31 lines · 1,193 tokens per session scan A ca4085936eb8

Subscribe to this mod's changes

oracle AGENTS.md is an instructions file published in the GitHub repository steipete/oracle (4,059 stars, last pushed 2d ago), licensed MIT. It adds 1,152 tokens to every session, about $0.0046 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens