360 Secure SkillHub
360 安全技能中心

Codex Deep Search

核心功能:基于Codex CLI实现深度网页搜索,整合多源信息分析,弥补普通Web搜索的浅层结果缺陷。典型场景:处理复杂/小众主题研究、用户要求深度调研,或普通搜索结果缺乏上下文时。支持异步(后台执行,结果通过Telegram推送)和同步(短查询输出到文件)两种模式,输入为研究查询,异步模式需告知用户任务执行中,同步模式可读取输出文件汇总结果。

jiangwzh
jiangwzh
热度 74.88
最近更新 2026-05-18 12:16:22
分类:搜索依赖:代码执行 / 读写文件 / 联网浏览搜索应用场景:研究 / 摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add codex-deep-search
Metadata
name
codex-deep-search
description
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.

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

Dispatch Mode (recommended — background + callback)

nohup bash /home/ubuntu/clawd/skills/codex-deep-search/scripts/search.sh \
  --prompt "Your research query" \
  --task-name "notebooklm-research" \
  --telegram-group "-5006066016" \
  --timeout 120 > /tmp/codex-search.log 2>&1 &

After dispatch: tell user search is running, results will arrive via Telegram. Do NOT poll.

Synchronous Mode (short queries only)

bash /home/ubuntu/clawd/skills/codex-deep-search/scripts/search.sh \
  --prompt "Quick factual query" \
  --output "/tmp/search-result.md" \
  --timeout 60

Then read the output file and summarize.

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
--telegram-group No — Telegram chat ID for callback
--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)
data/codex-search-results/latest-meta.json Task metadata + status
data/codex-search-results/task-output.txt Raw Codex output

Key Design

  • Incremental writes — results saved after each search round, survives OOM/timeout
  • Low reasoning effort — reduces memory, prevents OOM SIGKILL
  • Timeout protection — auto-stops runaway searches
  • Dispatch pattern — background execution with Telegram callback, no polling