Loading...
Loading...
CLI-first web research and source retrieval through the local smart-search command. Use when Codex needs current web search, source-backed fact checking, URL fetching, site mapping, official/API/documentation search, or reproducible search evidence via Skill + CLI instead of MCP tools.
npx skill4agent add konbakuyomu/smartsearch smart-search-clismart-searchsmart-search doctor --format jsondoctorsmart-search setupsmart-search config set KEY VALUEdoctorok: truesmart-searchsmart-search smoke --mock --format json--livesmart-search searchsmart-search exa-searchsmart-search context7-librarycontext7-docssmart-search zhipu-searchsmart-search anysearch-*smart-search exa-similarsmart-search fetchsmart-search mapsmart-search model currentsmart-search config set XAI_MODEL ...smart-search config set OPENAI_COMPATIBLE_MODEL ...search.contentexa-searchzhipu-searchsearchfetchprimary_sourcesextra_sources深度搜索深度调研深入搜索deep searchdeep researchsmart-search deep "question" --format jsonsmart-searchsmart-search deepdoctorsmart-search searchsmart-search deep "question" --format jsonresearch_plan{
"mode": "deep_research",
"query_mode": "deep",
"question": "user question",
"trigger_source": "explicit_cli",
"difficulty": "standard|high",
"intent_signals": {
"recency_requirement": "none|recent|current",
"docs_api_intent": false,
"locale_domain_scope": "global|china|known_domains|mixed",
"known_url": false,
"source_authority_need": "normal|high",
"claim_risk": "low|medium|high",
"cross_validation_need": "normal|high",
"breadth_depth_budget": "quick|standard|deep"
},
"decomposition": [
{
"id": "sq1",
"question": "subquestion",
"reason": "why this subquestion is needed",
"required_capabilities": ["broad_discovery"]
}
],
"capability_plan": [
{
"capability": "broad_discovery",
"tools": ["search"],
"reason": "Find the initial answer shape and candidate sources."
}
],
"preflight": {
"tool": "doctor",
"command": "smart-search doctor --format json",
"when": "configuration or availability is uncertain"
},
"evidence_policy": "fetch_before_claim",
"steps": [
{
"id": "s1",
"subquestion_id": "sq1",
"tool": "search",
"purpose": "broad discovery",
"command": "smart-search search \"query\" --validation balanced --extra-sources 1 --format json --output C:\\tmp\\smart-search-evidence\\YYYYMMDD-HHMM-topic\\01-search.json",
"output_path": "C:\\tmp\\smart-search-evidence\\YYYYMMDD-HHMM-topic\\01-search.json"
}
],
"gap_check": {
"required": true,
"rule": "fetch missing evidence for key claims or downgrade them to unverified candidates"
},
"final_answer_policy": "cite fetched evidence, list unverified candidates, and include key commands",
"usage_boundary": {
"search": "smart-search search runs live fast/broad search immediately.",
"deep": "smart-search deep is an offline planner; it does not execute provider calls or fetch pages.",
"execution": "An AI agent or user executes the listed steps with existing CLI commands, then performs gap_check."
}
}steps[].toolsearchexa-searchexa-similarzhipu-searchcontext7-librarycontext7-docsfetchmapidsubquestion_idpurposecommandoutput_pathdoctorsteps[]searchmain_searchrouting_decisionprovider_attemptsfallback_usedsource_warningexa-searchexa-similarzhipu-searchcontext7-librarycontext7-docsfetchmapsmart-search doctor --format jsonsmart-search deep "question" --format jsonresearch_planintent_signalsdecompositioncapability_plansearch --validation balanced --extra-sources 1..3exa-searchexa-similarzhipu-searchcontext7-librarycontext7-docsmapfetchgap_checkfetch_before_claimprimary_sourcesextra_sourcesresearch_planfetch_before_claimintent_signalscapability_plangap_check深度搜索一下最近的比特币行情doctorsearchexa-searchfetchsmart-search deep "深度搜索一下最近的比特币行情" --format json
smart-search deep "OpenAI Responses API web_search 和 Chat Completions 联网搜索怎么选" --budget deep --format json
smart-search deep "帮我核验这个说法是真是假:某某工具已经完全替代 Tavily 做 AI 搜索了" --format json
smart-search deep "https://example.com/source" --format jsonsearchmain_searchXAI_API_KEYOPENAI_COMPATIBLE_API_URLOPENAI_COMPATIBLE_API_KEY/responsesXAI_*/chat/completionsOPENAI_COMPATIBLE_*OPENAI_COMPATIBLE_STREAM=truesearch --streamstream=truesearchfetchSMART_SEARCH_API_URLSMART_SEARCH_API_KEYSMART_SEARCH_API_MODESMART_SEARCH_MODELSMART_SEARCH_XAI_TOOLSXAI_TOOLS=web_search,x_searchweb_searchx_searchsearch_parametersmain_searchdocs_searchvertical_searchweb_searchstandardsearch--validation fast|balanced|strict--fallback auto|off--providers auto|CSVbalancedfallback=autosearch--extra-sources Nsearch --extra-sources Nprimary_sourcesextra_sourcessourcesprimary_sourcesextra_sourcescontentfetchmapexa-searchexa-similarcontext7-librarycontext7-docsanysearch-domainsanysearch-searchanysearch-extractanysearch-batchzhipu-searchZHIPU_API_URLZHIPU_SEARCH_ENGINEtools=[web_search]ZHIPU_SEARCH_ENGINEsearch_stdsearch_stdsearch_prosearch_pro_sogousearch_pro_quarkTAVILY_API_URLhttps://open.bigmodel.cn/apiZHIPU_API_URLdoctor--outputC:\tmp\smart-search-evidence\exa-searchsearchsearchextra_sourcessmart-search exa-search "Reuters Iran Hormuz latest" --num-results 5 --include-highlights --format json --output C:\tmp\smart-search-evidence\iran-hormuz-exa.json
smart-search exa-search "OpenAI Responses API documentation" --include-domains platform.openai.com developers.openai.com --num-results 5 --include-text --format json
smart-search exa-similar "https://example.com/source" --num-results 5 --format json
smart-search fetch "https://example.com/source" --format json --output C:\tmp\smart-search-evidence\source-fetch.json
smart-search search "Iran Hormuz latest military talks" --extra-sources 3 --timeout 90 --format json --output C:\tmp\smart-search-evidence\iran-hormuz-search.jsonsmart-searchsmartsearchsmart-search setupsmart-search configsmart-search config set%LOCALAPPDATA%\smart-search\config.json~/.config/smart-search/config.jsonSMART_SEARCH_CONFIG_DIR~\.config\smart-search\config.json%LOCALAPPDATA%\smart-searchSMART_SEARCH_CONFIG_DIRdoctorlegacy_windows_homesmart-search doctor --format jsonsmart-search doctor --format markdownsmart-search doctor --format jsonok: falseerrorsmart-search setupsmart-search config set KEY VALUEsmart-search setupmain_searchdocs_searchweb_searchsmart-search setup --lang ensmart-search setup --advancedsmart-search setup --non-interactive --zhipu-api-url "https://open.bigmodel.cn/api" --zhipu-search-engine "search_std"smart-search setup --non-interactive --openai-compatible-stream truesmart-search setup --non-interactive --anysearch-api-url "https://api.anysearch.com/mcp" --anysearch-key "key"web_searchTAVILY_API_URL=https://<host>/api/tavily/mcp/mcpTAVILY_TIMEOUT_SECONDSdoctor30FIRECRAWL_API_URLhttps://api.firecrawl.dev/v2smart-search search "query" --extra-sources 5 --timeout 90 --format json --output result.json
smart-search search "query" --stream --format json
smart-search search "query" --platform "Reuters" --model "model-id" --extra-sources 3 --timeout 90 --format json
smart-search search "nba战报" --format content
smart-search search "query" --validation strict --fallback auto --providers auto --format json
smart-search exa-search "query" --num-results 5 --search-type neural --include-text --include-highlights --include-domains docs.example.com developer.mozilla.org --format json
smart-search exa-similar "https://example.com/article" --num-results 5 --format json
smart-search context7-library "react" "hooks" --format json
smart-search context7-docs "/facebook/react" "useEffect cleanup" --format json
smart-search zhipu-search "today China AI news" --count 5 --format json
smart-search anysearch-domains security --format json
smart-search anysearch-search "CVE-2024-3094" --domain security.cve --max-results 3 --format json
smart-search anysearch-extract "https://example.com/source" --format json
smart-search anysearch-batch "AAPL" "RAG papers" --max-results 2 --format json
smart-search fetch "https://example.com" --format markdown --output page.md
smart-search map "https://docs.example.com" --instructions "Find API reference pages" --max-depth 1 --max-breadth 20 --limit 50 --format json
smart-search setup
smart-search setup --lang en
smart-search setup --advanced
smart-search setup --non-interactive --install-skills hermes
smart-search setup --non-interactive --zhipu-api-url "https://open.bigmodel.cn/api" --zhipu-search-engine "search_std"
smart-search setup --non-interactive --openai-compatible-stream true
smart-search setup --non-interactive --anysearch-api-url "https://api.anysearch.com/mcp" --anysearch-key "key"
smart-search setup --non-interactive --tavily-api-url "https://api.tavily.com" --tavily-key "key"
smart-search --version
smart-search config path --format json
smart-search config list --format json
smart-search config list --format markdown
smart-search config set XAI_API_KEY "key" --format json
smart-search config set XAI_MODEL "grok-4-fast" --format json
smart-search config set XAI_TOOLS "web_search,x_search" --format json
smart-search config set OPENAI_COMPATIBLE_API_URL "https://api.openai.com/v1" --format json
smart-search config set OPENAI_COMPATIBLE_API_KEY "key" --format json
smart-search config set OPENAI_COMPATIBLE_MODEL "model-id" --format json
smart-search config set OPENAI_COMPATIBLE_STREAM "true" --format json
smart-search config set ANYSEARCH_API_URL "https://api.anysearch.com/mcp" --format json
smart-search config set ANYSEARCH_API_KEY "key" --format json
smart-search config set ANYSEARCH_TIMEOUT_SECONDS "30" --format json
smart-search config set EXA_API_KEY "key" --format json
smart-search config set CONTEXT7_API_KEY "key" --format json
smart-search config set ZHIPU_API_KEY "key" --format json
smart-search config set ZHIPU_API_URL "https://open.bigmodel.cn/api" --format json
smart-search config set ZHIPU_SEARCH_ENGINE "search_pro" --format json
smart-search config set TAVILY_API_URL "https://api.tavily.com" --format json
smart-search config set TAVILY_TIMEOUT_SECONDS "45" --format json
smart-search config set FIRECRAWL_API_URL "https://api.firecrawl.dev/v2" --format json
smart-search model current --format json
smart-search doctor --format json
smart-search doctor --format markdown
smart-search regression
smart-search smoke --mock --format json
smart-search smoke --mock --format markdownsmart-search --v
smart-search s "query" --format json
smart-search s "nba战报" --format content
smart-search f "https://example.com" --format markdown
smart-search exa "OpenAI Responses API documentation" --format json
smart-search z "today China AI news" --format json
smart-search c7 "react" "hooks" --format json
smart-search c7docs "/facebook/react" "useEffect cleanup" --format json
smart-search cfg ls --format json
smart-search d --format markdown
smart-search mdl cur --format json
smart-search sm --format json
smart-search reg--output--extra-sources13extra_sourcescontentexa-search --include-domainsdoctorweb_searchdoctormain_searchreferences/cli-contract.md