Skip to content

maxsumrall/pi-codex-websearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-codex-websearch

A tiny pi extension that exposes Codex CLI web search as:

  • a slash command: /codex-search <query>
  • a tool the model can call: codex_websearch({ query, ... })

Quickstart

# 1) Install the pi package
pi install git:github.com/maxsumrall/pi-codex-websearch

# 2) Make sure Codex CLI is set up
codex login

Then in pi:

/codex-search what does codex --search do?

Requirements

  • codex CLI installed and on your PATH
  • authenticated (codex login)

Usage

Interactive command

/codex-search what is the latest stable Node.js version?

Tool (for prompts / automation)

Example prompt:

Use codex_websearch to look up X and include source URLs.

Tool params (all optional except query):

  • query (string, required)
  • mode ("live" | "cached", default: "live")
  • maxSources (int, default: 6)
  • timeoutMs (int, default: 120000)
  • model (string) – passed to codex -m
  • instructions (string) – appended to the Codex prompt

Notes

  • Output is truncated to keep pi’s context small. When output is truncated (or Codex fails), the tool keeps a temp directory and includes an output path (see details.fullOutputPath or the message footer).
  • This runs Codex in a temp directory with --sandbox read-only.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors