codex-deep-search
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
More from yanyang1116/skills
english-evaluation
Respond in Chinese to user requests; when the user's message is fully in English (ignoring punctuation, digits, emojis, and whitespace), append a brief Chinese evaluation plus a 1-10 score.
22openclaw-channel-file-send
Send an existing local file to the current chat using OpenClaw's official media send API for the active channel. Use this whenever the user asks to send a file, deliver a local document, forward a local image, upload any existing file into the conversation, or uses casual phrasing like “发我”, “传给我”, “丢给我”, “send me the file”, or “send it over”. Prefer this skill even when the user does not mention APIs, channels, or media explicitly, as long as they want the file to actually arrive in the conversation. Do not use reply attachments or read-file attachments for this workflow.
7openclaw-channel-screenshot-send
Capture a fresh screenshot and send it into the current chat using OpenClaw's official media send API for the active channel. Use this whenever the user asks to screenshot the screen and send it, capture then send, send the current screen, send a screenshot here, upload the screen into chat, or uses casual phrasing like “发我截图”, “把屏幕发来”, “send it over”, or “丢到聊天里”. Prefer this skill even when the user does not mention APIs, channels, or media explicitly, as long as they want the screenshot to actually arrive in the conversation. Do not use read-image reply attachments for this workflow.
4openclaw-private-skills-manager
>
4openclaw-codex-deep-search
Deep web search using Codex CLI for complex queries that need multi-source synthesis. Use when web_search (Brave) returns insufficient results, when the user asks for in-depth research, comprehensive analysis, or says "deep search", "详细搜索", "帮我查一下", or when a topic needs following multiple links and cross-referencing sources.
3channel-file-send
Send an existing local file to the current chat using OpenClaw's official media send API for the active channel. Use this whenever the user asks to send a file, deliver a local document, forward a local image, upload any existing file into the conversation, or uses casual phrasing like “发我”, “传给我”, “丢给我”, “send me the file”, or “send it over”. Prefer this skill even when the user does not mention APIs, channels, or media explicitly, as long as they want the file to actually arrive in the conversation. Do not use reply attachments or read-file attachments for this workflow.
2