codex-deep-search

Installation
SKILL.md

Codex Deep Search

Use Codex CLI's web search capability for research tasks needing more depth than Brave API snippets.

When to Prefer Over web_search

  • Complex/niche topics needing multi-source synthesis
  • User explicitly asks for thorough/deep research
  • Brave results are too shallow or missing context

Usage

This skill is synchronous only. Call the script, wait for it to finish, then read the output file and summarize the result back to the user.

bash /path/to/codex-deep-search/scripts/search.sh \
  --prompt "Deep research query" \
  --output "/tmp/search-result.md" \
  --task-name "topic-research" \
  --timeout 120

The script prints progress to stdout and writes the final report to the output file.

Fallback

If the script cannot find a usable codex binary, it will:

  • print FALLBACK_TO_DEFAULT_SEARCH: codex_unavailable
  • exit with code 69

When that happens, the main agent should tell the user Codex deep search is unavailable on this machine and fall back to the default web search flow instead of retrying this skill.

Parameters

Flag Required Default Description
--prompt Yes Research query
--output No data/codex-search-results/<task>.md Output file path
--task-name No search-<timestamp> Task identifier used for the default output file name
--model No gpt-5.3-codex Model override
--timeout No 120 Seconds before auto-stop

Result Files

File Content
data/codex-search-results/<task>.md Search report (incremental + final summary)
data/codex-search-results/latest-meta.json Task metadata, status, duration, output path, and resolved codex path

Key Design

  • Synchronous execution — caller waits for completion and then reads the result file
  • Incremental writes — results are written while the search is running
  • Low reasoning effort — reduces memory pressure during long searches
  • Portable timeout — uses available timeout tooling on Linux/macOS
  • Explicit fallback — missing Codex binary returns a machine-readable fallback signal
Related skills

More from yanyang1116/skills

Installs
6
First Seen
Mar 22, 2026