argo-search 2.13.0 → 2.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/AGENTS.md +93 -0
  2. package/README.es.md +30 -8
  3. package/README.ja.md +30 -8
  4. package/README.ko.md +30 -8
  5. package/README.md +511 -596
  6. package/README.zh.md +975 -0
  7. package/SKILL.md +1 -1
  8. package/assets/readme/counts.json +1 -1
  9. package/backends/domain_profiles.json +90 -6
  10. package/backends/engine_registry.yaml +222 -32
  11. package/backends/env_passthrough.txt +2 -0
  12. package/backends/quota_profiles.json +151 -11
  13. package/bin/argo +3 -0
  14. package/config.yaml +50 -4
  15. package/docs/CHANGELOG.md +45 -0
  16. package/docs/COMMIT_STANDARD.md +98 -0
  17. package/docs/ENGINE_CATALOG.md +100 -81
  18. package/docs/MCP_SETUP.md +1 -1
  19. package/docs/RELEASE_NOTES_v2.14.0.md +88 -0
  20. package/docs/RELEASE_NOTES_v2.14.1.md +80 -0
  21. package/docs/RELEASING.md +52 -0
  22. package/engines/specs/artic.yaml +11 -1
  23. package/engines/specs/cleveland.yaml +15 -1
  24. package/engines/specs/clinicaltrials.yaml +24 -1
  25. package/engines/specs/cnii.yaml +17 -1
  26. package/engines/specs/coingecko.yaml +10 -2
  27. package/engines/specs/dbpedia.yaml +32 -0
  28. package/engines/specs/deezer.yaml +12 -1
  29. package/engines/specs/doaj.yaml +14 -1
  30. package/engines/specs/endoflife.yaml +16 -1
  31. package/engines/specs/eu_opendata.yaml +11 -1
  32. package/engines/specs/europeana.yaml +19 -1
  33. package/engines/specs/feed.yaml +62 -0
  34. package/engines/specs/figshare.yaml +12 -1
  35. package/engines/specs/fourget.yaml +23 -0
  36. package/engines/specs/grep_app.yaml +19 -0
  37. package/engines/specs/hackernews.yaml +17 -1
  38. package/engines/specs/hal.yaml +19 -1
  39. package/engines/specs/hf_datasets.yaml +59 -0
  40. package/engines/specs/hf_papers.yaml +42 -0
  41. package/engines/specs/jikan.yaml +12 -10
  42. package/engines/specs/kaggle.yaml +46 -0
  43. package/engines/specs/local_baidu.yaml +5 -0
  44. package/engines/specs/local_seek.yaml +34 -0
  45. package/engines/specs/local_yandex.yaml +37 -0
  46. package/engines/specs/maven.yaml +61 -0
  47. package/engines/specs/mojeek.yaml +31 -0
  48. package/engines/specs/mwmbl.yaml +39 -0
  49. package/engines/specs/nasa_cmr.yaml +12 -1
  50. package/engines/specs/nuget.yaml +57 -0
  51. package/engines/specs/openaire.yaml +34 -0
  52. package/engines/specs/repology.yaml +18 -0
  53. package/engines/specs/tatoeba.yaml +14 -1
  54. package/engines/specs/tvmaze.yaml +5 -1
  55. package/engines/specs/usda.yaml +14 -1
  56. package/package.json +14 -10
  57. package/packages/dsh-plugin/dsh/client.js +1 -0
  58. package/packages/dsh-plugin/dsh/native-tools.mjs +85 -116
  59. package/packages/dsh-plugin/dsh/runner.js +35 -1
  60. package/packages/dsh-plugin/dsh/specs.js +3 -1
  61. package/packages/dsh-plugin/dsh/wide-research.js +5 -3
  62. package/packages/dsh-plugin/package.json +1 -1
  63. package/packages/dsh-plugin/test/client.test.js +6 -0
  64. package/packages/dsh-plugin/test/config.test.js +5 -1
  65. package/packages/dsh-plugin/test/index.test.js +3 -1
  66. package/packages/dsh-plugin/test/size-gate.test.js +2 -2
  67. package/scripts/badcase_causes.py +81 -0
  68. package/scripts/badcase_ledger.py +336 -19
  69. package/scripts/build_release_assets.sh +43 -15
  70. package/scripts/cache.py +3 -3
  71. package/scripts/check_commit_report.py +168 -0
  72. package/scripts/dormant_ledger.py +225 -0
  73. package/scripts/engine_admission.py +9 -5
  74. package/scripts/engine_families.py +13 -2
  75. package/scripts/engine_policy.py +1 -1
  76. package/scripts/engine_states.py +398 -8
  77. package/scripts/engine_status.py +31 -0
  78. package/scripts/engine_validate.py +224 -40
  79. package/scripts/engines.py +4 -34
  80. package/scripts/engines_base.py +53 -147
  81. package/scripts/engines_builders.py +2 -33
  82. package/scripts/engines_builders_batch12.py +168 -0
  83. package/scripts/engines_builders_batch16.py +13 -0
  84. package/scripts/engines_builders_batch9.py +0 -204
  85. package/scripts/engines_builders_feeds.py +148 -30
  86. package/scripts/engines_builders_intl.py +0 -328
  87. package/scripts/engines_builders_science.py +0 -85
  88. package/scripts/engines_builders_tech.py +0 -98
  89. package/scripts/engines_parsers.py +924 -0
  90. package/scripts/evidence_loop.py +91 -4
  91. package/scripts/fetch_browser.py +4 -2
  92. package/scripts/fetch_jsrun.py +2 -1
  93. package/scripts/fetch_v3.py +22 -22
  94. package/scripts/gen_engine_catalog.py +2 -2
  95. package/scripts/gen_native_tools.py +46 -18
  96. package/scripts/local_intent.py +175 -0
  97. package/scripts/local_seek.py +256 -91
  98. package/scripts/local_seek_adapter.py +87 -0
  99. package/scripts/mcp_handlers.py +124 -72
  100. package/scripts/mcp_server.py +1 -1
  101. package/scripts/mcp_tools.py +143 -61
  102. package/scripts/mcp_transport.py +42 -10
  103. package/scripts/pre-commit +68 -1
  104. package/scripts/recovery.py +14 -5
  105. package/scripts/recovery_l0.py +5 -3
  106. package/scripts/release.py +20 -11
  107. package/scripts/release_check.py +1 -1
  108. package/scripts/research.py +1 -1
  109. package/scripts/research_gates.py +3 -3
  110. package/scripts/route_lang.py +6 -1
  111. package/scripts/route_policy.py +26 -14
  112. package/scripts/search.py +33 -25
  113. package/scripts/search_cli.py +52 -6
  114. package/scripts/search_output.py +83 -16
  115. package/scripts/secret_guard.py +106 -0
  116. package/scripts/semantic_evidence.py +230 -15
  117. package/scripts/settings_page.py +80 -8
  118. package/scripts/source_audit.py +408 -0
  119. package/scripts/sync_backends.py +38 -1
  120. package/scripts/wechat_article.py +5 -3
  121. package/scripts/wide_research.py +4 -1
  122. package/scripts/x_article_fetch.py +2 -1
  123. package/sub-skills/local-search/parsers.py +6 -1
  124. package/sub-skills/local-seek/scripts/seek.py +390 -24
  125. package/sub-skills/local-seek/scripts/seek_fts.py +28 -9
  126. package/sub-skills/local-seek/scripts/seek_rank.py +64 -1
  127. package/README.en.md +0 -814
  128. package/engines/specs/cinii.yaml +0 -44
  129. package/scripts/image_vision/vision_probe +0 -0
package/README.md CHANGED
@@ -1,329 +1,331 @@
1
1
  <p align="center">
2
- <img src="assets/readme/hero.svg" width="100%" alt="Argo 阿尔戈:给 Agent 用的搜索与深度研究工具,数百个搜索源,按域按语言选路,输出可吸收的证据">
2
+ <img src="assets/readme/hero.svg" width="100%" alt="Argo: search and deep research for agents — hundreds of search sources, routing by domain and language, absorbable evidence output">
3
3
  </p>
4
4
 
5
5
  <p align="center">
6
- <strong>中文</strong> ·
7
- <a href="README.en.md">English</a> ·
6
+ <strong>English</strong> ·
7
+ <a href="README.zh.md">中文</a> ·
8
8
  <a href="README.ja.md">日本語</a> ·
9
9
  <a href="README.ko.md">한국어</a> ·
10
10
  <a href="README.es.md">Español</a>
11
11
  </p>
12
12
 
13
13
  <p align="center">
14
- <a href="#这是什么">介绍</a> ·
15
- <a href="#它和模型自带搜索--ai-搜索--聚合搜索比强在哪">对比</a> ·
16
- <a href="#问啥像啥">证明</a> ·
17
- <a href="#它怎么工作">机制</a> ·
18
- <a href="#快速开始">快速开始</a> ·
19
- <a href="#能做什么">能力</a> ·
20
- <a href="#安装与配置">配置</a> ·
21
- <a href="#最近更新">更新</a>
14
+ <a href="#what-it-is">Intro</a> ·
15
+ <a href="#why-its-stronger-than-built-in-search--ai-search--metasearch">Compare</a> ·
16
+ <a href="#query-shaped-routing">Proof</a> ·
17
+ <a href="#how-it-works">How it works</a> ·
18
+ <a href="#quick-start">Quick start</a> ·
19
+ <a href="#capabilities">Capabilities</a> ·
20
+ <a href="#install--config">Config</a> ·
21
+ <a href="#recent-updates">Recent updates</a>
22
22
  </p>
23
23
 
24
24
  <p align="center">
25
25
  <a href="https://github.com/taxueseek/argo/stargazers"><img alt="stars" src="https://img.shields.io/github/stars/taxueseek/argo?style=social"></a>
26
26
  <img alt="license" src="https://img.shields.io/badge/license-Apache_2.0-blue">
27
27
  <img alt="python" src="https://img.shields.io/badge/python-3.9+-green">
28
- <img alt="version" src="https://img.shields.io/badge/version-2.13.0-informational">
28
+ <img alt="version" src="https://img.shields.io/badge/version-2.14.1-informational">
29
29
  <img alt="engines" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Ftaxueseek%2Fargo%2Fmain%2Fassets%2Freadme%2Fcounts.json">
30
30
  <img alt="mcp" src="https://img.shields.io/badge/MCP-19%20tools-purple">
31
31
  </p>
32
32
 
33
- > 插件部分采用 [plugin-fast-adapt](https://github.com/taxueseek/plugin-fast-adapt) 适配了最新版 Harness 0.2.2-rc.1。它是 DSH 插件升级适配与代码审查的主入口:核对官方最新版本与升级指南、扫插件的破坏性变更,按适配升级、造插件、启动排障、代码审查四条车道出 P0/P1 报告。后续每次宿主升级的适配也走这个 skill。
34
- >
35
- > **taxueseek 系列 skill 的一员**,负责「搜索与深度研究」。同系列技能:[plainspoken-writing](https://github.com/taxueseek/plainspoken-writing) 68★(去 AI 味写作)· [session-digger](https://github.com/taxueseek/session-digger) 33★(跨环境会话挖掘)· [taxue-invest](https://github.com/taxueseek/taxue-invest) 28★(投资分析)· [taxueskills](https://github.com/taxueseek/taxueskills) 24★(踏雪决策系统)· [taxue-creative-style](https://github.com/taxueseek/taxue-creative-style) 13★(创意风格插画)。
33
+ ```bash
34
+ # One-line MCP attach for Claude Code / Cursor / LibreChat
35
+ npx -y github:taxueseek/argo
36
+ ```
37
+
38
+ > **Part of the taxueseek skill series**, covering search and deep research. Other skills in the series: [plainspoken-writing](https://github.com/taxueseek/plainspoken-writing) 68★ (AI-tone removal) · [session-digger](https://github.com/taxueseek/session-digger) 33★ (cross-environment session mining) · [taxue-invest](https://github.com/taxueseek/taxue-invest) 28★ (investment analysis) · [taxueskills](https://github.com/taxueseek/taxueskills) 24★ (the taxue decision system) · [taxue-creative-style](https://github.com/taxueseek/taxue-creative-style) 13★ (creative illustration styles).
36
39
  >
37
- > Argo 同时是 DeepSeek Harness 插件,一行命令装好(见下文「DSH 插件」)。同作者的 DSH 插件精品:[dsh-files](https://github.com/taxueseek/dsh-files) 41★(文件夹上传 + 文档解析)· [plugin-fast-adapt](https://github.com/taxueseek/plugin-fast-adapt) 7★(插件升级适配)· [dsh-plugin-guard](https://github.com/taxueseek/dsh-plugin-guard) 2★(装前审计)。
40
+ > Argo is also a DeepSeek Harness plugin, installed in one command (see "DSH Plugin" below). Best DSH plugins by the same author: [dsh-files](https://github.com/taxueseek/dsh-files) 41★ (folder upload + document parsing) · [plugin-fast-adapt](https://github.com/taxueseek/plugin-fast-adapt) 7★ (plugin upgrade adapter) · [dsh-plugin-guard](https://github.com/taxueseek/dsh-plugin-guard) 2★ (pre-install audit).
38
41
 
39
- # Argo 阿尔戈:给 Agent 用的搜索与深度研究工具
42
+ # Argo: search and deep research for agents
40
43
 
41
- ## 这是什么
44
+ ## What it is
42
45
 
43
- **Argo 是一个装在 Agent 里的搜索与深度研究工具,也可以获取相关网页的信息。背后连着数百个搜索源,覆盖近百个业务领域,同时支持本地文件的基础搜索能力。在开源搜索项目里,具备非常强大的搜索能力。**
46
+ **Argo is a search and deep-research tool that lives inside your agent, and can also pull information from the relevant web pages. It connects to hundreds of search sources across nearly 100 business domains, and also covers basic local file search. Among open-source search projects, its search capability is exceptionally strong.**
44
47
 
45
- 支持配置 API Key 提升搜索质量(配了 Key 的源质量通常更好,没配则自动跳过),也支持免费引擎和本地引擎自动保底。覆盖中英日韩等 18 种语言,支持金融、学术、影视、体育、代码、宏观等垂直场景。
48
+ API keys are optional and improve quality (keyed sources are usually better; unkeyed ones are skipped automatically), with free engines and local engines as an automatic fallback. It covers 18 languages including Chinese, English, Japanese and Korean, and supports vertical scenarios such as finance, academia, film, sports, code and macro data.
46
49
 
47
- ## 子技能
50
+ ## Sub-skills
48
51
 
49
- Argo 的能力通过四个子技能(sub-skills)组织,每个子技能是一条独立可用的管线:
52
+ Argo's capabilities are organized as four sub-skills, each a standalone pipeline:
50
53
 
51
- | 子技能 | 能力 |
52
- |--------|------|
53
- | **local-search** | 本机文件搜索 + 本地零成本聚合引擎(32 个本地引擎)。搜代码符号、文件名、文档全文、文件结构。可并入网络搜索结果,加一个开关本机命中就并进同一次搜索 |
54
- | **local-seek** | 本地语义搜索(BM25 + 向量混合),搜笔记、记忆、资料库。三层递进:先定位文件、再看上下文、最后精读段落 |
55
- | **ego-search** | 登录态专业搜索。知乎、小红书、公众号等需要登录才能看的内容,用真实浏览器配合登录态去搜。默认关闭,需时开启 |
56
- | **js-run** | 无浏览器执行网页 JS。不开浏览器跑「环境探测 + 纯计算」型网页脚本,单次上下文 P50 约 1ms |
54
+ | Sub-skill | Capability |
55
+ |-----------|------------|
56
+ | **local-search** | Local file search + local zero-cost aggregation engines (32 local engines). Search code symbols, filenames, document text and file structure. Can merge into web search results: flip one switch and local hits join the same search |
57
+ | **local-seek** | Local semantic search (BM25 + vector hybrid) for notes, memories and knowledge bases. Three layers: locate the file, read the context, then read the passage closely |
58
+ | **ego-search** | Logged-in professional search. Content behind logins on Zhihu, Xiaohongshu, WeChat public accounts and similar, searched with a real browser and a logged-in session. Off by default; turn it on when needed |
59
+ | **js-run** | Run web JS without a browser. Run environment-probe and pure-compute page scripts without opening a browser; median single-run context is about 1ms |
57
60
 
58
- 四个子技能覆盖了从「搜本机」到「搜全网」到「搜登录墙后面」的完整链路。大部分场景用 local-search + 联网搜索就够,特殊场景再开 ego-search 和 js-run。
61
+ Together the four cover the full chain from local machine to open web to behind login walls. Most cases need only local-search plus web search; turn on ego-search and js-run for special cases.
59
62
 
60
- ## DSH 插件
63
+ ## DSH plugin
61
64
 
62
- Argo 同时是 DeepSeek Harness 的插件,一行命令装好:
65
+ Argo is also a DeepSeek Harness plugin. One line installs it:
63
66
 
64
67
  ```bash
65
- dsh plugin --profile web add argo-search # npm 发布版
68
+ dsh plugin --profile web add argo-search # npm release
66
69
  dsh plugin --profile web add "github:taxueseek/argo" # GitHub main
67
70
  ```
68
71
 
69
- 装完重启 `dsh web` 即生效。搜索和抓取成为原生一等工具,不依赖 MCP 连接,不占常驻上下文开销。另有 1 个 `wide_research` 并行研究和 19 个 MCP 工具按需开启。完整接入形态见下文。
72
+ Restart `dsh web` and it takes effect. Search and fetch become native first-class tools: no MCP connection, no standing context overhead. There is also one `wide_research` parallel researcher and 19 MCP tools you can enable on demand. See integration forms below.
70
73
 
71
- ### 三种调用通道,一套能力
74
+ ### Three invocation channels, one capability set
72
75
 
73
- 同一个 argo 检索内核(同引擎、同压缩、同守卫)在 DSH 里开三条通道,按宿主能力自动降级、互为冗余:
76
+ The same argo retrieval core (same engines, same compression, same guards) opens three channels inside DSH. They degrade automatically by host capability and back each other up:
74
77
 
75
- | 通道 | 默认 | 说明 |
76
- |------|------|------|
77
- | **原生一等工具** | 开 | `argo_search` / `argo_fetch` 等经 `ctx.tools.register` 注册,走 CLI 单发(`--call`)复用 MCP 同一套引擎与守卫,**不依赖 MCP 连接、零常驻 token 开销** |
78
- | **原生 web seam** | 开 | 注册 `argo` 搜索与抓取两个 provider,宿主内置 `web_search` 路由到 argo 引擎链、`web_fetch` 走 argo 抓取链(HTTP 优先,遇 Cloudflare / JS 渲染自动升级反检测浏览器) |
79
- | **MCP 形态** | 按需 | 19 个 `mcp__argo__*` 完整工具面。工具定义每轮注入上下文且压缩清不掉(实测 19 工具 ≈3.7K token/轮),而高频路径已由原生工具与 web seam 覆盖,故默认不挂载;需要长尾取证能力时在 profile patch 中取消 `mcp-argo` 行注释 |
78
+ | Channel | Default | What it does |
79
+ |---------|---------|--------------|
80
+ | **Native first-class tools** | On | `argo_search` / `argo_fetch` and friends register via `ctx.tools.register` and run as CLI single-shots (`--call`), reusing the exact engine and guard stack MCP uses — **no MCP connection, zero standing token overhead** |
81
+ | **Native web seam** | On | Registers `argo` as both a search and a fetch provider, so the host's built-in `web_search` routes to argo's engine chain and `web_fetch` to argo's fetch chain (HTTP first, auto-escalating to an anti-detection browser on Cloudflare / JS-rendered pages) |
82
+ | **MCP form** | On demand | The full 19-tool `mcp__argo__*` surface. Tool definitions are injected into context every round and survive compaction (measured ≈3.7K tokens/round for 19 tools), and the hot path is already covered by native tools and the web seam — so it is not mounted by default. Uncomment the `mcp-argo` line in the profile patch when you need the long-tail forensics tools |
80
83
 
81
- 另有 1 个 `wide_research`:规划互补轨道(`depends_on` 依赖分阶段,默认并行)→ 有界并发子代理取证 → 来源账本(仅 http(s) URL 入账)→ 综合报告;输出自带 `quality_gate_results`(`conclusion_cap`:low/medium/high),`passed=false` 时降级表述、先核验账本来源再下结论。worker 取证工具白名单默认双写 MCP 与原生工具名(allow 语义)——MCP 挂载与否两态自洽:MCP 在时用全量面,缺席时自动落到 `argo_search` / `argo_fetch` 与宿主 `web_search` / `web_fetch`。
84
+ There is also one `wide_research`: it plans complementary tracks (`depends_on` staggers them, parallel by default) → bounded concurrent subagent evidence gathering → a source ledger (only http(s) URLs are recorded) → a synthesis report. Output carries `quality_gate_results` (`conclusion_cap`: low/medium/high); when `passed=false` the wording is downgraded and the ledger sources are verified before any conclusion. The worker evidence-tool allowlist writes both MCP and native tool names (allow semantics), so it works whether or not MCP is mounted: with MCP it uses the full surface, without it falls back to `argo_search` / `argo_fetch` and the host's `web_search` / `web_fetch`.
82
85
 
83
- 日常一问用 `argo_search`;单代理取证用 `argo_research`;多视角对比、要引用账本用 `wide_research`。worker 默认只能调 argo 取证工具,不会再调 `argo_research`(硬保护,用户层放行也无效)。
86
+ For an everyday question use `argo_search`; for single-agent forensics use `argo_research`; for multi-perspective comparison with a citation ledger use `wide_research`. Workers can only call argo evidence tools by default and cannot call `argo_research` again (hard guard — user-level overrides do not work).
84
87
 
85
- ### 自带设置页:六个分区,改完即生效
88
+ ### Built-in settings page: six sections, effective on save
86
89
 
87
- 插件自带浏览器端设置页,两个入口:设置弹窗(`Cmd+,`)左侧一级菜单「Argo」,或 设置 > 插件 > Argo(同一面板的摘要卡片,点开即用)。
90
+ The plugin ships a browser-side settings page with two entries: the settings popup (`Cmd+,`) left-hand menu item "Argo", or Settings > Plugins > Argo (a summary card for the same panel — click to open).
88
91
 
89
92
  <p align="center">
90
- <img src="assets/readme/settings-tools.webp" width="100%" alt="Argo 设置页「工具」:18 个原生工具的勾选——高频路径默认开 argo_search / argo_fetch,长尾 16 个按需,下方是单次调用超时与返回文本上限">
93
+ <img src="assets/readme/settings-tools.webp" width="100%" alt="Argo settings, Tools: 18 native tools to toggle — argo_search / argo_fetch on in the hot path, 16 long-tail tools on demand, with per-call timeout and returned-text cap">
91
94
  </p>
92
95
 
93
96
  <p align="center">
94
- <img src="assets/readme/settings-engines.webp" width="100%" alt="Argo 设置页「引擎」:argo 本体 28 个行为开关移进面板——缓存 / TF-IDF 重排 / 数值交叉校验 / MinHash 去重 / SERP 守卫与去重阈值,未配置行显示默认态,改完即时生效">
97
+ <img src="assets/readme/settings-engines.webp" width="100%" alt="Argo settings, Engines: argo's 28 behaviour switches moved into the panel — cache / TF-IDF rerank / numeric cross-check / MinHash dedup / SERP guard and dedup threshold; unconfigured rows show the default and changes apply immediately">
95
98
  </p>
96
99
 
97
100
  <p align="center">
98
- <img src="assets/readme/settings-keys.webp" width="100%" alt="Argo 设置页「密钥」:DeepSeek 官方搜索显示「已配置 · 凭证库」并与宿主 web_search 共用同一把 key;腾讯元宝 / Tavily 等常用引擎 key 可填写、更新、清除,明文不回显">
101
+ <img src="assets/readme/settings-keys.webp" width="100%" alt="Argo settings, Keys: DeepSeek official search shows configured · credential store and shares one key with the host's web_search; common engine keys (Tencent Yuanbao / Tavily) can be set, updated or cleared, plaintext never echoed">
99
102
  </p>
100
103
 
101
- | 分区 | 管什么 |
102
- |------|--------|
103
- | **接入** | `web_search` / `web_fetch` seam 开关;引擎入口命令与参数(npx 或本机 `mcp_server.py`);搜索/抓取超时、正文上限、连接空闲回收、并发连接数 |
104
- | **工具** | 18 个原生一等工具的勾选(默认只开 `argo_search` / `argo_fetch`);单次调用超时与返回文本上限 |
105
- | **引擎** | argo 本体的行为开关(原环境变量,curated 白名单 28 个:缓存 / TF-IDF 重排 / 数值交叉校验 / MinHash 去重 / SERP 守卫、Jina / 移动端 UA / Parallel 抓取层、语义证据层、对冲宽限与尾宽、引擎启停名单、代理、本机检索根与读取白名单、预热 / 使用日志 / 连接池 / 各类 TTL)。开关类即时生效,数字 / 文本 / 名单类分组保存;未配置行显示 argo 默认态并标注「默认」。授权类开关(可复算执行、内网 URL)刻意不进面板 |
106
- | **密钥** | 常用引擎 key 的填写、更新、清除;显示「已配置 / 未配置 + 来源层(凭证库 / 启动环境 / .env)+ 只读态」,明文不回显;每行可勾选「转发」,等价于把引用名加进 `keyRefs` |
107
- | **研究** | worker / 轨道 / 每轨信源 / token 上限与报告落盘目录 |
108
- | **高级** | worker 工具 allow / deny 名单、凭证转发名单 |
104
+ | Section | What it controls |
105
+ |---------|------------------|
106
+ | **Access** | `web_search` / `web_fetch` seam toggles; engine entry command and args (npx or local `mcp_server.py`); search/fetch timeouts, body cap, idle connection reclamation, concurrent connections |
107
+ | **Tools** | Toggles for the 18 native first-class tools (only `argo_search` / `argo_fetch` on by default); per-call timeout and returned-text cap |
108
+ | **Engines** | argo's own behaviour switches (formerly env vars, curated allowlist of 28: cache / TF-IDF rerank / numeric cross-check / MinHash dedup / SERP guard, Jina / mobile UA / Parallel fetch layer, semantic evidence layer, hedge grace and tail width, engine enable list, proxy, local search roots and read allowlist, warmup / usage log / connection pool / assorted TTLs). Switch-type changes apply immediately; number / text / list types save as a group; unconfigured rows show argo's default and are marked "default". Authorisation switches (recompute, intranet URLs) deliberately stay out of the panel |
109
+ | **Keys** | Set, update and clear common engine keys; shows "configured / unconfigured + source layer (credential store / startup env / .env) + read-only state", never echoing plaintext; each row has a Forward checkbox, equivalent to adding the reference name to `keyRefs` |
110
+ | **Research** | worker / track / sources-per-track / token caps and report output directory |
111
+ | **Advanced** | worker tool allow / deny lists, credential forward list |
109
112
 
110
- 保存即生效(全部为 volatile 配置):原生工具集合按勾选增删注册,超时、并发、研究上限在下一次调用时读取;引擎开关写成 `argoEnv`(一行一个 `KEY=VALUE`)随 argo 子进程 env 进入,对下一次新建连接生效(池内旧连接按 `searchIdleMs` 回收,默认 60s)。结构性字段(`toolName`、`provider`、`searchProviderId`、`fetchProviderId`)不在设置页,仍走 profile patch,改后需重启。
113
+ Saving takes effect immediately (all volatile config): the native tool set is registered and unregistered per the toggles, timeouts / concurrency / research caps are read on the next call; engine switches are written as `argoEnv` (one `KEY=VALUE` per line) into the argo subprocess env and apply to the next new connection (pooled old connections are reclaimed by `searchIdleMs`, default 60s). Structural fields (`toolName`, `provider`, `searchProviderId`, `fetchProviderId`) are not in the settings page — they still go through the profile patch and need a restart.
111
114
 
112
- **密钥安全**:写入 DSH 凭证库(与 Models 页同一处),不写进插件配置、不打日志、不回显明文。凭证服务优先级为**存储文件层 > 启动环境 > 项目 .env > 家目录 .env**:在面板(或 Models 页)保存即覆盖启动环境里的旧值,argo 子进程下一跳新连接用新 key;「清除」只删凭证库里的值,环境变量或 `.env` 提供的 key 会重新露出。设置页只是凭证域的写入口,读取仍由宿主在每次调用时完成。
115
+ **Key security**: keys are written to the DSH credential store (the same place as the Models page) — never into plugin config, never logged, never echoed. Credential resolution priority is **stored file layer > startup env > project .env > home .env**: saving in the panel (or the Models page) overrides older startup-env values, and the argo subprocess picks up the new key on the next new connection; Clear only deletes the credential-store value, so keys supplied by env vars or `.env` reappear. The settings page is only a write entry for the credential domain — reads are still performed by the host on every call.
113
116
 
114
- **DeepSeek 官方 key 原生供给**:argo 的 `deepseek_search` 引擎(官方 `api.deepseek.com/v1/tools/search`,结果自带 authority 权威分级 / rerank_score 排序分 / 发布时间)与 DSH 官方搜索后端**共用同一把 key**。插件经 DSH 原生凭证 seam 取用,不需要任何手工配置:解析路径 `ctx.get('credentials').resolve('DEEPSEEK_API_KEY')`,逐次解析——在 web Models 页轮换 key 后,下一跳新连接即生效,无需重启插件。插件不读 key 文件、不落盘、不打日志;key 值只经内存进入 argo 子进程 env,任何输出与错误信息都不含它。旧宿主无 credentials 服务时静默跳过:argo 侧该引擎按缺 key 停用,其余源不受影响。
117
+ **DeepSeek official key, supplied natively**: argo's `deepseek_search` engine (the official `api.deepseek.com/v1/tools/search`, whose results carry authority levels / rerank scores / publish times) **shares one key with DSH's official search backend**. The plugin obtains it through DSH's native credential seam, so no manual configuration is needed: resolution is `ctx.get('credentials').resolve('DEEPSEEK_API_KEY')`, resolved per call — after rotating the key on the web Models page the next new connection uses it, with no plugin restart. The plugin never reads key files, never writes to disk, never logs; the key value reaches the argo subprocess env in memory only, and no output or error message contains it. On older hosts without a credentials service it silently skips: that engine is disabled for lack of a key, and the other sources are unaffected.
115
118
 
116
- **web seam 的 pin 必读**(漏配会打挂 `web_fetch`):宿主 `dsh-web` 的 provider 选择规则是「配置 id 优先;都没有且恰好一个可用则选它;**多个可用直接报 `WEB_PROVIDER_AMBIGUOUS`**」。web profile 默认挂着官方 http fetch provider(免 key、永远可用),本 bundle 再注册一个就是两个可用——**不 pin 的话 `web_fetch` 整个挂掉**(`web_search` 同理,若 profile 里另有搜索 provider)。故启用 web seam 的 profile 必须在 web 服务行显式指定:
119
+ **The web seam pin is required reading** (a missing pin breaks `web_fetch`): the host `dsh-web` provider selection rule is "configured id wins; if none is configured and exactly one is available, pick it; **if more than one is available, fail with `WEB_PROVIDER_AMBIGUOUS`**". The web profile ships an official http fetch provider by default (keyless, always available), and this bundle registers another — so without a pin there are two available and **`web_fetch` breaks entirely** (same for `web_search` if the profile has another search provider). Any profile with the web seam enabled must therefore specify explicitly on the web service line:
117
120
 
118
121
  ```yaml
119
122
  - id: web
120
123
  config:
121
- searchProvider: argo # 已默认启用搜索 seam 时必配
122
- fetchProvider: argo # 已默认启用抓取 seam 时必配
124
+ searchProvider: argo # required when the search seam is enabled (it is by default)
125
+ fetchProvider: argo # required when the fetch seam is enabled (it is by default)
123
126
  ```
124
127
 
125
- `searchProviderEnabled: false` / `fetchProviderEnabled: false` 可整体关掉对应 seam(provider 仍注册但不可选,不影响另一个)。搜索引擎侧,Firecrawl 等匿名可用引擎 **keyless 免配置即用**(免费层额度),配置了密钥的引擎自动升级为认证请求;缺密钥不阻断路由。
128
+ `searchProviderEnabled: false` / `fetchProviderEnabled: false` turn the corresponding seam off entirely (the provider is still registered but not selectable, and the other is unaffected). On the engine side, anonymously usable engines such as Firecrawl work **keyless out of the box** (free-tier quota), engines with a configured key automatically upgrade to authenticated requests, and a missing key does not block routing.
126
129
 
127
- > 完整配置项、Compatibility 版本对照表与卸载方式见 [packages/dsh-plugin/README.md](packages/dsh-plugin/README.md)。
130
+ > Full configuration options, the Compatibility version table and uninstall steps are in [packages/dsh-plugin/README.md](packages/dsh-plugin/README.md).
128
131
 
129
- ## 核心优势
132
+ ## Core strengths
130
133
 
131
- **大部分源免密钥开箱可用。** 不配任何 API Key 就能跑,免费引擎和本地引擎自动保底。配了 Key 的源质量通常更好,没配则自动跳过。一次安装,全场景可用。
134
+ **Most sources are keyless and ready out of the box.** Runs without any API key; free and local engines fall back automatically. Keyed sources are usually better, and unkeyed ones are skipped automatically. One install covers every scenario.
132
135
 
133
- **本地搜索 + 联网搜索一体。** 这是 Argo 独一份的能力。本机文件搜索底层是 rg、mdfind 那套开发者日常工具,搜代码符号、文件名、文档全文、文件结构。加一个开关,本机命中会并进同一次网络搜索结果里,结果上标着来源是本机文件。写东西时记得自己半年前记过一段话但忘了在哪,用这个搜比翻文件夹快。
136
+ **Local and web search in one.** This is a capability only Argo has. Local file search is built on the same tools developers use daily, rg and mdfind: code symbols, filenames, document text and file structure. Flip one switch and local hits join the same web search results, labelled with the local file as the source. When you remember writing something six months ago but forget where, this beats digging through folders.
134
137
 
135
- **双层缓存,热查询约 10ms。** 时效性没那么强的内容(百科类、历史数据这类),第一次查完会进缓存,之后同样的查询直接命中,不再每次都走一遍 API。既省钱也省时间。
138
+ **Two-layer cache, ~10ms for hot queries.** For content whose freshness matters less (encyclopedia entries, historical data), the first query populates the cache and the same query then hits it directly instead of going through the API again. Saves money and time.
136
139
 
137
- **多语言 + 垂直场景。** 实测过 18 种语言,中文、英文和日文能查到当地一手来源。问论文走学术库,问影视走条目库,问代码走问答社区,问行情走金融源。泛泛的问题才走通用搜索。
140
+ **Multilingual and vertical.** Tested across 18 languages; Chinese, English and Japanese reach local first-party sources. Papers go to academic databases, film to title databases, code to Q&A communities, market quotes to financial sources. Only broad questions go to generic search.
138
141
 
139
- ## 装完就能用
142
+ ## Install and run
140
143
 
141
- 零配置就能跑。三种装法,按你的习惯挑:
144
+ Zero config works. Three ways to install, pick your habit:
142
145
 
143
- **想让 AI 助手自己会搜**,把技能包装进它的技能目录。以后你说「帮我查一下」「核实一下」,它会自己去查。
146
+ **Want your AI assistant to search on its own**: install the skill package into its skills directory. Then when you say "look this up" or "verify this", it goes and searches.
144
147
 
145
- **想随手试**,用一条 npx 命令即用即走,不用装。
148
+ **Want to try it casually**: one npx command, no install needed.
146
149
 
147
- **想让助手常驻着用**,给它挂上 MCP,19 个检索工具随时可用。还有一键注入命令,能给 Claude Code、Cursor 和 Windsurf 自动配好,Codex、OpenCode 和 Cline 也在这个名单里。写配置前会备份,随时能撤。
150
+ **Want it always on**: attach it over MCP, 19 retrieval tools ready. There is also a one-command injector that configures Claude Code, Cursor and Windsurf automatically; Codex, OpenCode and Cline are on the list too. Your config is backed up before writing, so you can always roll back.
148
151
 
149
152
  ```bash
150
- # 方式一:一键脚本(推荐本机长期用)
153
+ # Option 1: install script (recommended for long-term local use)
151
154
  curl -fsSL https://raw.githubusercontent.com/taxueseek/argo/main/scripts/install.sh | bash
152
155
 
153
- # 方式二:npm / npx(已支持,当前 2.13.0;按 tag 发布,版本固定)
154
- npm install -g argo-search # 全局安装 CLI
155
- npx -y argo-search # 或即用即走,不装
156
- npx -y github:taxueseek/argo # 要跟 main 最新提交时用这条
156
+ # Option 2: npm / npx (supported, currently 2.14.1; released per tag, version pinned)
157
+ npm install -g argo-search # install the CLI globally
158
+ npx -y argo-search # or run it without installing
159
+ npx -y github:taxueseek/argo # use this to follow the latest commit on main
157
160
 
158
- # 方式三:git clone(开发 / 改源码)
161
+ # Option 3: git clone (development / editing source)
159
162
  git clone https://github.com/taxueseek/argo.git
160
163
  ```
161
164
 
162
- 装完随手试一条:
165
+ Try one query right after install:
163
166
 
164
167
  ```bash
165
168
  argo search "python asyncio error handling"
166
169
  ```
167
170
 
168
- 它给你的是 StackOverflow 官方 API 里按社区得分排过序、标了采纳状态的问题,不是一堆 SEO 农场。
171
+ What you get is questions from StackOverflow's official API, ranked by community score and marked with accepted status, not a pile of SEO farms.
169
172
 
170
- 想看看自己机器上现在有几个源可用,一条命令就列出来:
173
+ To see how many sources are available on your machine right now:
171
174
 
172
175
  ```bash
173
176
  argo search --list-engines
174
177
  ```
175
178
 
176
- ## 接入形态
179
+ ## Integration forms
177
180
 
178
- Argo 支持四种接入方式,按你的场景挑:
181
+ Argo supports four integration forms; pick by scenario:
179
182
 
180
- | 形态 | 适合 | 说明 |
181
- |------|------|------|
182
- | **MCP Server** | Agent 常驻挂载 | 19 个检索工具随时可用,一条命令注入 Claude Code / Cursor / Windsurf / Codex / OpenCode / Cline,写配置前自动备份 |
183
- | **DSH 插件** | DeepSeek Harness 用户 | 一行 `dsh plugin add` 装好,搜索和抓取成为原生一等工具,不依赖 MCP 连接,不占常驻上下文开销;自带六分区设置页,改完即生效 |
184
- | **Skill 文件** | Claude Code / Grok Build / Kimi 等 | 技能包装进 Agent 的技能目录,你说「帮我查一下」「核实一下」,它自己去查 |
185
- | **npx 即用即走** | 快速试一下 | `npx -y argo-search`(npm 发布版)或 `npx -y github:taxueseek/argo`(main),不用装,适合临时把 MCP 挂进任意客户端 |
183
+ | Form | Best for | Notes |
184
+ |------|----------|-------|
185
+ | **MCP Server** | Always-on agent attachment | 19 retrieval tools ready; one command injects Claude Code / Cursor / Windsurf / Codex / OpenCode / Cline, config backed up first |
186
+ | **DSH plugin** | DeepSeek Harness users | One line `dsh plugin add`; search and fetch become native first-class tools, no MCP connection, no standing context overhead; ships a six-section settings page effective on save |
187
+ | **Skill files** | Claude Code / Grok Build / Kimi, etc. | Drop the skill package into the agent's skills directory; say "look this up" or "verify this" and it searches |
188
+ | **npx on demand** | Quick trial | `npx -y argo-search` (npm release) or `npx -y github:taxueseek/argo` (main), no install, good for temporarily attaching MCP to any client |
186
189
 
187
- 四种形态底层是同一套 Python 代码,CLI 与 MCP 工具一一对应,装哪种都不缺能力。
190
+ All four forms run the same Python code underneath; CLI and MCP tools map one to one, so no form lacks capability.
188
191
 
189
- ## 它和「模型自带搜索 / AI 搜索 / 聚合搜索」比,强在哪
192
+ ## Why it's stronger than built-in search / AI search / metasearch
190
193
 
191
- > 简单来说:前三种方案解决「**人**找信息」,Argo 解决「**Agent 及搜索核查于一身,具备一条龙的搜索服务**」。差别不在界面,在交付物,给人看的叫总结页或链接清单,给 Agent 的应是能排序、能复核、不撑爆上下文的优质内容,更可靠的搜索信息。
194
+ > In short: the first three help **people** find information. Argo helps **agents** search and verify in one pipeline. The difference is the deliverable: a summary page or link list for humans vs ranked, reviewable, context-safe evidence for agents.
192
195
 
193
196
  <p align="center">
194
- <img src="assets/readme/why-better.svg" width="100%" alt="左侧三种默认搜索给人看的结果,右侧 Argo 给 Agent 的可吸收证据 JSON">
197
+ <img src="assets/readme/why-better.svg" width="100%" alt="Left: three default searches made for humans; right: Argo's absorbable evidence JSON for agents">
195
198
  </p>
196
199
 
197
- | 维度 | 模型自带搜索 | AI 搜索(总结型) | 聚合搜索 / 搜索引擎 | **Argo** |
198
- |------|------------|-------------------|---------------------|----------|
199
- | 结果形态 | 拼好的长文本 | 给人看的总结页 | SERP 链接清单 | **精简 JSON:证据候选 + 可信度分解** |
200
- | 垂直问题(行情 / 化学式) | 泛搜网页 | 泛搜再总结 | 泛搜网页 | **直连垂直源,直接给答案** |
201
- | 证据可信度 | 无评分 | 无结构化评分 | 无评分 | **selection · absorption · freshness · 共识** |
202
- | 重复查询 | 每次都打网 | 每次都打网 | 靠页面缓存 | **双层缓存(内存 + SQLite),热查询约 10ms** |
203
- | 成本控制 | 不可控 | 单次贵 | 免费但费事 | **预算模式,免费优先,Key 全可选** |
204
- | 多语言 | 随模型走 | 随模型走 | 随引擎走 | **语言检测 + 引擎语言参数 + 多国语言支持** |
200
+ | Dimension | Model built-in search | AI search (summaries) | Metasearch / engines | **Argo** |
201
+ |-----------|----------------------|------------------------|----------------------|----------|
202
+ | Result shape | Stitched long text | Human summary page | SERP link list | **Compact JSON: evidence candidates + credibility breakdown** |
203
+ | Vertical questions (quotes / formulas) | Generic web | Generic web then summarize | Generic web | **Direct vertical sources, answer-shaped** |
204
+ | Evidence credibility | No score | No structured score | No score | **selection · absorption · freshness · consensus** |
205
+ | Repeat queries | Hit the network every time | Hit the network every time | Page cache | **Two-layer cache (memory + SQLite); hot queries ~10ms** |
206
+ | Cost control | Uncontrollable | Expensive per call | Free but laborious | **Budget modes; free first; keys all optional** |
207
+ | Multilingual | Follows the model | Follows the model | Follows the engine | **Language detect + engine locale params + multilingual routing** |
205
208
 
206
- > 机制上,Argo 把搜索当成一条**证据管线**:语言检测 → 领域路由 → 多引擎召回 → RRF 融合 → 证据快评,交付的是 Agent 可直接排序、可 `fetch` 复核、不撑爆上下文的材料。工具链不用换,需要换的是「搜索结果应该长什么样」——再往下一层,还有和「再包一层搜索 API 的差别」,那是实现细节的对比。
209
+ > Mechanically, Argo treats search as an **evidence pipeline**: language detect → domain route → multi-engine recall → RRF fuse → evidence skim. The output is material an agent can rank, `fetch` to verify, and keep inside context.
207
210
 
208
- ---
211
+ ### Why choose Argo over Commercial Agent Search APIs (Tavily / Exa / Serper)
209
212
 
210
- ## 2026,检索正在发生什么变化
213
+ | Feature | Commercial Search APIs (Tavily / Exa / Serper) | Argo (Open Source) |
214
+ |---|---|---|
215
+ | **Cost & Billing** | $20 - $100+/month (pay-per-query limits) | **100% Free & Open-Source (Apache-2.0 License)** |
216
+ | **Search Sources & Depth** | Single proprietary index or fixed proxy | **Hundreds of curated vertical sources** (academic, code, finance, news, macro) |
217
+ | **API Keys** | Mandatory paid API keys to start | **Zero-config keyless fallback** (all keys strictly optional) |
218
+ | **Multilingual & Localization** | Heavily English-biased results | **18 languages native routing** with localized local engines |
219
+ | **Modalities & Depth** | Plain text snippet summaries | **Text + Reverse Image Search + Papers + Live Data Cards** |
220
+ | **Privacy & Control** | Cloud vendor lock-in, queries logged remotely | **Local CLI / MCP Server / Self-hosted pipelines, fully private** |
211
221
 
212
- Agent 干活的量级变了,检索的玩法跟着变了五件事,每一件 Argo 都已经落在代码里:
222
+ ---
213
223
 
214
- 1. **检索从「给链接」变成「给证据」。** Agent 不看网页排版,它要能排序、能复核、不撑爆上下文的结构化材料——所以 Argo 交付的是带可信度分解的 JSON,而不是 SERP 清单。
215
- 2. **上下文成为第一成本。** 一次网页抓取动辄上万 token,Agent 的窗口烧不起。Argo 的 Agent 档单次约 3.7KB,字段集合与字节预算都有检查卡着,升级不会悄悄变胖。
216
- 3. **网站开始为 AI 备料。** llms.txt 标准与 `.md` 直出在头部文档站快速铺开——Argo 抓取链第零级自动探测这些 AI 友好变体,命中即跳过整条反爬链;HTTP/TLS 都失败还有 r.jina.ai 阅读器级保底。
217
- 4. **免费开放生态够用了。** 政府、学术、标准、安全机构的开放 API + 免 key 引擎,已经能覆盖大多数领域(大部分源免配置);稀缺免费额度(firecrawl 1000 credits/月、stackexchange 300 次/天)做了「日常补位、关键顶上」的分层,订阅墙不是唯一解。
218
- 5. **检索质量从「感觉」到「度量」。** 排序有金标(MRR/nDCG 地板)、融合有增益消融检查、路由有负向控制矩阵——「这版比上版好吗」从此是数字问题,不是玄学。
224
+ ## What changed in search by 2026
219
225
 
220
- > 以上五项已经在 v2.9.x 系列里全部落地。逐项细节见 [docs/为什么选择argo.md](docs/为什么选择argo.md) 与 [CHANGELOG](docs/CHANGELOG.md#v290)。
226
+ 1. **From links to evidence.** Agents need structured material they can rank, verify and fit in context — Argo returns credibility-decomposed JSON, not SERP lists.
227
+ 2. **Context is the first cost.** A single page scrape can burn 10k+ tokens; Argo's agent profile is ~3.7KB per call, with field sets and byte budgets pinned by gates.
228
+ 3. **Sites now prepare content for AI.** llms.txt and `.md` direct-out are spreading across major doc sites — Argo's fetch chain probes them at level 0, with an r.jina.ai reader fallback.
229
+ 4. **The free/open ecosystem is enough.** Government, academic, standards and security open APIs plus keyless engines cover most domains (most sources need no key).
230
+ 5. **Quality is measurable.** Ranking golden floors, fusion-ablation gates and negative routing controls — "is this version better" is now a number, not a vibe.
231
+
232
+ > All five are already shipped across the v2.9.x line. Details in [docs/为什么选择argo.md](docs/为什么选择argo.md).
221
233
 
222
234
  ---
223
235
 
224
- ## 问啥像啥
236
+ ## Query-shaped routing
225
237
 
226
238
  <p align="center">
227
- <img src="assets/readme/proof-routes.svg" width="100%" alt="四类真实路由:金融、影视、多语言、地理">
239
+ <img src="assets/readme/proof-routes.svg" width="100%" alt="Four real routes: finance, film, multilingual, geo">
228
240
  </p>
229
241
 
230
- | 你这样问 | 大致会怎样 |
231
- |----------|------------|
232
- | python asyncio error handling | 编程问答域 → StackOverflow/StackExchange 官方 API,带得分与采纳标记 |
233
- | AAPL / 美股盘前 | 美股域,与 A 股分流 |
234
- | 肖申克的救赎 主演 / Inception director | 影视域 → IMDb 等 |
235
- | 梅西 俱乐部 / 库里 球队 | 体育域 → TheSportsDB 等 |
236
- | 埃菲尔铁塔在哪 / where is Eiffel Tower | 地理实体 → OpenStreetMap 等 |
237
- | NASA founding year / 国务院职能 | 组织实体 → Wikidata 等 |
238
- | 周杰伦 专辑 / Taylor Swift album | 媒体域 → iTunes 等 |
239
- | アニメ おすすめ / 한국 영화 추천 | 识别日/韩语 → 语言友好源,少塞中文专用站 |
240
- | 美国 CPI、日本 通胀率 | 宏观数据域;国别分流(本国权威源优先) |
241
- | log4j 漏洞 CVSS / nodejs 22 end of life | 安全域 → NVD 官方;生命周期域 → endoflife.date |
242
- | attention is all you need | 学术域 → arXiv/OpenAlex/CrossRef,元数据与 DOI 直连 |
243
- | 阿司匹林 分子式 | 化学域 → PubChem 类答案 |
244
- | 台积电估值分歧(深度研究) | 拆子问题 + 多源并行,垂直源被 boost |
242
+ | You ask | What tends to happen |
243
+ |---------|----------------------|
244
+ | python asyncio error handling | Coding-QA domain → StackOverflow/StackExchange official API, with score & accepted-answer markers |
245
+ | AAPL / US pre-market | US equities domain, split from A-shares |
246
+ | 肖申克的救赎 主演 / Inception director | Film domain → IMDb etc. |
247
+ | 梅西 俱乐部 / 库里 球队 | Sports domain → TheSportsDB etc. |
248
+ | 埃菲尔铁塔在哪 / where is Eiffel Tower | Geo entity → OpenStreetMap etc. |
249
+ | NASA founding year / 国务院职能 | Org entity → Wikidata etc. |
250
+ | 周杰伦 专辑 / Taylor Swift album | Media domain → iTunes etc. |
251
+ | アニメ おすすめ / 한국 영화 추천 | Detect JA/KO → language-friendly sources; avoid Chinese-only sites |
252
+ | US CPI, Japan inflation | Macro domain; country split (national authoritative sources first) |
253
+ | log4j CVSS / nodejs 22 end of life | Security → NVD official; lifecycle → endoflife.date |
254
+ | attention is all you need | Academic → arXiv/OpenAlex/CrossRef metadata with DOI links |
255
+ | 阿司匹林 分子式 | Chemistry → PubChem-style answers |
256
+ | TSMC valuation debate (deep research) | Sub-questions + parallel sources; verticals boosted |
245
257
 
246
258
  ---
247
259
 
248
- ## 它怎么工作
260
+ ## How it works
249
261
 
250
262
  <p align="center">
251
- <img src="assets/readme/workflow.svg" width="100%" alt="查询 → 语言与域 → 多引擎召回 → RRF → 证据快评 → 统一 JSON">
263
+ <img src="assets/readme/workflow.svg" width="100%" alt="Query → language & domain → multi-engine recall → RRF → evidence → unified JSON">
252
264
  </p>
253
265
 
254
266
  ```
255
- 查询
256
- ├─ 意图消歧(可选)
257
- ├─ 查询改写(可选;路由仍看原始意图)
258
- ├─ 语言检测 + 语言偏好
259
- ├─ 路由(域规则 + TF-IDF + 预算 + 语言补充源 + 热路径缓存)
260
- ├─ 多引擎召回(熔断 / 负缓存 / 并行)
261
- ├─ 空结果分阶恢复(放宽 → 换同族/通用 → 跨语言;防污染)
262
- ├─ RRF 融合 + 可选精排
263
- ├─ 证据快评(权威 · 证据密度 · 时效 · 共识)
264
- └─ 统一 JSON(含 engine_outcomes / recovery / route_reason)
267
+ query
268
+ ├─ intent clarify (optional)
269
+ ├─ query rewrite (optional; routing still sees original intent)
270
+ ├─ language detect + language preference
271
+ ├─ route (domain rules + TF-IDF + budget + lang supplements + hot-path cache)
272
+ ├─ multi-engine recall (circuit breaker / negative cache / parallel)
273
+ ├─ staged empty-result recovery (widen → same family/general → cross-lang; anti-pollution)
274
+ ├─ RRF fusion + optional re-rank
275
+ ├─ evidence skim (authority · density · freshness · consensus)
276
+ └─ unified JSON (incl. engine_outcomes / recovery)
265
277
  ```
266
278
 
267
- ### 证据评分(简版)
279
+ ### Evidence scoring (short)
268
280
 
269
281
  ```
270
- selection ≈ 域名权威,SERP/跳转链压到很低
271
- absorption ≈ 数字 / 定义 / 对比 / 披露等证据密度
272
- freshness ≈ 发布时间(会忽略「2015 年以来」这类历史对比年)
273
- 综合 ≈ 0.40·selection + 0.35·absorption + 0.15·freshness + 0.10·引擎分
282
+ selection ≈ domain authority; SERP / redirect shells ranked very low
283
+ absorption ≈ density of numbers / definitions / comparisons / disclosures
284
+ freshness ≈ publish time (ignores historical comparison years like “since 2015”)
285
+ composite ≈ 0.40·selection + 0.35·absorption + 0.15·freshness + 0.10·engine score
274
286
  ```
275
287
 
276
- 结果字段含 `selection`、`absorption`、`credibility_fast`、`evidence_flags` 等,方便 Agent 直接排序。
288
+ Results include `selection`, `absorption`, `credibility_fast`, `evidence_flags`, etc. so agents can sort directly.
277
289
 
278
- ### Agent 使用纪律(建议)
290
+ ### Agent discipline (recommended)
279
291
 
280
- 1. **高后果问题**(持仓、安全、是否属实):search → 看快评分 → 对 top 结果 `fetch` → 再下结论
281
- 2. **数字**:写清计算方式,冲突时并列,不要硬合并
282
- 3. **搜索结果页 / 跳转链**:不要当正文信源
283
- 4. **社交帖**:当舆情与叙事,不当事实真值
284
- 5. **事实核查**:宁可多一两条分层查询(来源 / 对比 / 主体)
292
+ 1. **High-stakes questions** (positions, safety, “is this true?”): search → read fast scores → `fetch` top hits → then conclude
293
+ 2. **Numbers**: state the计算方式 (definition/scope); when sources conflict, list them—don’t force a merge
294
+ 3. **SERP / redirect pages**: never treat as primary sources
295
+ 4. **Social posts**: sentiment and narrative, not ground truth
296
+ 5. **Fact-check**: prefer a few stratified queries (source / comparison / subject)
285
297
 
286
298
  ---
287
299
 
288
- ## 快速开始
289
-
290
- 任选一种即可。**npm 安装已支持,当前版本 2.13.0**,与 GitHub 同为本仓库发布。npm 路线用 `npm install -g argo-search` 或 `npx -y argo-search`,按 tag 发布、版本固定、下载体积更小;GitHub 路线用 `install.sh` / `install.ps1` 或 `npx github:taxueseek/argo`,跟 main 走。之后每次打 tag,CI 会把两个 npm 包和 GitHub Release 一起发出;registry 上更早的 v1.0.1 是历史版本,不要锁定到它。
300
+ ## Quick start
291
301
 
292
- **零配置就能跑**:不配 API Key 时走免费引擎 + 本地 `local_*` 引擎;配了 Key 的源质量通常更好,没配则自动跳过。
302
+ Pick any path. **npm install is supported, current version 2.14.1**, published from this repo like GitHub. The npm route uses `npm install -g argo-search` or `npx -y argo-search`, is released per tag, with a pinned version and a smaller download. The GitHub route uses `install.sh` / `install.ps1` or `npx github:taxueseek/argo` and follows main. From now on every tag push makes CI publish both npm packages together with the GitHub Release; the older v1.0.1 on the registry is a historical version, do not pin to it.
293
303
 
294
- ### 方式一:一键脚本(推荐本机长期用)
304
+ **Zero-config works**: without API keys, free engines + local `local_*` engines run; keyed engines are skipped when missing (and usually better when present).
295
305
 
296
- macOS / Linux:
306
+ ### Option 1: Install script (best for long-term local use)
297
307
 
298
308
  ```bash
299
309
  curl -fsSL https://raw.githubusercontent.com/taxueseek/argo/main/scripts/install.sh | bash
300
310
  ```
301
311
 
302
- Windows(PowerShell):
303
-
304
- ```powershell
305
- powershell -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/taxueseek/argo/main/scripts/install.ps1 | iex"
306
- # 或下载后执行:
307
- # powershell -ExecutionPolicy Bypass -File scripts/install.ps1
308
- ```
309
-
310
- 装到指定目录、并挂 Skill 入口:
312
+ Custom home + Skill link:
311
313
 
312
314
  ```bash
313
315
  curl -fsSL https://raw.githubusercontent.com/taxueseek/argo/main/scripts/install.sh \
314
316
  | bash -s -- --home "$HOME/.local/share/argo" --link "$HOME/.claude/skills/argo"
315
317
  ```
316
318
 
317
- 验证:
319
+ Verify:
318
320
 
319
321
  ```bash
320
322
  python3 ~/.local/share/argo/scripts/search.py "python asyncio error handling" --json
321
323
  python3 ~/.local/share/argo/scripts/search.py --list-engines
322
324
  ```
323
325
 
324
- ### 方式二:MCP 不装包,直接用 GitHub(推荐 Agent 快速挂载)
326
+ ### Option 2: MCP from GitHub (fast agent attach)
325
327
 
326
- 需要 **Node.js 18+** 和 **Python 3.9+**,首次执行一次:
328
+ Needs **Node.js 18+** and **Python 3.9+**. Once:
327
329
 
328
330
  ```bash
329
331
  pip3 install pyyaml
@@ -333,7 +335,7 @@ pip3 install pyyaml
333
335
  npx -y github:taxueseek/argo
334
336
  ```
335
337
 
336
- 客户端配置示例(Claude Code / Cursor / Kimi 等):
338
+ Client config (Claude Code / Cursor / Kimi, etc.):
337
339
 
338
340
  ```json
339
341
  {
@@ -346,37 +348,7 @@ npx -y github:taxueseek/argo
346
348
  }
347
349
  ```
348
350
 
349
- ### DeepSeek Harness 一键插件(.dsh-plugin bundle)
350
-
351
- 在 DeepSeek Harness 里一行安装(两种装法):
352
-
353
- ```bash
354
- # 装法 A:19 个 mcp__argo__* 工具(主包自带 bundle,与 MCP 全量相同)
355
- dsh plugin --profile web add argo-search # npm 发布版
356
- dsh plugin --profile web add "github:taxueseek/argo" # GitHub main
357
-
358
- # 装法 B:搜索工具 + wide_research 并行研究调度(子包)
359
- dsh plugin --profile web add @taxueseek/argo-dsh # npm 发布版
360
- dsh plugin --profile web add "github:taxueseek/argo#main&path:packages/dsh-plugin"
361
- ```
362
-
363
- 重启 `dsh web` 后生效。包结构见 `packages/dsh-plugin/`;同 id `mcp-argo` / `wide-research` 可在用户层 `cordis.patch.yml` 覆盖。装法 B 的 `wide_research` 模块只存在于子包依赖树,主包 patch 不引用它,避免只装主包时 Cordis 解析失败。DSH 0.2.1-alpha.1 与 0.2.1-rc.2 均已实测:rc.2 上 `wide_research`(2 worker,passed=true / 14 sources)与原生 `argo_search`(count=3)真跑通,`dsh web` 启动无 argo 报错;web seam 随启动注册通过(headless 无 web 服务,未做实际调用)。
364
-
365
- ### 依赖清单(通俗版)
366
-
367
- | 依赖 | 必需? | 干什么用 | 不装会怎样 |
368
- |------|:------:|---------|-----------|
369
- | **PyYAML** | ✅ 必需 | 读配置文件 | 完全跑不起来,安装脚本会自动装 |
370
- | **curl_cffi** | ❌ 可选(v2.7.3 新增) | 模拟浏览器 TLS 指纹,过反爬站(Cloudflare 等) | 反爬站抓取成功率低一些,日常搜索无影响 |
371
- | **rapidfuzz** | ❌ 可选(v2.9.5 新增) | 去重的模糊近重复复核:同文换站后缀/镜像站在 minhash 近似命中带内二次判定 | 跨站同文少合几条,去重召回略降;站后缀归一仍生效 |
372
- | **ddgs CLI** | ❌ 可选 | 本地免 key 搜索的 10 个后端引擎 | 少一批零成本本地搜索源,其余不受影响 |
373
- | **realtime-index CLI** | ❌ 可选 | 实时索引引擎(搜刚发布的内容) | 该引擎自动禁用,显式指定会回退通用引擎 |
374
- | **Chrome** | ❌ 可选 | 页面截图、JS 渲染页、登录态抓取 | 截图工具不可用,其余正常 |
375
- | **pdfplumber / PyMuPDF** | ❌ 可选 | PDF 提取 | argo_pdf 不可用,其余正常 |
376
- | **Playwright** | ❌ 可选 | 截图增强 | 截图工具回退 Chrome CDP,其余正常 |
377
-
378
- 安装脚本(install.sh)只自动装开发档(uv sync 时是 pytest 家族 + 测试要用的三件);其余可选依赖按需 `pip install` 或 `brew install` 即可。
379
- 更稳、完全不依赖 Node 的写法:先装脚本(方式一),再指向本机 Python:
351
+ More stable, no Node: install via Option 1, point at local Python:
380
352
 
381
353
  ```json
382
354
  {
@@ -389,515 +361,470 @@ dsh plugin --profile web add "github:taxueseek/argo#main&path:packages/dsh-plugi
389
361
  }
390
362
  ```
391
363
 
392
- Python 路径特殊时:`export ARGO_PYTHON=/path/to/python3`(仅 npx 入口会读)。
364
+ Unusual Python path: `export ARGO_PYTHON=/path/to/python3` (read by the npx entry only).
393
365
 
394
- ### 方式三:git clone(开发 / 改源码)
366
+ ### DeepSeek Harness one-line plugin
367
+
368
+ Two install paths inside DeepSeek Harness:
395
369
 
396
370
  ```bash
397
- git clone https://github.com/taxueseek/argo.git
398
- cd argo
399
- uv sync --frozen --group dev # 解释器读 .python-version,依赖读 uv.lock
400
- bash scripts/install.sh --link ~/.claude/skills/argo # 可选
401
- .venv/bin/python scripts/search.py --list-engines
371
+ # A: 19 mcp__argo__* tools (main-package bundle, same as full MCP)
372
+ dsh plugin --profile web add argo-search # npm release
373
+ dsh plugin --profile web add "github:taxueseek/argo" # GitHub main
374
+
375
+ # B: search tools + wide_research parallel research orchestration (subpackage)
376
+ dsh plugin --profile web add @taxueseek/argo-dsh # npm release
377
+ dsh plugin --profile web add "github:taxueseek/argo#main&path:packages/dsh-plugin"
402
378
  ```
403
379
 
404
- 没有 uv 时用 `pip3 install pyyaml`(仅此一个硬依赖);可选增强见 `requirements-optional.txt`。
380
+ Restart `dsh web` after install. See `packages/dsh-plugin/`.
405
381
 
406
- 安装脚本本身也可单独跑:`bash scripts/install.sh`(装依赖 + 挂入口 + 装提交门禁),支持 `--dry-run` 预览、`--uninstall` 清理、`--skip-pip` 跳过依赖。
382
+ ### Option 3: git clone (dev / patch source)
383
+
384
+ ```bash
385
+ git clone https://github.com/taxueseek/argo.git
386
+ cd argo
387
+ pip3 install pyyaml
388
+ bash scripts/install.sh --link ~/.claude/skills/argo # optional
389
+ python3 scripts/search.py --list-engines
390
+ ```
407
391
 
408
392
  ---
409
393
 
410
- ## 适用平台
394
+ ## Platforms
411
395
 
412
- | 平台 | 接入方式 | 说明 |
413
- |------|---------|------|
414
- | **Claude Code** | MCP / Skill 链接 | `npx` 或 `mcp_server.py`;也可用 `link_source.py` |
415
- | **Kimi / Grok Build** | MCP Server | 同上 |
416
- | **Cursor / Cline / Continue** | MCP | 支持 MCP 的 IDE 插件均可 |
417
- | **命令行** | `search.py` / `bin/argo` | 脚本、定时任务、人工排查 |
418
- | **Python 项目** | `from search import super_search` | 库调用 |
396
+ | Platform | Integration | Notes |
397
+ |----------|-------------|-------|
398
+ | **Claude Code** | MCP / Skill link | `npx` or `mcp_server.py`; `link_source.py` ok |
399
+ | **Kimi / Grok Build** | MCP Server | same |
400
+ | **Cursor / Cline / Continue** | MCP | any MCP-capable IDE plugin |
401
+ | **CLI** | `search.py` / `bin/argo` | scripts, cron, manual debug |
402
+ | **Python projects** | `from search import super_search` | library call |
419
403
 
420
- ### 安装后自检
404
+ ### Post-install check
421
405
 
422
406
  ```bash
423
- python3 --version # 需要 3.9+(Windows 可用 py -3)
407
+ python3 --version # 3.9+
424
408
  python3 -c "import yaml; print('PyYAML OK')"
425
- python3 scripts/search.py --list-engines # 引擎面与状态总览
426
- python3 scripts/search.py --list-engines --detail # 逐源状态:配了 key 却没结果,
427
- # 先看 missing_env 给出的确切变量名
428
- python3 scripts/health_check.py --all # 真联网探针:验证 key 对端真认(可选)
429
- python3 bin/argo paths --check # 本机路径自检(可选)
430
- python3 bin/argo mcp status # MCP 注入/连通诊断(可选)
431
- python3 bin/argo settings --no-open # 本地只读设置页:密钥掩码状态
432
- # + 各客户端接入片段(可选)
433
- python3 -m pytest tests/test_unit.py -q # 单测(可选)
409
+ python3 -m pytest tests/test_unit.py -q # optional
410
+ python3 scripts/search.py --list-engines
434
411
  ```
435
412
 
436
- > MCP 起不来时:`python3 scripts/mcp_diag.py` 会把 stdin 往来记录到
437
- > `~/.kimi/argo_diag.log`。`health_check.py` 是给人用的联网探针,
438
- > `health_probe.py` 写健康库供路由消费——名字相近,职责不同。
439
- > CLI 退出码恒 0(含断网):成败判断走 JSON 的 `status` / `errors` 字段。
440
-
441
413
  ---
442
414
 
443
- ## 能做什么
444
-
445
- ### 七种能力,通俗说
446
-
447
- **1. 通用搜索 + 垂直搜索,双管齐下**
448
-
449
- 日常问题走通用网页搜索;一问到行情、影视、体育、宏观这类「有标准答案」的问题,自动切到垂直源直接给答案,而不是扔给你一堆链接。数百个源、近百个业务域(准确数字见 [docs/ENGINE_CATALOG.md](docs/ENGINE_CATALOG.md)),金融 / 宏观 / 影视 / 体育 / 地理 / 组织 / 媒体 / 化学 / 学术 / 代码等都有专门的路。
415
+ ## Capabilities
450
416
 
451
- **2. 缓存:不重复花冤枉钱**
417
+ | Capability | What it does | Entry |
418
+ |------------|--------------|-------|
419
+ | Unified search | route → recall → fuse → skim score | `search.py` / `argo_search` |
420
+ | Local file search | on-disk code/notes/memory (offline) | `argo_local_search` |
421
+ | Local text preview | whitelist-dir preview (fail-closed) | `argo_local_read` |
422
+ | Recompute | sandboxed numeric recalc (deny by default) | `argo_recompute` |
423
+ | Deep research | sub-questions, multi-source, gap hints | `research.py` / `argo_research` |
424
+ | Credibility | authority / density / freshness / cross-check | `evidence.py` / `argo_evidence` |
425
+ | Intent clarify | polysemy, brand collisions, strategy hints | `clarify.py` / `argo_clarify` |
426
+ | Page fetch | HTTP first, browser fallback when needed | `argo_fetch` (`mode=extract` for structure) |
427
+ | Screenshot / PDF | page shots, structured PDF extract | `argo_screenshot` / `argo_pdf` |
428
+ | Site crawl | list-page batch crawl | `argo_crawl` |
429
+ | Query operators | `site:` / `-site:` / `-term` / `-"phrase"` / `"phrase"` / `lang:` / `after:` / `before:` stripped from routing and retrieval (details in references/usage.md) | write directly in the query |
430
+ | Trust signals | `authority_level` discrete grade (0-4, >=3 highly authoritative) + `summary` agent-grade digest (backfilled after verification) | result fields, visible via `--fields agent` |
431
+ | Social / sentiment | Weibo / Xiaohongshu / Bilibili / Reddit / X … | `argo_social_search` |
432
+ | DSH native tools | once installed as a DSH plugin, `argo_search` / `argo_fetch` and friends become first-class host tools running as CLI single-shots with zero standing token overhead | call directly after `dsh plugin add` |
433
+ | DSH web seam | the host's built-in `web_search` / `web_fetch` route to argo's engine and fetch chains (HTTP first, auto-escalating to a browser on Cloudflare / JS-rendered pages) | registered by default by the plugin; pin `searchProvider` / `fetchProvider` in the profile |
434
+ | DSH settings page | six sections — Access / Tools / Engines / Keys / Research / Advanced — effective on save; keys go to the host credential store and are never echoed | settings popup `Cmd+,` → left menu "Argo" |
452
435
 
453
- 时效性没那么强的内容(百科类、历史数据这类),第一次查完会进缓存,之后同样的查询直接命中,不再每次都走一遍 API。双层缓存(内存 + SQLite),热查询约 10ms 级返回,既省钱也省时间。
436
+ ### Budget modes
454
437
 
455
- **3. 专为 Agent 设计,更省 Token**
438
+ | Mode | Best for | Behavior |
439
+ |------|----------|----------|
440
+ | `fast` | simple Q, need speed | free engines first; skip paid re-rank |
441
+ | `auto` | daily default | cost-aware quality/spend tradeoff |
442
+ | `deep` | research, surveys | quality first; more engines allowed |
443
+ | `budget` | tight quota | quota control; degrade when exhausted |
456
444
 
457
- 产出是「证据候选 + 可信度分解」的精简 JSON,不是长篇网页;MCP 响应可以按需裁剪,snippet 可控,不会撑爆 Agent 的上下文。比常规模型自带的搜索能力更专业、更省 Token。
445
+ ### Rough capability set (v2.14.1)
458
446
 
459
- **4. 深度研究**
447
+ What Argo does, in one sentence: it sends each question to the right sources by domain and language, ranks what comes back by credibility, and hands the agent material it can sort and verify. Search, fetch, evidence checking and local file search share one pipeline, the 19 MCP tools map one-to-one onto CLI commands, so nothing is missing whichever form you install. A few standalone commands round it out: argo tweet packs an X post, argo auth handles login state, argo job aggregates job listings. The full catalog, with cost, key and status per source, sits in docs/ENGINE_CATALOG.md: **Hundreds of sources, most usable with no key; exact counts in [docs/ENGINE_CATALOG.md](docs/ENGINE_CATALOG.md)**.
460
448
 
461
- 把一个笼统的问题拆成多个子问题,多源并行采集,最后给出「还差什么证据」的缺口提示。适合综述、调研这类要全面、要扎实的场景。
449
+ Installed as a DSH plugin, these capabilities become native host tools: the hot-path search and fetch are on by default, the long-tail forensics tools toggle on in the settings page, and argo's own 28 behaviour switches (cache, rerank, dedup, guard, proxy, TTLs and the rest) moved out of environment variables and into the panel. Keys go into the host credential store, are never echoed, and every change takes effect on save.
462
450
 
463
- **5. 登录态专业搜索(专业模式,默认关闭)**
451
+ The last few releases each fixed one class of problems.
464
452
 
465
- 知乎、小红书、公众号这类要登录才能看的内容,以及 JS 渲染页、反爬页,用真实浏览器配合登录态去搜。默认关闭,需要时开启,依赖 ego lite 和 WebBridge 两个东西,详见下节「登录态专业搜索」。
466
453
 
467
- **6. 时间能力(时间窗 + 方向排序)**
454
+ v2.14.1 focuses on architecture slimming, open source expansion, MCP 3+1 tool consolidation, and security redaction. Deprecated batch16 and eliminated ≥14 dedicated engine builders, converging on declarative schema specs and reducing redundant glue code; added unified feed engine subscribing to Fed, Nature, Lobsters, and Solidot. Consolidated MCP tool surface into 4 orthogonal primitives (search, fetch, deep_research, manage_settings) strictly complying with MaaS specs while preserving backward-compatible aliases (resolves #46). Sources expanded from 300 to 304 (keyless access to Hugging Face Datasets, Maven Central, NuGet, China Railway official fares and Fuxing markers, Open-Meteo daily forecasts). Added fail-closed automatic output credential redaction (secret_guard.py) and narrowed strong local intent regex. Slimmed release distribution to standalone wheel and sdist with per-asset SHA256 checksums.
468
455
 
469
- 要搜「最近几天刚发布的内容」,用 `--since 7d` 这类时间窗框住发布时间范围,判断新旧不再靠猜。支持引擎(如 `realtime_index`,免 Key 实时索引源、需自装 CLI,结果自带发布时间)把窗口下推给数据源;其余引擎的融合结果会按 `published_at` 最后再剔除明确超窗的条目(宽松策略,无时间字段的保留),返回包带 `time_filtered` 统计,CLI 与 MCP 均支持。`--since 7d` 与「7 天前的绝对日期」等价、共享缓存;`--until 2026-08-01` 含当天。配合 `--sort newest|oldest` 按发布时间重排——找最新动态用 `newest`,找最早出处用 `oldest`。
456
+ v2.14.0 focuses on parser layer consolidation, source expansion, and the badcase ledger loop. Adding a new source no longer requires writing a Python parser: a parser registry and a "self-reflective inference parser" infer the parsing rules from declared field paths — zero config, no `output_map`; `argo doctor` now audits parse paths so a broken parser surfaces as a real error instead of a mysterious "this source returned 0 results", which previously could not be distinguished from a genuine empty result. Sources grow 290 → 300 (Mwmbl, Kaggle, HuggingFace Papers, grep.app, OpenAIRE, Mojeek, Repology, DBpedia, 4get, plus three revived sources). Local retrieval gets four improvements: machine-specific path hardcoding removed, multi-environment adaptive asset discovery, FTS5 index slimming with lemmatization, and a cross-platform pure-stdlib fallback. The badcase ledger loop is the headline: the ledger gains an attribution layer (12 root causes; insufficient evidence yields "unattributed" rather than a guess) and a recurrence gate — the same root cause on 3 distinct days triggers "promote this to a hard rule", with live-web ranking drift excluded. The same release adds the `AGENTS.md` routing table and `docs/COMMIT_STANDARD.md`; high-risk commits must state what was run, on which commit, and what was not — the response to two real incidents where a change passed pre-commit yet failed the full regression suite.
470
457
 
471
- **7. 在 DSH 里当原生工具用**
458
+ v2.13.0 focuses on documentation consolidation and state layer consolidation. `docs/` slimmed from 87 to 26 files: deleted `docs/engines/` 60 files (duplicated with `engines/specs/*.yaml` SSOT), archived 18 process reports to `docs-local/archive/` (not in public repo, local traceability), added `docs/CHANGELOG.md` merging 23 RELEASE_NOTES, 27 dead links in README now point to CHANGELOG. State layer `scripts/engine_states.py` expanded from 12 to 22 state machines, 34 modules reference it, literal residuals 19→0; fixed silent degradation from 4 hand-copied rerank degraded sets, `health_check --category` crash, daemon state inferred from Chinese text. Dispatch layer: deep-mode full-parallel branch adds `tail_grace_s`, median 10,000ms → 2,324ms, count unchanged. 165 engine declarations migrated from `config.yaml` to `engines/specs/*.yaml`, `config.py` merge logic from dual-source override to one-way specs→config, 3523 lines deleted. Dependencies consolidated to uv (`uv.lock` pinned + `.python-version` + `pyproject.toml` SSOT).
472
459
 
473
- 装成 DSH 插件后,搜索与抓取是宿主的一等工具,不是外挂的 MCP 连接:`argo_search` / `argo_fetch` 直接可调,宿主的 `web_search` / `web_fetch` 也自动路由到 argo 的引擎链与抓取链。高频路径零常驻 token 开销,长尾取证能力(截图 / PDF / 社交 / 公众号 / 招聘 / 结构化提取 / 证据核验 / 意图消歧 / 站点爬取 / 批量预检 / 变化监控 / DOI 引用 / 本机检索)按需勾选开启。改配置不用碰文件——设置页六个分区改完即生效,密钥写进宿主凭证库、明文不回显。详见上文「DSH 插件」。
460
+ v2.12.0 ships the unified settings center: one entry point, `argo settings`, to inspect and edit the configuration shared by every client (masked keys, per-client onboarding snippets, live switch values), with a zero-service write-back channel — fulfilling issue #44. Community-contributed pixiv keyword image search (anonymous Web / OAuth App dual channel) and a built-in trace.moe scene-recognition engine bring the source count to 288; fetch stops leaving WeChat articles unhandled; and the scheduling/routing algorithms get internal refinements.
461
+ v2.11.2 focuses on closing external feedback. It adds SauceNAO, AnimeTrace, and Google Lens as explicit-only reverse-image engines and removes the dead tineye; fixes four silent-failure classes — keyRefs credentials never reaching subprocesses (key-needing engines no longer return skipped-missing-env), quota not self-healing on key rotation and 402 wrongly locking 30 days, and social-engine subprocess env / credential forwarding; and routes lint_spec_contracts through the shared YAML loader, clearing main's unit/extras shard failures.
474
462
 
475
- ### 能力入口速查
463
+ v2.10.2 focuses on semantic routing and the test foundation. Relevance anchor weighting and a static concept vector table landed; a 13-case human-labeled route set plus an executability gate raised labeled accuracy from 76.9% to 100% — principle/explainer queries no longer fall into academic libraries and platform-guide queries no longer trigger social listening. 123 of 201 routing-snapshot decisions (61%) moved from tfidf scoring to regex/concept direct-match, faster and more assertable. The circuit-breaker factory now resolves at call time, so the same module loaded from different paths no longer keeps separate breaker states. Snippet tag hygiene and caliber dedup join output assembly. The three-tab ZCode panel landed, and ARGO_* env vars are snapshot-restored per test case, closing sporadic ordering pollution. Concept semantic routing is off by default; enable with ARGO_CONCEPT_ROUTER=1.
476
464
 
477
- | 能力 | 说明 | 入口 |
478
- |------|------|------|
479
- | 统一搜索 | 路由 → 召回 → 融合 → 快评 | `search.py` / `argo_search` |
480
- | 本地文件搜索 | 本机代码/笔记/记忆(非联网) | `argo_local_search` |
481
- | 本地文本预览 | 白名单目录内预览(fail-closed) | `argo_local_read` |
482
- | 可复算 | 受限子进程重算数字(默认拒绝) | `argo_recompute` |
483
- | 深度研究 | 拆子问题、多源采集、缺口提示 | `research.py` / `argo_research` |
484
- | 可信度评估 | 权威 / 证据密度 / 时效 / 交叉验证 | `evidence.py` / `argo_evidence` |
485
- | 证据核验(完整链路) | 高后果问题标记 `fetch_required` + 每条 `fetch_suggested`;`--verify` 一键抓正文核验、回填「核实后证据分」、核实过的链接自动记住 | `search.py --verify 3` / `research.py --verify 3` |
486
- | 意图消歧 | 多义词、品牌碰撞、策略建议 | `clarify.py` / `argo_clarify` |
487
- | 页面抓取 | HTTP 优先,必要时浏览器降级 | `argo_fetch`(`mode=extract` 可结构化) |
488
- | 截图 / PDF | 页面截图、PDF 结构化提取 | `argo_screenshot` / `argo_pdf` |
489
- | 站点爬取 | 列表页批量抓取 | `argo_crawl` |
490
- | 查询操作符 | `site:`/`-site:`/`-词`/`-"短语"`/`"短语"`/`lang:`/`after:`/`before:` 从路由与检索两侧剥离(用法见 references/usage.md) | 查询词内直接写 |
491
- | 结果可信信号 | `authority_level` 离散等级(0-4,≥3 极权威)+ `summary` 摘要档(核验后回填) | 结果字段,`--fields agent` 可见 |
492
- | 社交与舆情 | 微博 / 小红书 / B 站 / Reddit / X 等 | `argo_social_search` |
493
- | 实时索引搜索 | 免 Key 实时索引源,结果带发布时间,适合「最近几天有什么新东西」。**需自装 `realtime-index` CLI**(未安装时该源停用,见 ENGINE_CATALOG 已停用清单;多数查询走其他源不受影响) | `--engine realtime_index` |
494
- | 时间窗过滤 | `--since` / `--until`(`7d` 或 `2026-08-01`)限定发布时间范围;支持引擎下推 + 融合后过滤(`time_filtered`),CLI 与 MCP 均支持 | `--since 7d` |
495
- | 时间方向排序 | `--sort newest\|oldest` 按发布时间重排(最新动态 / 最早出处) | `--sort oldest` |
496
- | 登录态专业搜索 | 知乎 / 小红书等登录墙正文、JS 渲染页、登录站点接口直取 | `sub-skills/ego-search/scripts/ego_search.py`(默认关闭,见下) |
497
- | DSH 原生工具 | 装成 DSH 插件后 `argo_search` / `argo_fetch` 等成为宿主一等工具,走 CLI 单发、零常驻 token 开销 | `dsh plugin add` 后直接调 |
498
- | DSH web seam | 宿主内置 `web_search` / `web_fetch` 路由到 argo 引擎链与抓取链(HTTP 优先,Cloudflare / JS 渲染自动升级浏览器) | 插件默认注册,profile 里 pin `searchProvider` / `fetchProvider` |
499
- | DSH 设置页 | 接入 / 工具 / 引擎 / 密钥 / 研究 / 高级 六分区,改完即生效;密钥进宿主凭证库、明文不回显 | 设置弹窗 `Cmd+,` → 左侧「Argo」 |
465
+ v2.10.1 focuses on routing precision consolidation and community issue fixes. It introduces the declarative @commercial_market intent exclusion macro to prevent pharma commercial queries (market size, volume-based procurement, revenue) from falsely hijacking bioinformatics databases like UniProt (#34.1); adds a keyless overseas video lane via parallel_free with site:youtube.com and strips YouTube tracking params (#34.3); eliminates the local-seek zero-match double-run tax, surfacing missing-tool warnings and prioritizing SQLite FTS5 (#34.4); adds url_kind: none support for URL-less specs and guards against empty placeholder bare prefix dead links (#29); fixes engine_status unknown engine reporting and cleans up orphan specs (#29, #34.6); and decouples the nightly drift gate by removing automatic baseline auto-commits (#35).
500
466
 
501
- ### 预算模式
467
+ v2.10.0 widens the capability surface. Sources grow from 272 to 284: five Metaso tiers (scholar, library, image, video, podcast), Sciverse records, NCPSSD Chinese social science, plus three DSH plugin catalogs and two skill indexes — the skill sources carry install counts for the first time. Video works end to end, from query to fetch: a new video domain with --video, duration filters, Bilibili subtitles on fetch and YouTube timedtext. The crawl chain gained frontier quality control and polite pacing — per-host rate limits, 429 backoff — and watch now separates noise from substantive change. General source selection uses measured ordering, English general queries get a conditional DeepSeek hedge, and response bodies go through one decoder with JSON-LD. The installer takes the venv path, so PEP 668 environments no longer end up without their dependencies.
502
468
 
503
- | 模式 | 适合 | 行为 |
504
- |------|------|------|
505
- | `fast` | 简单问题、要速度 | 免费引擎优先,跳过付费精排 |
506
- | `auto` | 默认日常 | 成本感知,质量与花费折中 |
507
- | `deep` | 调研、综述 | 质量优先,可多用引擎 |
508
- | `budget` | 额度紧 | 配额控制,用完降级 |
469
+ v2.9.9 is a security-and-delivery-quality release. The content-security engine used to score web content but not stop it: a high-risk injection page went straight into the pipeline. Now anything over the risk threshold is quarantined, the cleaned text replaces the original, and it never reaches the evidence score. The network egress gains two layers of defense: redirects are validated hop by hop, and the resolved address is pinned to the connection, closing the DNS-rebinding window. On the dispatch side, results from slow engines abandoned by early-stop are no longer thrown away: they are collected in the background, delivered as usual if they finish within the grace window, and their real performance finally reaches the learner. A six-family scan of real-world scenarios tightened five classes of mis-routing: A-share financial queries, corporate due-diligence / invoicing / person-to-company lookups, civil-law practice, drug leaflets and paper-writing how-tos all land where they should. New this round: `argo engine add` wires a new engine up in one step, and the DSH settings page gains a route-observation card with tool recommendation combos.
509
470
 
510
- ### 当前大致能力(v2.13.0)
471
+ v2.9.8 is a routing-precision and feedback-loop release. The three problems in issue #18 — "latest" being routed into realtime news, people_daily returning its default feed when nothing matches, and local_bing matching only "2026" — were all reproduced and fixed. Replaying real queries along the same lines tightened 16 more classes of false triggers: "snow" inside brand names, "Volcano Engine" inside product names, UI-troubleshooting "icons", "code" inside business/finance field names, and "exchange rate" inside code/library queries. A SERP coverage gate and CJK cross-validation now stop "it returned something" from counting as "it is relevant". Thanks to @wpp666 for the reproduction and diagnosis.
511
472
 
512
- Argo 干的事,一句话能说完:把一个问题按领域和语言分给合适的源,取回结果后按可信度排个序,交回给 Agent 的是能排序、能复核的材料。搜索、抓取、核验、本机文件检索走同一条管线,19 个 MCP 工具和 CLI 命令一一对应,装哪种形态都不缺能力。另有几个单点命令随用随取:argo tweet 打包 X 帖子,argo auth 管登录态,argo job 聚合招聘信息。
473
+ v2.9.7 fixed three long-standing ones. When an AI inside a DSH host asked to read a URL, the host used its own fetcher, so short-link redirects and JS challenge pages often failed outright while argo's fetch chain sat unused; this release wires the host's reads through argo, and those pages go from failing to succeeding, with static pages unchanged. The routing candidate pool used to hold 18 explicit-only engines, and if one was ever auto-selected the only paid engine would quietly bill you; the pool is clean now, and using them requires saying so. Every engine success used to take a file lock and rewrite breaker state on disk; healthy engines now cost zero file I/O, and multi-engine accounting commits in one transaction. The license also moved from MIT to Apache-2.0, which sits easier with commercial users.
513
474
 
514
- 装成 DSH 插件后,这些能力直接变成宿主的原生工具:高频的搜索与抓取默认就开,长尾取证能力在设置页里按需勾选,argo 本体的 28 个行为开关(缓存、重排、去重、守卫、代理、TTL 等)也从环境变量搬进了面板。密钥写进宿主凭证库,明文不回显,改完即生效。
475
+ After that the DSH plugin gained another layer: the settings page grew from five sections to six, the new "Engines" section brings argo's behaviour switches into the panel (they used to be env-var only), the keys page now shows whether each key comes from the credential store, the startup environment or `.env`, and tool toggles, timeouts, concurrency and research caps all apply on save. Cancellation now reaches the connection-establishment stage too — when the AI stops mid-flight, an argo subprocess that is still being spawned is killed immediately instead of waiting out its timeout.
515
476
 
516
- 最近几个版本各修了一类问题。
477
+ v2.9.6 handled query operators and the transport layer. A query like site:github.com foo used to have its operator treated as a plain word, or parsed but never applied; a contract layer now strips operators before routing and caching, applies site: as a real filter, and folds it into the cache key, so two searches don't bleed into each other. On transport, every POST used to re-pay the TLS handshake, 320 to 561 ms of it; with connections pooled, a resident MCP process saves that on every query. This release also added the official DeepSeek search engine, billed per call and kept out of the everyday combos.
517
478
 
479
+ v2.9.5 added FX rates and tightened dedup. Asking for the USD/CNY rate used to spin through the macro domain and land on an encyclopedia entry, 1.4 s with no answer; a dedicated fx domain now answers in 675 ms with the live rate and daily news. Dedup gained site-suffix normalization and a fuzzy second pass, so official docs with separators in the title stop getting pushed to the back.
518
480
 
519
- v2.13.0 做的是文档分层收口与状态层收口。`docs/` 从 87 份精简到 26 份:删除 `docs/engines/` 60 份(与 `engines/specs/*.yaml` 真源重复),18 份过程报告归档 `docs-local/archive/`(不进公开仓,保留本机可追溯性),新增 `docs/CHANGELOG.md` 合并 23 份 RELEASE_NOTES,README 27 处死链改为指向 CHANGELOG。状态层 `scripts/engine_states.py` 从 12 台扩到 22 台状态机,34 个模块引用,各文件字面量残留从 19 处降到 0;修掉精排降级集合 4 处手抄导致的高危静默退化、`health_check --category` 必崩、daemon 状态靠文案反推。调度层 deep 档全量并行分支补 `tail_grace_s`,中位 10,000ms → 2,324ms,条数不变(公开版同查询同样 10s 空等)。165 个引擎声明从 `config.yaml` 迁到 `engines/specs/*.yaml`,`config.py` 合并逻辑从双源覆盖变单向 specs→config,删 3523 行。依赖收口到 uv(`uv.lock` 钉版 + `.python-version` + `pyproject.toml` 真源)。
481
+ v2.9.4 fixed the explicit-engine path. Pinning --engine X used to get a blanket cache TTL; with domain determination in place, the TTL follows the domain, and a missing fallback engine no longer triggers an empty re-run of the same engine.
520
482
 
521
- v2.12.0 带来统一设置中心:`argo settings` 一个入口透视与编辑全客户端共享的配置(密钥掩码、各客户端接入片段、常用开关现值),写回走零服务通道——issue #44 的提议就此兑现。社区贡献的 pixiv 正向搜图(匿名 Web 与 OAuth App 双通道)与内置 trace.moe 动画场景识别把源带到 288 个;fetch 对微信公众号文章不再零处理;调度与路由算法内部优化。
522
- v2.11.2 聚焦外部反馈收口。补入 SauceNAO、AnimeTrace、Google Lens 三条显式专用反搜图引擎并摘除失效的 tineye;修掉 keyRefs 凭证未转发到子进程(需密钥引擎不再一律 skipped-missing-env)、quota 换 Key 不自愈与 402 误锁 30 天、社交引擎子进程 env 与凭据透传四类静默失效;lint_spec_contracts 改走共享 YAML loader,解除主干 unit/extras 分片常红。
523
-
524
- v2.10.2 聚焦语义路由与测试地基。相关性锚点加权与静态概念向量表落地,新建 13 条人工标注路由集与可执行性门禁,标注定向从 76.9% 收到 100%,原理/详解类查询不再误入学术库、平台攻略类不再误入舆情监听;路由快照 201 条中 123 条(61%)的决策从 tfidf 打分换成 regex/概念直判,命中更快也更可断言;熔断器工厂改调用期解析,同名模块多路径加载不再各持一份熔断状态;摘要标签卫生与口径去重进输出装配;ZCode 面板三页版入库,测试环境 ARGO_* 变量每用例快照恢复堵住偶发顺序污染。概念语义路由默认关,ARGO_CONCEPT_ROUTER=1 开启。
525
-
526
- v2.10.1 聚焦路由精度收口与社区缺陷修复。引入声明式商业意图否决宏 @commercial_market,消除医药商业与研报查询(市场规模、集采、销售额等)误入 UniProt 生信库的假命中(#34.1);视频模式接入 parallel_free 免 Key 通道并附加 site:youtube.com,剥除 YouTube 语言/分享参数防重复(#34.3);消除 local-seek 零命中双跑税,工具缺失抛结构化告警并优先走 SQLite FTS5 标准库索引(#34.4);支持无外链声明式源 url_kind: none 并加强空占位符死链守卫(#29);修复 engine_status 对未注册引擎误报为 ready 并透传 disabled_reason;解耦夜间漂移门并杜绝基线自动滚降(#35)。
527
-
528
- v2.10.0 扩的是能力面。源从 272 增到 284:秘塔五档(学术、文库、图片、视频、播客)、Sciverse 外文题录、NCPSSD 中文社科,加上 DSH 插件目录三源与技能索引两源,技能类源第一次带安装量。视频从查询到抓取一条线走通:新增 video 域与 --video,按时长筛,抓取时 B 站取字幕、YouTube 取 timedtext。抓取链重写了前沿质控与礼貌节奏,同主机限速、429 退避,watch 的差异判断能分清噪声与实质改动。通用层选源改为实测排序,英文通用查询接入 DeepSeek 条件对冲;响应体统一解码并补上 JSON-LD。安装器改走 venv 主路,PEP 668 环境下不再装完仍缺依赖。
529
-
530
- v2.9.9 做的是安全与交付质量。内容安全引擎原先只评分不拦截,高风险注入页照样进上下文;现在评分过阈值就隔离,用清洗后的正文替换原文,也不再进核验证据。网络出口补了两道纵深:重定向逐跳校验,DNS 解析结果钉死在当次连接上。调度侧,早停弃置的慢源交付不再丢弃:转后台收割,三秒内完成的照常交付并记进学习器。路由上,六族真实场景扫描收了五类误路由,A 股财务查询、企业尽调/开票/人查公司、民事实务、药品说明书、论文写作 howto 各归其位。另有 argo engine add 一键接入新引擎,DSH 设置页新增路由观测卡片与工具推荐组合。
531
-
532
- v2.9.8 做的是路由精度与反馈闭环。issue #18 报告的三件事——「latest」被误判进实时新闻、人民网匹配不到时回默认 feed、local_bing 只命中「2026」——都已复现并修掉;顺着这条线回放真实查询,又把 16 类同类误触发收窄:品牌名里的「雪」、产品名里的「火山引擎」、UI 排障里的「图标」、工商与金融字段里的「代码」、代码语境里的「汇率」等。SERP 覆盖率门与 CJK 交叉验证同时落地,避免「有结果就算相关」。感谢 @wpp666 提供的复现与定位。
533
-
534
- v2.9.7 修的是三个老毛病。DSH 宿主里的 AI 要读一个网址时,走的是宿主自带的抓取,短链跳转和 JS 挑战页经常直接失败,argo 的抓取链根本用不上;这版把宿主的读网址接到 argo 上,这类页面从失败变成成功,普通页面没有变化。路由候选池里原先混着 18 个「只能显式指定」的引擎,万一被自动选中,唯一的付费引擎就会悄悄扣费;如今候选池里没有它们,要用必须写明白。引擎每成功一次,熔断器都要加锁重写一次磁盘;健康状态下这版已经零文件开销,多个引擎的记账也合并成一笔事务。开源协议同时从 MIT 换成了 Apache-2.0,公司商用更放心。
535
-
536
- 这之后 DSH 插件又补了一层:设置页从五个分区扩到六个,「引擎」分区把 argo 本体的行为开关收进面板(原先只能改环境变量),密钥页能看出每个 key 来自凭证库、启动环境还是 .env,工具勾选、超时、并发、研究上限全部改完即生效。取消信号也贯通到了连接建立阶段——AI 中途喊停,正在拉起的 argo 子进程会被立刻杀掉,不再空等超时。
537
-
538
- v2.9.6 做的是查询指令和传输层。搜「site:github.com 某某」这类查询,指令有时被当成普通词,有时解析了也不过滤;现在有统一的契约层,路由和缓存只认剥掉指令后的查询,site: 真正执行过滤并进缓存键,两次搜索不会串味。传输上,以前每次 POST 都重新付一次 TLS 握手,三百到五百毫秒;连接复用之后,常驻的 MCP 进程每笔查询都省这笔钱。这版还接入了官方 DeepSeek 搜索,按次计费,不进日常组合。
539
-
540
- v2.9.5 补的是汇率和去重。问「人民币兑美元汇率」,查询会在宏观域空转一圈,最后给个百科词条,1.4 秒也没有答案;专属汇率域建起来后,675 毫秒直接给即期汇率和每日快讯。去重加了站后缀归一和模糊复核两层,标题带分隔符的官方文档不再被误杀到后排。
541
-
542
- v2.9.4 修的是显式选引擎的场景。用 --engine X 指定引擎时,缓存有效期原先一刀切;补上域判定之后,缓存按域走,没有备选引擎时也不再同引擎空跑一次。
543
-
544
- 逐版本细节见「最近更新」,各版发布说明在 docs/。
483
+ Per-version detail lives in "Recent updates"; release notes for each version are in docs/.
545
484
  ---
546
485
 
547
- ## 引擎与路由
548
-
549
- 源数、免密钥数与业务域数以 [docs/ENGINE_CATALOG.md](docs/ENGINE_CATALOG.md) 为准(生成器维护)(以 `config.yaml` 与 `--list-engines` 为准)。
486
+ ## Engines & routing
550
487
 
551
- ### 直连与垂类(节选)
488
+ Source, keyless and domain counts are maintained by the generator in [docs/ENGINE_CATALOG.md](docs/ENGINE_CATALOG.md) (see `config.yaml` and `--list-engines`).
552
489
 
553
- | 引擎 | 场景 | 成本倾向 |
554
- |------|------|----------|
555
- | anysearch / duckduckgo | 通用 / 技术 | 免费 |
556
- | sina_quote / tencent_quote / eastmoney | A 股行情 / 资金 | 免费 |
557
- | finviz / seeking_alpha | 美股与海外金融 | 视配置 |
558
- | imdb / itunes / thesportsdb | 影视 / 音乐 / 体育 | 免费为主 |
559
- | local_openstreetmap / wikidata / wikipedia | 地理 / 组织 / 百科 | 免费 |
560
- | arxiv / semantic_scholar / openalex | 学术 | 免费为主 |
561
- | pubchem / gbif / rfc_editor | 化学 / 物种 / 标准 | 免费 |
562
- | github / stackoverflow / pypi / npm | 代码与包 | 视配置 |
563
- | byted / bocha / octen / yuanbao | 中文网页 / AI 搜索 | API / 低成本 |
564
- | hkex / shfe / cfets / defillama / gleif | 港股公告 / 上期所 / 人民币中间价 / DeFi / 法人标识 | 免费 |
565
- | zhihu / wechat_sogou | 中文观点 / 公众号 | API / 免费 |
566
- | tavily / exa | 国际 / 语义 | 付费或额度 |
567
- | stackexchange / doi / endoflife / nvd / flk_law | 问答官方 API / 论文元数据 / 生命周期 / 漏洞 / 法规原文 | 免费 |
568
- | twitter / reddit / xiaohongshu / bilibili / weibo | 社交 UGC | 免费(部分需登录) |
490
+ ### Direct & vertical (excerpt)
569
491
 
570
- ### 本地零成本层(`local_*`)
492
+ | Engine | Scenario | Cost bias |
493
+ |--------|----------|-----------|
494
+ | anysearch / duckduckgo | general / tech | free |
495
+ | sina_quote / tencent_quote / eastmoney | A-share quotes / flows | free |
496
+ | finviz / seeking_alpha | US & overseas finance | depends |
497
+ | imdb / itunes / thesportsdb | film / music / sports | mostly free |
498
+ | local_openstreetmap / wikidata / wikipedia | geo / org / encyclopedia | free |
499
+ | arxiv / semantic_scholar / openalex | academic | mostly free |
500
+ | pubchem / gbif / rfc_editor | chemistry / species / standards | free |
501
+ | github / stackoverflow / pypi / npm | code & packages | depends |
502
+ | byted / bocha / metaso / octen / yuanbao | Chinese web / AI search | API / low cost |
503
+ | hkex / shfe / cfets / defillama / gleif | HKEX announcements / SHFE / RMB central parity / DeFi / legal entity IDs | Free |
504
+ | zhihu / wechat_sogou | Chinese opinion / WeChat | API / free |
505
+ | tavily / felo / exa | international / semantic | paid or quota |
506
+ | twitter / reddit / xiaohongshu / bilibili / weibo | social UGC | free (some need login) |
571
507
 
572
- 不依赖独立的 SearXNG 服务。主路径用进程内 HTML / RSS / JSON 解析(如 `local_bing`、`local_sogou`、`local_google`、`local_arxiv` 等)。**多语言查询**时,路由会按语种动态改写引擎语言参数(例如 Bing `setlang`),并参与 RRF 融合。
508
+ ### Local zero-cost layer (`local_*`)
573
509
 
574
- ### 登录态专业搜索(ego-search,默认关闭)
575
-
576
- 普通搜索拿不到知乎、小红书、微博、公众号等**需要登录**的内容,也常抓不回来 JS 渲染页 / 反爬页。ego-search 用**真实浏览器**去做这类搜索:继承登录态、抓登录墙后的正文、在已登录站点直接调接口取数据(如知乎搜索接口)。
577
-
578
- **默认关闭**,需要时开启(在 argo 目录下运行):
579
-
580
- ```bash
581
- python3 sub-skills/ego-search/scripts/ego_search.py enable
582
- ```
583
-
584
- 常用命令:`python3 sub-skills/ego-search/scripts/ego_search.py status`(查看状态)、`... disable`(关闭)、`search` / `fetch` / `api`(分别对应浏览器搜索、抓正文、调站点接口)。
585
-
586
- **依赖**(装好其中一个就能用,两个都装更好):
587
-
588
- | 依赖 | 官方项目 | 是什么 | 什么时候用 |
589
- |------|----------|--------|-----------|
590
- | **ego lite** | [lite.ego.app](https://lite.ego.app/) | 专门给 Agent 用的浏览器应用(仅 macOS),初始化后提供 `ego-browser` 命令 | 默认首选:独立空间,不抢你正在用的浏览器标签 |
591
- | **WebBridge** | [Kimi WebBridge 官方帮助中心](https://www.kimi.com/zh-cn/help/kimi-webbridge/kimi-webbridge-introduction) | 浏览器扩展桥,复用 Chrome / Edge 里已登录的会话 | ego lite 没装,或想直接沿用日常登录态时 |
592
-
593
- 登录态搜到的结果**不写**公共搜索缓存(避免污染共享缓存),需要融合时用 `merge` 命令把常规结果和登录态结果放一起分析。
594
-
595
- ### 本机配置覆盖层(`config.local.yaml`)
596
-
597
- `config.yaml` 是随 argo 一起发版的**公共配置**。本机状态(某个引擎账户欠费要临时停用、本机路径、本机调优)不该写进去——写了就会随升级推给所有用户。本机覆盖层解决这件事:复制示例文件,只写要改的键。
598
-
599
- ```bash
600
- cp config.local.yaml.example config.local.yaml
601
- ```
602
-
603
- ```yaml
604
- # 例:本机临时停用某引擎(路由自动改用别的源)
605
- engines:
606
- parallel:
607
- enabled: false
608
- disabled_reason: "本机账户欠费,路由走 parallel_free;充值后删掉这段"
609
- ```
610
-
611
- - **深度合并**:只写要改的键,不用整份抄引擎声明(`engines.parallel.enabled: false` 只翻一个布尔,其余字段原样保留)。
612
- - **优先级最高**:`config.yaml` → `engines/*.yaml` 外置声明 → `config.local.yaml`。
613
- - **改完立即生效**:进程内缓存与跨进程磁盘缓存都认它。
614
- - **不进公开仓**:`config.local.yaml` 已在 `.gitignore` 里,不会被提交或推送。
615
- - **损坏不影响使用**:文件写坏时静默忽略,退化为只用 `config.yaml`。
616
- - **派生件不含本机状态**:`engine_registry.yaml` / `quota_profiles.json` 等随仓发布的派生文件按公共配置生成,本机跑 `sync_backends` 不会把本地状态写进公开仓。
617
-
618
- 不想用时删掉或改名即可,`config.yaml` 的行为完全不受影响。
510
+ No separate SearXNG service. Main path uses in-process HTML / RSS / JSON parsing (`local_bing`, `local_sogou`, `local_google`, `local_arxiv`, …). For **multilingual queries**, routing rewrites engine language params (e.g. Bing `setlang`) and fuses with RRF.
619
511
 
620
512
  ---
621
513
 
622
- ## 使用示例
514
+ ## Examples
623
515
 
624
- ### 金融
516
+ ### Finance
625
517
 
626
518
  ```bash
627
- python3 scripts/search.py "贵州茅台股价" --explain
628
- # 典型:命中 stock_query → 行情快照源
519
+ python3 scripts/search.py "python asyncio error handling" --explain
520
+ # typical: stock_query → quote snapshot sources
629
521
  ```
630
522
 
631
- ### 学术
523
+ ### Academic
632
524
 
633
525
  ```bash
634
526
  python3 scripts/search.py "transformer attention mechanism paper" --json
635
- # domain 常为 academic,引擎组合含 arxiv 等
527
+ # domain often academic; combo includes arxiv etc.
636
528
  ```
637
529
 
638
- ### 研究与核验
530
+ ### Research & verify
639
531
 
640
532
  ```bash
641
- python3 scripts/research.py "2026 公募基金二季报 持仓结构" --depth deep --json
533
+ python3 scripts/research.py "2026 mutual fund Q2 holdings structure" --depth deep --json
642
534
 
643
- python3 scripts/search.py "同一查询" --json | \
644
- python3 scripts/evidence.py "同一查询" --stdin --json
535
+ python3 scripts/search.py "same query" --json | \
536
+ python3 scripts/evidence.py "same query" --stdin --json
645
537
  ```
646
538
 
647
- ### MCP 工具一览(19)
648
-
649
- | 工具 | 用途 |
650
- |------|------|
651
- | `argo_search` | 统一搜索 |
652
- | `argo_local_search` | 本地文件搜索(非联网) |
653
- | `argo_local_read` | 白名单本地文本预览(fail-closed) |
654
- | `argo_recompute` | 受限子进程可复算(默认拒绝,需授权) |
655
- | `argo_research` | 深度研究(含 social-sentiment 模式) |
656
- | `argo_evidence` | 可信度评估 |
657
- | `argo_clarify` | 意图消歧 |
658
- | `argo_fetch` | 智能抓取(`mode=extract` 结构化提取) |
659
- | `argo_crawl` | 站点爬取 |
660
- | `argo_screenshot` | 页面截图 |
661
- | `argo_pdf` | PDF 提取 |
662
- | `argo_social_search` | 多平台社交搜索(`mode=sentiment` 舆情聚合) |
539
+ ### MCP tools (12)
540
+
541
+ | Tool | Purpose |
542
+ |------|---------|
543
+ | `argo_search` | unified search |
544
+ | `argo_local_search` | local files (offline) |
545
+ | `argo_local_read` | whitelist local text preview (fail-closed) |
546
+ | `argo_recompute` | sandboxed recalc (deny by default; needs auth) |
547
+ | `argo_research` | deep research (incl. social-sentiment mode) |
548
+ | `argo_evidence` | credibility scoring |
549
+ | `argo_clarify` | intent disambiguation |
550
+ | `argo_fetch` | smart fetch (`mode=extract` structured extract) |
551
+ | `argo_crawl` | site crawl |
552
+ | `argo_screenshot` | page screenshot |
553
+ | `argo_pdf` | PDF extract |
554
+ | `argo_social_search` | multi-platform social (`mode=sentiment`) |
663
555
 
664
556
  ---
665
557
 
666
- ## 安装与配置
558
+ ## Install & config
667
559
 
668
- ### 环境要求
560
+ ### Requirements
669
561
 
670
- | 项目 | 要求 |
671
- |------|------|
672
- | Python | 3.9+(命令行与 MCP 核心) |
673
- | 依赖 | `pip install pyyaml`(仅此一个硬依赖)。开发/CI 档用 `uv sync --frozen --group dev`,解释器与依赖版本分别由 `.python-version` 与 `uv.lock` 钉死 |
674
- | 可选增强 | `pip install curl_cffi`(TLS 指纹伪造,MIT 许可)。装上后对指纹检测型反爬站(Cloudflare 等)免起浏览器即可抓取;缺失时自动降级,核心功能不受影响 |
675
- | Node.js | **仅**在使用 `npx` 入口时需要 18+ |
676
- | SearXNG | 不需要(内置本地引擎替代) |
562
+ | Item | Requirement |
563
+ |------|-------------|
564
+ | Python | 3.9+ (CLI + MCP core) |
565
+ | Deps | `pip install pyyaml` (only hard dependency) |
566
+ | Node.js | **only** for `npx` entry, 18+ |
567
+ | SearXNG | not required (built-in local engines) |
677
568
 
678
- ### API Key(全部可选)
569
+ ### API keys (all optional)
679
570
 
680
- 不配置则跳过对应引擎,免费引擎自动保底。**请用环境变量**,不要把真实 Key 写进仓库或贴到 Issue。
571
+ Missing keys skip that engine; free engines backstop. **Use env vars**—never commit real keys or paste them into issues.
681
572
 
682
573
  ```bash
683
- # 推荐(提升搜索质量)
684
- export TAVILY_API_KEY="你的密钥"
685
- export BOCHA_API_KEY="你的密钥"
686
- export METASO_API_KEY="你的密钥"
687
- export ZHIHU_ACCESS_SECRET="你的密钥"
688
-
689
- # 可选
690
- export BRAVE_API_KEY="你的密钥"
691
- export FELO_API_KEY="你的密钥"
692
- export GITHUB_TOKEN="你的密钥"
693
- export WEB_SEARCH_API_KEY="你的密钥"
694
- export ANYSEARCH_API_KEY="你的密钥"
695
- export OCTEN_API_KEY="你的密钥"
696
- export ARGO_KEENABLE_API_KEY="你的密钥" # 可选;Keenable 免费体验期
574
+ # recommended (better quality)
575
+ export TAVILY_API_KEY="your_key"
576
+ export BOCHA_API_KEY="your_key"
577
+ export METASO_API_KEY="your_key"
578
+ export ZHIHU_ACCESS_SECRET="your_key"
579
+
580
+ # optional
581
+ export BRAVE_API_KEY="your_key"
582
+ export FELO_API_KEY="your_key"
583
+ export GITHUB_TOKEN="your_key"
584
+ export WEB_SEARCH_API_KEY="your_key"
585
+ export ANYSEARCH_API_KEY="your_key"
586
+ export OCTEN_API_KEY="your_key"
587
+ export ARGO_KEENABLE_API_KEY="your_key" # optional; Keenable free trial
697
588
  ```
698
589
 
699
- `config.yaml` 里只写 `{ENV_NAME}` 占位,不会提交明文密钥。
590
+ `config.yaml` only stores `{ENV_NAME}` placeholders—no plaintext secrets in git.
700
591
 
701
- ### 缓存
592
+ ### Cache
702
593
 
703
- 默认 SQLite 路径见 `config.yaml` 的 `cache.db_path`(一般为 `~/.cache/unified-search/cache.db`)。
594
+ Default SQLite path is `cache.db_path` in `config.yaml` (usually `~/.cache/unified-search/cache.db`).
704
595
 
705
- | 类型 | 大致 TTL |
706
- |------|----------|
707
- | 金融 | 约 5 分钟 |
708
- | 新闻 / 实时 | 约 10–15 分钟 |
709
- | 通用 | 约 1 小时 |
710
- | 研究 / 常青 | 约 2–24 小时 |
711
- | 空结果 | 很短(避免把失败固化) |
596
+ | Type | Approx. TTL |
597
+ |------|-------------|
598
+ | Finance | ~5 min |
599
+ | News / realtime | ~10–15 min |
600
+ | General | ~1 hour |
601
+ | Research / evergreen | ~2–24 hours |
602
+ | Empty results | very short (avoid freezing “no hits”) |
712
603
 
713
- ### 常见问题
604
+ ### FAQ
714
605
 
715
- **不配 API Key 能用吗?**
716
- 能。内置大量本地零成本引擎和免费 API 源,不配 Key 时自动走免费路径。
606
+ **Works without API keys?**
607
+ Yes. Many local free engines and free APIs; unkeyed path is automatic.
717
608
 
718
- **安装脚本和 npx 有什么区别?**
719
- 安装脚本适合固定装在本机、改配置、挂 Skill;npx 适合快速把 MCP 挂进 Agent。两者底层同一套 Python 代码。
609
+ **Install script vs npx?**
610
+ Script: fixed local install, config, Skill link. npx: attach MCP fast. Same Python core.
720
611
 
721
- **如何确认引擎是否正常?**
722
- `python3 scripts/search.py --list-engines`,或加 `--explain`。
612
+ **How to check engines?**
613
+ `python3 scripts/search.py --list-engines`, or add `--explain`.
723
614
 
724
- **会不会在仓库里复制多份代码?**
725
- 不会。推荐「一份源文件 + 符号链接」。用 `link_source.py`,不要 rsync 多副本。
615
+ **Multiple code copies in the repo?**
616
+ No. Prefer one source + symlinks via `link_source.py`, not rsync clones.
726
617
 
727
618
  ---
728
619
 
729
- ## CLI 常用参数
620
+ ## CLI flags
730
621
 
731
622
  ```
732
- python3 scripts/search.py [选项] 查询词
623
+ python3 scripts/search.py [options] query
733
624
 
734
- --engine, -e 引擎,默认 auto
735
- --max-results, -n 条数,默认 5
625
+ --engine, -e engine, default auto
626
+ --max-results, -n count, default 5
736
627
  --depth, -d fast | balanced | deep
737
628
  --mode fast | auto | deep | budget
738
- --no-cache 跳过缓存
739
- --explain 打印路由说明
740
- --json JSON 输出
741
- --timeout, -t 超时秒数
742
- --list-engines 列出引擎
629
+ --no-cache skip cache
630
+ --explain print routing explanation
631
+ --json JSON output
632
+ --timeout, -t timeout seconds
633
+ --list-engines list engines
743
634
  ```
744
635
 
745
636
  ---
746
637
 
747
- ## 设计取舍
638
+ ## Design trade-offs
748
639
 
749
- 1. **先服务 Agent 吸收,再谈链接数量。**
750
- 2. **免费与本地优先,付费可选增强。**
751
- 3. **失败要可观测**:空结果、超时、熔断分开标,不静默吞掉。
752
- 4. **配置驱动扩引擎**,`config.yaml` 为唯一来源。
753
- 5. **唯一来源安装**:链接入口、不 rsync 多副本。
754
- 6. **不把社交当真理库**;社交内容适合扩维与舆情,不适合单独当真值。
640
+ 1. **Agent absorption first, link count second.**
641
+ 2. **Free and local first; paid is optional lift.**
642
+ 3. **Failures are observable**: empty / timeout / breaker are labeled—no silent swallow.
643
+ 4. **Config-driven engines**; `config.yaml` is the single source of truth.
644
+ 5. **Single-source install**: link entries, don’t rsync copies.
645
+ 6. **Social is not a truth library**; good for expansion and sentiment, not sole ground truth.
755
646
 
756
647
  ---
757
648
 
758
- ## 适用场景
649
+ ## Good fits
759
650
 
760
- - Claude Code / Grok Build / Codex / Kimi 等 **Agent 的搜索后端**
761
- - **多语言、多领域**日常问答:中英日韩等 + 金融 / 影视 / 体育 / 学术 / 代码
762
- - 脚本与流水线里需要 **可复现、可缓存** 的检索
763
- - 事实核查、金融公开信息、实体与公开资料的 **多源对照**
651
+ - Search backend for Claude Code / Grok Build / Codex / Kimi agents
652
+ - **Multilingual, multi-domain** Q&A: CJK + EN + finance / film / sports / academic / code
653
+ - Scripts and pipelines that need **reproducible, cacheable** retrieval
654
+ - Fact-check and multi-source comparison of public finance / entity data
764
655
 
765
- 不太适合单独承担:平台内高级互动定榜、需要长期养服务的最大召回聚合器(已用内嵌本地引擎替代外挂 SearXNG 主路径)。
656
+ Not a great sole solution for: platform-native engagement ranking, or long-lived max-recall aggregators (embedded local engines replace external SearXNG as the main path).
766
657
 
767
658
  ---
768
659
 
769
- ## 目录结构(简)
660
+ ## Tree (short)
770
661
 
771
662
  ```
772
663
  argo/
773
- ├── README.md # 中文介绍(默认)
774
- ├── README.en.md # English
775
- ├── README.ja.md # 日本語
776
- ├── README.ko.md # 한국어
777
- ├── README.es.md # Español
664
+ ├── README.md # English (default)
665
+ ├── README.zh.md # Chinese
666
+ ├── README.ja.md # Japanese
667
+ ├── README.ko.md # Korean
668
+ ├── README.es.md # Spanish
778
669
  ├── SKILL.md
779
- ├── package.json # npx 入口
780
- ├── bin/argo.js # Node 启动 MCP
670
+ ├── package.json # npx entry
671
+ ├── bin/argo.js # Node MCP launcher
781
672
  ├── bin/argo # Python CLI
782
- ├── config.yaml # 引擎与域配置(来源)
783
- ├── assets/readme/ # README 视觉资源
673
+ ├── config.yaml # engines & domains (source of truth)
674
+ ├── assets/readme/ # README visuals
784
675
  ├── backends/
785
- ├── mcp/ # 多客户端 MCP 注入配置(clients.yaml)
676
+ ├── mcp/ # MCP client inject source (clients.yaml)
786
677
  ├── scripts/ # search / research / mcp / install …
787
678
  ├── sub-skills/local-search/
788
- ├── sub-skills/ego-search/ # 登录态专业搜索(默认关闭,开启命令见正文)
679
+ ├── sub-skills/ego-search/ # logged-in professional search (off by default)
789
680
  ├── tests/
790
- └── docs/ # 含 ENGINE_CATALOG.md(搜索源使用文档,生成)
681
+ └── docs/
791
682
  ```
792
683
 
793
684
  ---
794
685
 
795
- ## 最近更新
796
-
797
- 只列最近四个版本。完整历史见[版本记录](#版本记录),逐版详情见 [Releases](https://github.com/taxueseek/argo/releases)。
798
-
799
- ### v2.13.0:文档分层收口 + 22 台状态机单点真源 + 调度尾宽修复
800
-
801
- - **文档分层收口**:`docs/` 从 87 份精简到 26 份。删除 `docs/engines/` 60 份(与 `engines/specs/*.yaml` 真源重复);18 份过程报告归档 `docs-local/archive/`(不进公开仓,保留本机可追溯性);新增 `docs/CHANGELOG.md` 合并 23 份 RELEASE_NOTES;README 27 处死链改为指向 CHANGELOG
802
- - **22 台状态机单点真源**:`scripts/engine_states.py` 从 12 台扩到 22 台,34 个模块引用,各文件字面量残留从 19 处降到 0;修掉精排降级集合 4 处手抄导致的高危静默退化、`health_check --category` 必崩、daemon 状态靠文案反推
803
- - **调度尾宽修复**:deep 档全量并行分支补 `tail_grace_s`,中位 10,000ms → 2,324ms,条数不变(公开版同查询同样 10s 空等)
804
- - **引擎声明单源**:165 个引擎声明从 `config.yaml` 迁到 `engines/specs/*.yaml`,`config.py` 合并逻辑从双源覆盖变单向 specs→config,删 3523 行
805
- - **依赖收口到 uv**:`uv.lock` 钉版 + `.python-version` + `pyproject.toml` 真源,新增 `test_dependency_source_gate.py` 机械对账漂移
806
-
807
- ### v2.12.0:统一设置中心 + pixiv/trace.moe 两搜图引擎 + 公众号 fetch 分流
808
-
809
- - **统一设置中心**(#44,感谢 @zooyoo 提议):`argo settings` 只读透视页(密钥只露尾 4 位、接入片段、开关现值);`--edit` 编辑表单 + `apply` 写回;`set/unset/list` 命令直改(值走 stdin,不进 argv 与 shell history);`argo ui` 同义别名。零服务取舍:不开端口、无鉴权生命周期,写回统一 env_store(原子写 + 0600)
810
- - **pixiv 正向搜图**(PR#45,感谢 @OMSociety):匿名 Web / OAuth App 双通道(结果标 `channel`),R-18 默认过滤,`ARGO_PIXIV_REFRESH_TOKEN` 可选;`explicit_only`
811
- - **trace.moe 场景识别**:图片 URL → 动画作品/集数/时间点(AniList);免 key 按出口 IP 限频,`ARGO_TRACEMOE_PROXY` 覆盖出口;`explicit_only`
812
- - **公众号 fetch 分流**:mp.weixin.qq.com 走前置分支,host+path 精确判定,不再被反爬挑战页挡死
813
- - **算法内部优化**:对冲宽限窗/尾宽分层/查询信号/TF-IDF 路由/场景桶收缩,52 项单测绿(先验改进,暂无线上 A/B)
814
- - **插件与文档收口**:DSH 插件 specs 解耦(fast-adapt 100/100)、版本真源收敛、env_store 末行粘连与 `.bak` 0600 修复
815
-
816
- ### v2.11.2:以图搜图补齐 + 四类静默失效收口 + 主干常红修复
817
-
818
- - **以图搜图补齐**:接 SauceNAO(Pixiv/Pawoo 出处)、AnimeTrace(角色/作品→Bangumi)、Google Lens(SerpAPI,三档匹配)三条显式专用引擎,均 `explicit_only`;彻底摘除已失效的 tineye(HTTP 422)
819
- - **keyRefs 凭证打通**(#41):dsh 插件搜索/抓取 provider 走 MCP 池时补带 `hostCredentials`,需密钥引擎不再一律 `skipped-missing-env`
820
- - **配额状态机三修**(#42):key_fp 与 `required_env` 同源(13 引擎换 Key 自愈)、402 余额不足固定 1h 短冷却(不再误锁 30 天)、报错补 `quota.py reset` 指引
821
- - **社交引擎 env 修复**(#36):xhs/twitter 子进程 UTF-8 环境 + 剥 `NO_PROXY [::1]` + 透传 `TWITTER_*` 凭据与代理
822
- - **主干常红修复**:`lint_spec_contracts.py` 改走共享 `yaml_load`,main 的 unit/extras 分片转绿
823
-
824
- ### v2.10.2:语义路由三步走 + 标注定向 76.9%→100% + 熔断器分裂修复
825
-
826
- - **路由标注定向 76.9%→100%**:新建 13 条人工标注集与可执行性两道门禁,收口「原理/详解类查询误入学术库」「平台攻略类误入舆情监听」两类意图撞车(上一版 3 条失配清零);路由快照 201 条中 123 条(61%)从 tfidf 打分换 regex/概念直判
827
- - **零依赖语义路由地基(默认关)**:3104 行静态概念向量表 + 构建器入仓,`ARGO_CONCEPT_ROUTER=1` 开启;零新依赖,随语料积累验证后再评估默认开
828
- - **熔断器模块别名分裂修复**:工厂改调用期解析,同名模块多路径加载不再各持一份熔断状态;专项回归 116 行锁住
829
- - **输出装配收口**:摘要标签卫生(剥内联标签与 HTML 实体)与口径去重落地
830
- - **ZCode 面板三页版入库**:看板/密钥/诊断三 tab(CSS 变量化 + 深色模式),与实机验收交付物对齐
831
- - **测试环境加固**:`ARGO_*` 环境变量每用例快照恢复,堵脏值经 subprocess 套件传播的全量偶发红
832
-
833
- ### v2.10.1:路由精度收口 + 商业意图宏 + 海外视频通道 + 社区缺陷修复
834
-
835
- - **商业意图否决宏 `@commercial_market`**:为 `protein_search`、`chem_search`、`medical` 声明商业意图让位,医药商业查询不再误入生信/化学/临床库(#34.1)
836
- - **海外视频与 YouTube 去重**:`video` 域与 `--video` 接入 `parallel_free` 免 Key 通道,附加 `site:youtube.com` 并自动剥除 `vl`/`si` 追踪参数(#34.3)
837
- - **消除本机检索零命中双跑税**:修复零命中状态判断并写入缓存,Windows 缺 `rg`/`grep` 时透传结构化 `warnings[]` 告警并优先走 SQLite FTS5(#34.4)
838
- - **无外链源与空占位符死链守卫**:支持 spec 声明 `url_kind: none`(首个落地 `sciverse.yaml`),`_format_url_template` 拦截空占位符防构造裸前缀死链(#29)
839
- - **引擎状态自洽与孤儿清理**:未注册引擎正确返回 `status="unknown", enabled=False` 并透传 `disabled_reason`,清理遗留的 `_cisa_kev` / `_osv` 孤儿 spec(#29、#34.6)
840
- - **夜间漂移门解耦**:结果体积漂移降为信息项,移除夜间自动覆盖基线并推 `main` 的步骤,防温水煮青蛙与分支污染(#35)
841
-
842
- ## 版本记录
843
-
844
- | 版本 | 说明 |
845
- |------|------|
846
- | **v2.13.0** | **文档分层收口 + 22 台状态机单点真源 + 调度尾宽修复**:`docs/` 87→26 份(删 `docs/engines/` 60 份、归档 18 份过程报告、新增 CHANGELOG);`scripts/engine_states.py` 12→22 台状态机,34 模块引用,字面量残留 19→0;deep 档尾宽 10s→2.2s;165 个引擎声明迁到 `engines/specs/`;依赖收口到 uv。详见 [发布说明](docs/RELEASE_NOTES_v2.13.0.md) |
847
- | **v2.12.0** | **统一设置中心 + pixiv/trace.moe 搜图 + 公众号 fetch**:`argo settings` 零服务设置页与写回(#44,@zooyoo);pixiv 双通道正向搜图(PR#45,@OMSociety);trace.moe 场景识别;fetch 公众号前置分流;源 286→288。详见 [CHANGELOG](docs/CHANGELOG.md) |
848
- | **v2.11.2** | **以图搜图补齐 + 四类静默失效收口 + 主干常红修复**:接入 SauceNAO/AnimeTrace/Google Lens 三条显式专用反搜图引擎并摘除失效的 tineye;keyRefs 凭证经 dsh 插件 provider 透传到 MCP 池(#41);quota 换 Key 自愈 + 402 误锁 30 天修复 + reset 指引(#42);xhs/twitter 子进程 env 与凭据透传(#36);lint_spec_contracts 走共享 YAML loader 解除主干常红。详见 [CHANGELOG](docs/CHANGELOG.md) |
849
- | **v2.10.2** | **语义路由三步走 + 标注定向 76.9%→100% + 熔断器分裂修复**:相关性锚点加权 + 静态概念向量表(`ARGO_CONCEPT_ROUTER=1` 默认关)+ 路由准确率收口,13 条标注集定向 100%、快照 61% 决策换概念直判;熔断器工厂调用期解析消除模块别名分裂;摘要标签卫生与口径去重;ZCode 面板三页版入库;测试环境快照恢复加固。详见 [CHANGELOG](docs/CHANGELOG.md) |
850
- | **v2.10.1** | **路由精度收口 + 商业意图宏 + 海外视频通道 + 社区缺陷修复**:引入声明式否决宏 `@commercial_market` 消除医药商业误路由;接入 `parallel_free` 海外视频通道并归一化 YouTube URL;消除 local-seek 零命中双跑税与工具缺失静默;支持无外链源 `url_kind: none` 与空占位符死链守卫;引擎状态自洽;解耦夜间漂移门。详见 [CHANGELOG](docs/CHANGELOG.md) |
851
- | **v2.10.0** | **源到 284 + 视频检索与抓取 + 抓取前沿质控**:新增秘塔五档、Sciverse、NCPSSD 与 DSH/技能索引五源;`video` 域与 `--video`/`--min-duration`/`--max-duration`,B 站字幕与 YouTube timedtext、可选 ASR;crawl 前沿质控与 `argo watch` 噪声 diff;通用选源实测排序 + DeepSeek 英文对冲 + 权威早停;安装器 venv 化。详见 [CHANGELOG](docs/CHANGELOG.md) |
852
- | **v2.9.9** | **安全纵深 + 慢源交付不丢 + 五类误路由收口**:高风险正文隔离+清洗替换(不进证据分)、逐跳重定向校验与 DNS 重绑定封堵;早停弃置的慢源转后台收割(`ARGO_TAIL_COMPLETE_S`),学习器记真实成绩;六族真实场景扫描收口学术/财务/企业/法律/医药误路由;`argo engine add` 一键接引擎、场景分桶学习、ZCode 插件包。详见 [CHANGELOG](docs/CHANGELOG.md) |
853
- | **v2.9.8** | **路由精度审计 + issue #18/#19 修复 + 测试态隔离**:回放真实查询收窄 16 类误触发(品牌名/产品名/字段名/ASCII 子串),SERP 覆盖率门与 CJK 交叉验证落地;nightly 空日志、people_daily 默认 feed、缓存命中守卫一并收口;全量测试按用例隔离 adaptive/熔断状态。感谢 @wpp666 的复现与定位。详见 [CHANGELOG](docs/CHANGELOG.md) |
854
- | **v2.9.7** | **架构收口 + DSH web_fetch 占位 + License 转 Apache-2.0**:宿主 web_fetch 改走 argo 抓取链,JS 挑战页与跨源跳转从失败变成功;18 个 explicit_only 引擎从路由候选池剔除,堵住 auto 档误调付费引擎扣费;熔断、记账、配额恢复与路由缓存一批状态契约收口。 |
855
- | **v2.9.6** | **DeepSeek Search 接入 + 查询操作符契约 + 传输层去重付费 + 路由快照门**:新引擎 `deepseek_search` 默认启用(445-510ms,权威分级 / rerank_score / 时间窗唯一全覆盖);查询操作符收敛为契约层;POST 连接池复用省 320-561ms/次;路由决策变成可 diff 的 golden。 |
856
- | **v2.9.5** | **汇率查询专域 + 去重双轨 + 排序误杀修复 + daemon 多检出隔离**:新增 `fx_query` 域,汇率与中间价直接出即期与快讯,不再落进百科词条;去重补站后缀归一与模糊复核;daemon 落盘名字按检出目录隔离,多 worktree 不再互抢。 |
857
- | **v2.9.4** | **显式引擎域归因 + 恢复链止损 + 门禁同步**:`--engine X` 补域判定,修复缓存 TTL 一刀切 general;显式单引擎无备选时不再空跑恢复链;`org_entity` / `fund_query` 域规则补限定词。 |
858
- | **v2.9.3** | **X 帖子完整打包 + 浏览器登录态车道 + 本地链质速双修**:新增 `argo tweet`(正文 / 串 / 引用 / 转发与互动数据一次打包)与 `argo auth`(站点持久登录态,cookie 只存 Chrome 加密存储);本地中文链跳转壳无会话解析,保留结果 1→5 条;共识宽限自适应提速。 |
859
- | **v2.9.2** | **DSH 0.2.1-alpha.1 适配验证 + 路由/守卫一批修复 + js-run 子技能**:DSH 三形态在新版实测启用,`argo mcp inject` 覆盖到第 7 宿主;TF-IDF 弱证据辅源化、死源与熔断槽位回填、配额耗尽引擎隔离;新增 js-run 子技能,不开浏览器跑网页 JS。 |
860
- | **v2.9.1** | **内容质量优化 + 对抗内容农场 + 适配最新版本**:提升低质批量生成内容的识别与过滤;本地搜索新增自身安装树守卫,避免结果被自身源码污染。 |
861
- | **v2.9.0** | **搜索源优化 + 插件与 CLI 持平 + 多语言小语种**:搜索源 237→253(免配置 198→219),新增 14 个小语种源与 CORE 全文源,百度与搜狗修活;导入链 −79%,重排序 33ms→1.5ms;新增 `argo stats` 本地使用日志。详见 [CHANGELOG](docs/CHANGELOG.md) |
862
- | **v2.8.9** | **输出减重 + 检索更全更快 + 5 个外媒与核查源**:默认输出 15.5KB→5.2KB(−66%,同一份结果不再写三遍);召回 +35%、抓取时延 −30%、正文结构保真 0/6→6/6;新增卫报 / France 24 / 德国之声 / FactCheck.org / Full Fact 五个免密钥源,gdelt 死源下线。详见 [CHANGELOG](docs/CHANGELOG.md) |
863
- | **v2.8.8** | **真实用户报障修复(#12 密钥别名静默失效、#13 抓取链不走代理)+ 全面提速 + 搜索源 218 → 235**:出口调度统一走 `ARGO_PROXY` / 按域规则并尊重 `NO_PROXY`;命令冷启动 2.1s→0.55s;新增 `argo answer` 直答与 `argo watch` 网页观察,14 个免密钥源。详见 [CHANGELOG](docs/CHANGELOG.md) |
864
- | **v2.8.7** | **218 源 / 89 域 + 取信技巧三通道 + 路由触发纪律 + macro 零结果修复**:批次七 / 八 / 九累计 50 个新源;抓取链新增 llms.txt 与 `.md` 直出探测;`--engine` 逗号多引擎修复,中国宏观查询国家统计局前置。详见 [CHANGELOG](docs/CHANGELOG.md) |
865
- | **v2.8.6** | **hedged 竞速 + 知乎三源分工 + 声明式语言分发 + 可达性门 + 学术检索协议**:首引擎宽限窗竞速,快引擎只付 1 次调用;zhihu 全网搜接入并防饿死;子查询语言与学术分发;死源显形检查。详见 [CHANGELOG](docs/CHANGELOG.md) |
866
- | **v2.8.5** | **DSH 插件工具原生化 + MCP 默认关闭 + Windows 兼容 + 配额自愈 + 抓取 deadline**:`argo_search` / `argo_fetch` 以原生一等工具注册,默认可用;Windows 全平台兼容;配额耗尽自动识别、切备用源、周期结束自愈,无需人工改配置。详见 [CHANGELOG](docs/CHANGELOG.md) |
867
- | **v2.8.4** | **本地数据融合 + 多客户端 MCP 接入 + 结构化搜索增强 + Keenable**:深度研究可吃本地一手数据(`file_inputs` + `recompute` 可复算执行器);`argo mcp inject` 一条命令注入 6 个客户端;查询归一化与复杂度门控。详见 [CHANGELOG](docs/CHANGELOG.md) |
868
- | **v2.8.3** | **多语言路由修复 + anysearch 进程化 + weighted RRF**:anysearch 从子进程改为进程内调用,省 Python 启动开销;weighted RRF 新增动态可靠性因子,弱源降权;ja/ko 与欧语言查询返回目标语言。详见 [CHANGELOG](docs/CHANGELOG.md) |
869
- | **v2.8.2** | **Windows 全平台 + 证据语义统一**:全链路 UTF-8 防线根治 GBK 崩溃,Chrome / Edge 自动发现;npm 包补 `dsh.bundle` 声明,一行命令即得 MCP 工具;`wide_research` 新增质量门与递归硬保护。详见 [CHANGELOG](docs/CHANGELOG.md) |
870
- | **v2.8.0** | **证据完整链路 + 求职 v3 + 天气双源**:搜索输出自带证据门控,`--verify` 一键核验并记住已核实链接;`argo job` 求职搜索 v3(结构化字段 + 增量监控);天气双源并行。详见 [CHANGELOG](docs/CHANGELOG.md) |
871
- | **v2.7.3** | **本轮修复 + 引擎激活**:引擎层接入 HTTP 客户端(UA 轮换 / 重试 / 重定向跟随,arxiv 从 5s 超时变 2s 内 10 条);TF-IDF 强语义注入激活 25 个此前永远选不中的垂直引擎;70 域缓存 TTL 全覆盖;国际引擎中文查询 URL 编码修复。详见 [CHANGELOG](docs/CHANGELOG.md) |
872
- | **v2.7.2** | **登录态专业搜索**:新增 ego-search 子技能(默认关闭,开启方法与依赖见上方「登录态专业搜索」节);搜索保底与多意图路由;日韩文查询不再混入中文引擎。详见 [CHANGELOG](docs/CHANGELOG.md) |
873
- | **v2.7.1** | **安全加固 + 路由修复**:SSRF 防护(URL 白名单 + IP 段检查);路由健康状态语义漂移根因修复,只对 `local_*` 做健康判定;深度研究 local_first 浪费修复。详见 [CHANGELOG](docs/CHANGELOG.md) |
874
- | **v2.7.0** | **垂直结构化模态卡**:内建 `bocha` / `bocha_ai` 原生引擎,`modal_card` 域统一识别火车票 / 油价 / 贵金属 / 万年历 / 星座等实时卡片;修复 `bocha` web 解析缺陷。详见 [CHANGELOG](docs/CHANGELOG.md) |
875
- | **v2.6.2** | 合并独立改进线:网络环境感知 / 加权 RRF 与语义缓存 / 自适应引擎禁用 / 内容安全与查询变体 / 三大垂直引擎;含 v2.6.1 路由修复。详见 [CHANGELOG](docs/CHANGELOG.md) |
876
- | **v2.6.1** | v2.6.0 修复版:路由误伤修复(`capital of` 不再抢 fact_check);版本同步。详见 [CHANGELOG](docs/CHANGELOG.md) |
877
- | **v2.6.0** | **多语言搜索**(检测 / 引擎参数 / 跨语言回退);影视·体育·地理·组织·媒体等垂直补全;约 120+ 源。详见 [CHANGELOG](docs/CHANGELOG.md) |
878
- | **v2.5.1** | 金融/宏观/化学等垂直答案源加厚;引擎分层 + combo 预算;[CHANGELOG](docs/CHANGELOG.md#v27x-及更早) |
879
- | **v2.5.0** | 安装脚本 + npx;查询改写与路由拆开;路由热路径缓存;MCP 紧凑响应 |
880
- | **v2.4.0** | 路由低分回退与社交误吸过滤;缓存 depth / 柔性命中;熔断与负缓存;`engine_outcomes` |
881
- | **v2.2–v2.3** | 证据两阶段、中文信源表、content_signals、fetch 栈、引擎扩充 |
882
- | **v2.1** | 社交引擎层(多平台 UGC) |
883
- | **v1.x** | 统一命名为 Argo,多引擎路由与双层缓存成型 |
884
-
885
- 更细说明见 [CHANGELOG](docs/CHANGELOG.md)。
686
+ ## Recent updates
687
+
688
+ Only the four most recent versions. Full history in the [changelog](#changelog); per-release detail on [Releases](https://github.com/taxueseek/argo/releases).
689
+
690
+ ### v2.14.1: Architecture Slimming + MCP 3+1 Tools + 304 Sources + Security Redaction
691
+
692
+ - **Architecture Slimming**: Deprecated batch16 and eliminated ≥14 dedicated builder scripts, converging on declarative YAML specs; unified feed engine for RSS seeds
693
+ - **MCP 3+1 Tools**: Streamlined MCP interface into 4 orthogonal core tools (search/fetch/deep_research/manage_settings) with full MaaS compliance (resolves #46)
694
+ - **Sources 300 → 304**: Added Hugging Face Datasets, Maven Central, NuGet, China Railway official fares and Fuxing markers, Open-Meteo daily forecasts
695
+ - **Security & Asset Slimming**: Built-in fail-closed output stream credential redaction; release assets slimmed to wheel + sdist with standalone SHA256 checksums
696
+
697
+ ### v2.14.0: Parser Layer Consolidation + 300 Sources + Badcase Ledger Loop
698
+
699
+ - **New engines no longer need a hand-written parser**: added a parser registry and a "self-reflective inference parser" — declare the field path and the parsing rules are inferred automatically, zero config, no `output_map`; `argo doctor` now audits every source's parse path, so a broken parser surfaces as a real error instead of a mysterious "this source returned 0 results"
700
+ - **Sources 290 → 300**: nine new declarations — Mwmbl, Kaggle, HuggingFace Papers, grep.app (official MCP code search), OpenAIRE, Mojeek, Repology, DBpedia, 4get — plus three revived sources (clinicaltrials / coingecko / fxtwitter). Eight are on by default; 4get stays off as an anonymous-search fallback
701
+ - **Four local-retrieval improvements**: removed machine-specific path hardcoding (multi-environment adaptive asset discovery — moving to another machine no longer needs a code change); FTS5 index slimming, lemmatization and abbreviation boost, proximity clustering; cross-platform pure-standard-library fallback and public/local search isolation; observable cost, configurable candidates, intent prediction, result cap
702
+ - **Local intent signals consolidated**: two-level signal driving and faceted channel isolation land; anomaly and private-identifier signals consolidated to a single source; fixed `cnii` double-registration silently disabling language-exclusive removal (English queries were running Japanese sources for nothing)
703
+ - **Badcase ledger loop**: the ledger gains an attribution layer (12 root causes; when evidence is insufficient it says "unattributed" rather than guessing) and a recurrence gate — the same root cause appearing on 3 distinct days triggers "promote this to a hard rule". Live-web ranking drift does not count (that is not argo's problem). Also adds `AGENTS.md` routing table and `docs/COMMIT_STANDARD.md`; high-risk commits must state what was run, on which commit, and what was not
704
+ - **State machines 22 → 27**: implicit state-machine census adds 3 (recovery level, conclusion cap, validation) plus badcase root cause (machine #27); new AST gate `test_state_literal_drift.py` turns red when a registered state value reverts to a bare literal
705
+
706
+ ### v2.13.0: Documentation Consolidation + 22-State-Machine SSOT + Dispatch Tail Grace
707
+
708
+ - **Documentation consolidation**: `docs/` slimmed from 87 to 26 files. Deleted `docs/engines/` 60 files (duplicated `engines/specs/*.yaml` SSOT); archived 18 process reports to `docs-local/archive/` (not in public repo, local traceability); added `docs/CHANGELOG.md` merging 23 RELEASE_NOTES; 27 dead links in README now point to CHANGELOG
709
+ - **22 state machines SSOT**: `scripts/engine_states.py` expanded from 12 to 22 state machines, 34 modules reference it, literal residuals 19→0; fixed silent degradation from 4 hand-copied rerank degraded sets, `health_check --category` crash, daemon state inferred from Chinese text
710
+ - **Dispatch tail grace**: deep-mode full-parallel branch adds `tail_grace_s`, median 10,000ms → 2,324ms, count unchanged
711
+ - **Engine declaration SSOT**: 165 engine declarations migrated from `config.yaml` to `engines/specs/*.yaml`, `config.py` merge logic from dual-source override to one-way specs→config, 3523 lines deleted
712
+ - **Dependencies consolidated to uv**: `uv.lock` pinned + `.python-version` + `pyproject.toml` SSOT, new `test_dependency_source_gate.py` mechanical drift check
713
+
714
+ ### v2.12.0: Unified settings center + pixiv/trace.moe image engines + WeChat fetch branch
715
+
716
+ - **Unified settings center** (#44, thanks @zooyoo): `argo settings` read-only overview page (keys masked to last 4 chars, onboarding snippets, live switch values); `--edit` form page + `apply` write-back; `set/unset/list` direct CLI edits (values read from stdin, never in argv or shell history); `argo ui` as an alias. Zero-service tradeoff: no port, no auth lifecycle, write-back unified in env_store (atomic write + 0600)
717
+ - **pixiv keyword image search** (PR#45, thanks @OMSociety): anonymous Web / OAuth App dual channel (results carry `channel`), R-18 filtered by default, optional `ARGO_PIXIV_REFRESH_TOKEN`; `explicit_only`
718
+ - **trace.moe scene recognition**: image URL -> anime title/episode/timestamp (AniList); keyless with per-egress-IP rate limit, `ARGO_TRACEMOE_PROXY` override; `explicit_only`
719
+ - **WeChat article fetch branch**: mp.weixin.qq.com gets a dedicated pre-branch with exact host+path matching, no longer blocked by the anti-crawl challenge page
720
+ - **Algorithm refinements**: hedge grace window / tail layering / query signals / TF-IDF routing / scenario-bucket shrinking, 52 unit tests green (prior-design improvements, no live A/B yet)
721
+ - **Plugin and docs closeout**: dsh plugin specs decoupled (fast-adapt 100/100), version single-source converged, env_store line-join and `.bak` 0600 fixes
722
+
723
+ ### v2.11.2: Reverse-image engines added + four silent-failure classes closed + main-CI fix
724
+
725
+ - **Reverse-image search filled in**: SauceNAO (Pixiv/Pawoo sources), AnimeTrace (character/work -> Bangumi), Google Lens (SerpAPI, three match tiers) — all `explicit_only`; the dead tineye (HTTP 422) is fully removed
726
+ - **keyRefs credentials finally reach key-needing engines** (#41): the dsh plugin's search/fetch providers now carry `hostCredentials` into the MCP pool, so engines no longer return `skipped-missing-env`
727
+ - **Quota state machine, three fixes** (#42): key_fp sourced from `required_env` (13 engines self-heal on key rotation), HTTP 402 balance errors get a 1h cooldown instead of a 30-day lock, and the error text now points to `quota.py reset`
728
+ - **Social engine env fix** (#36): xhs/twitter subprocess gets UTF-8 env, `NO_PROXY [::1]` stripped, and `TWITTER_*` credentials + proxy forwarded
729
+ - **Main-CI fix**: `lint_spec_contracts.py` now goes through the shared `yaml_load`, turning main's unit/extras shards green
730
+
731
+ ### v2.10.2: Semantic routing in three steps + labeled accuracy 76.9%→100% + circuit-breaker split fix
732
+
733
+ - **Labeled route accuracy 76.9%→100%**: a 13-case human-labeled set plus an executability gate close two intent-collision classes — principle/explainer queries no longer land in academic libraries, platform-guide queries no longer trigger social listening; 123 of 201 snapshot queries (61%) moved from tfidf scoring to regex/concept direct-match
734
+ - **Zero-dependency semantic routing foundation (off by default)**: a 3104-line static concept vector table + builder landed; turn on with `ARGO_CONCEPT_ROUTER=1`
735
+ - **Circuit-breaker module-alias split fixed**: the factory now resolves at call time, so the same module loaded from different paths no longer keeps separate breaker states; a 116-line regression locks it
736
+ - **Output assembly cleanup**: snippet tag hygiene (strip inline tags & HTML entities) and caliber dedup
737
+ - **ZCode panel three-tab version landed**: dashboard/keys/diagnostics (CSS variables + dark mode), aligned with the machine-verified deliverable
738
+ - **Test env hardening**: ARGO_* env vars are snapshot-restored per case, closing sporadic full-suite reds
739
+
740
+ ### v2.10.1: Routing precision consolidation + commercial intent macro + overseas video lane + community fixes
741
+
742
+ - **Commercial intent macro `@commercial_market`**: applied across `protein_search`, `chem_search`, and `medical` so pharma commercial queries yield to general search (#34.1)
743
+ - **Overseas video lane & YouTube dedup**: `video` domain and `--video` integrate keyless `parallel_free` with `site:youtube.com` and strip `vl`/`si` tracking params (#34.3)
744
+ - **Eliminate local-seek zero-match double-run tax**: fixed zero-hit status to cache cleanly, surface structured `warnings[]` when `rg`/`grep` are missing, and prioritize stdlib SQLite FTS5 (#34.4)
745
+ - **URL-less spec support & placeholder dead link guard**: specs can declare `url_kind: none` (first applied to `sciverse.yaml`), and `_format_url_template` stops building bare prefix links (#29)
746
+ - **Engine status consistency & orphan cleanup**: unknown engines report `status="unknown", enabled=False`, expose `disabled_reason`, and orphan `_cisa_kev` / `_osv` specs are removed (#29, #34.6)
747
+ - **Decouple nightly drift gate**: output size growth demoted to informational, removing automatic nightly baseline pushes to `main` (#35)
748
+
749
+ ### v2.9.9: security in depth + slow-source results no longer dropped + five mis-routing classes closed
750
+
751
+ - **High-risk page text can no longer reach the context**: the content-security engine upgrades from "score only" to "quarantine + clean replacement"; text with `risk_score ≥ 0.5` is replaced by its cleaned version and excluded from the evidence score. On by default; `ARGO_CONTENT_RISK_GATE=0` for an emergency override
752
+ - **Network egress defense in depth**: redirects validated hop by hop (`ARGO_MAX_REDIRECTS`, default 5) + resolve-and-pin, closing the DNS-rebinding window
753
+ - **Results from slow engines abandoned by early-stop are no longer dropped**: abandoned engines are collected in the background; whatever finishes within `ARGO_TAIL_COMPLETE_S` (default 3s, 0=off) is delivered as usual and recorded as a real score, with results merged back into the cache
754
+ - **Five mis-routing classes closed**: A-share financial queries to `stock_query`, corporate due-diligence / invoicing / person-to-company to `company_search`, civil-law practice to `flk_law`, drug leaflets no longer stolen by the "usage" token, paper-writing how-tos no longer routed to academic search
755
+ - **`argo engine add`**: one-step engine onboarding; the manual spec/env/validate/sync/combo/allowlist chain becomes a single command
756
+ - **Bucketed scenario learning + ZCode plugin package**: routing can now tell "strong in domain A, weak in domain B"; skill+CLI direct channel and a zero-token panel shipped to zcode-plugins
757
+
758
+ ### v2.9.8: routing precision audit + Tencent Yuanbao search + three more keyless sources + a structured failure list
759
+
760
+ - **issue #18/#19 all fixed**: `latest` mis-routed into realtime news, people_daily default feed, local_bing matching only "2026", Chinese cross-validation always 0, nightly crash on empty logs; 16 more isomorphic false-trigger classes tightened along the way
761
+ - **Yuanbao search**: a first-hand, official-voice Chinese source, sitting 2nd in the Chinese-general domain as an authority hedge. Key: `ARGO_YUANBAO_API_KEY`
762
+ - **Three more sources usable with no key**: `tavily_free`, `keenable_free` and the `exa` anonymous fallback
763
+ - **Failures you can act on**: each failure names its source and class and says whether to retry, switch sources or configure a key, alongside a `meta.uncertainty` confidence level
764
+ - **Local config overlay `config.local.yaml`**: machine-local tuning is no longer written into the public config
765
+ - **A new "Engines" section on the DSH settings page**: argo's 28 behaviour switches move out of environment variables and into the panel
766
+
767
+ ---
768
+
769
+ ## Changelog
770
+
771
+ | Version | Notes |
772
+ |---------|-------|
773
+ | **v2.14.1** | **Architecture Slimming + MCP 3+1 Tools + 304 Sources + Security Redaction**: deprecated batch16 and eliminated ≥14 dedicated builders into declarative specs; consolidated MCP 3+1 minimal surface (MaaS compliance, fixes #46); sources 300→304 (HF Datasets/Maven/NuGet/China Railway fares/daily weather); fail-closed output credential redaction; release assets slimmed with per-asset SHA256. See [Release Notes](docs/RELEASE_NOTES_v2.14.1.md) |
774
+ | **v2.14.0** | **Parser Layer Consolidation + 300 Sources + Badcase Ledger Loop**: new engines no longer need a hand-written parser (registry + self-reflective inference parser, zero config, no `output_map`); `argo doctor` gains source audit; sources 290→300 (Mwmbl/Kaggle/HF Papers/grep.app/OpenAIRE/Mojeek/Repology/DBpedia/4get + three revived); four local-retrieval improvements (multi-environment adaptive asset discovery, FTS5 slimming and lemmatization, cross-platform pure-stdlib fallback, observable cost); local intent signals consolidated (fixed English queries running Japanese sources); badcase ledger gains attribution layer and Seen N× recurrence gate; new `AGENTS.md` routing table and `docs/COMMIT_STANDARD.md`; state machines 22→27. See [Release Notes](docs/RELEASE_NOTES_v2.14.0.md) |
775
+ | **v2.13.0** | **Documentation Consolidation + 22-State-Machine SSOT + Dispatch Tail Grace**: `docs/` 87→26 (deleted `docs/engines/` 60, archived 18 process reports, added CHANGELOG); `scripts/engine_states.py` 12→22 state machines, 34 modules, literal residuals 19→0; deep-mode tail grace 10s→2.2s; 165 engine declarations migrated to `engines/specs/`; dependencies consolidated to uv. See [Release Notes](docs/RELEASE_NOTES_v2.13.0.md) |
776
+ | **v2.12.0** | **Unified settings center + pixiv/trace.moe image search + WeChat fetch**: zero-service settings page and write-back via `argo settings` (#44, @zooyoo); pixiv dual-channel keyword image search (PR#45, @OMSociety); trace.moe scene recognition; dedicated WeChat fetch branch; sources 286→288. See [release notes](docs/RELEASE_NOTES_v2.12.0.md). |
777
+ | **v2.11.2** | **Reverse-image engines + four silent-failure classes closed + main-CI fix**: adds SauceNAO/AnimeTrace/Google Lens as explicit-only reverse-image engines and removes the dead tineye; keyRefs credentials forwarded through the dsh plugin providers into the MCP pool (#41); quota key-rotation self-heal + 402 30-day lock fixed + reset hint (#42); xhs/twitter subprocess env and credential forwarding (#36); lint_spec_contracts through the shared YAML loader clears main CI. See [release notes](docs/RELEASE_NOTES_v2.11.2.md). |
778
+ | **v2.10.2** | **Semantic routing in three steps + labeled accuracy 76.9%→100% + circuit-breaker split fix**: relevance anchor weighting + static concept vector table (`ARGO_CONCEPT_ROUTER=1`, off by default) + route accuracy consolidation — 13-case labeled set at 100%, 61% of snapshot decisions moved to concept direct-match; circuit-breaker factory resolves at call time, killing module-alias splits; snippet tag hygiene and caliber dedup; ZCode panel three-tab layout; test env snapshot-restore hardening. See [release notes](docs/RELEASE_NOTES_v2.10.2.md). |
779
+ | **v2.10.1** | **Routing precision consolidation + commercial intent macro + overseas video lane + community fixes**: added `@commercial_market` macro across pharma domains; keyless overseas video via `parallel_free` + YouTube dedup; fixed local-seek zero-match double-run tax and missing-tool warnings; `url_kind: none` spec support and dead link guards; engine status consistency; decoupled nightly drift baseline. See [release notes](docs/RELEASE_NOTES_v2.10.1.md). |
780
+ | **v2.10.0** | **284 sources + video search and fetch + crawl frontier quality control**: five Metaso tiers, Sciverse, NCPSSD and five DSH/skill index sources; a `video` domain with `--video`/`--min-duration`/`--max-duration`, Bilibili subtitles and YouTube timedtext with optional ASR; crawl frontier quality control and noisy-diff `argo watch`; measured general source selection with the DeepSeek English hedge and authority early-stop; venv-based installer. See [release notes](docs/RELEASE_NOTES_v2.10.0.md). |
781
+ | **v2.9.9** | **Security in depth + slow-source results no longer dropped + five mis-routing classes closed**: high-risk text quarantined with cleaned replacement (excluded from the evidence score), hop-by-hop redirect validation and DNS-rebinding pinning; slow engines abandoned by early-stop are collected in the background (`ARGO_TAIL_COMPLETE_S`) and their real scores recorded; a six-family real-scenario scan closes academic/finance/corporate/legal/pharma mis-routing; plus `argo engine add` one-step onboarding, bucketed scenario learning, and the ZCode plugin package. See [release notes](docs/RELEASE_NOTES_v2.9.9.md). |
782
+ | **v2.9.8** | **Routing precision audit + issue #18/#19 fixes + test-state isolation**: replayed real queries and tightened 16 classes of false triggers (brand/product names, field names, ASCII substrings); added the SERP coverage gate and CJK cross-validation; fixed the empty-log nightly ledger, people_daily default feed, and cached-result guarding; isolated adaptive/breaker state per test. Thanks to @wpp666 for the reproduction and diagnosis. See [release notes](docs/RELEASE_NOTES_v2.9.8.md). |
783
+ | **v2.9.7** | **Architecture consolidation + DSH web_fetch seam + License to Apache-2.0**: MIT → Apache License 2.0. Host web_fetch now flows through argo's fetch chain (HTTP first, browser upgrade on JS challenges), and explicit-only engines leave the routing pool so auto mode cannot bill them by accident. |
784
+ | **v2.9.6** | **DeepSeek Search engine + query operator contract + transport connection pooling + routing snapshot gate**: New `deepseek_search` engine, on by default (445-510ms; skipped without a key). Query operators (`site:`, `-term`, `lang:`, `after:`, `before:`) share one contract with real post-filtering; POST pooling saves 320-561ms per request. |
785
+ | **v2.9.5** | **FX-rate dedicated domain + two-layer dedup + ranking false-kill fix + per-checkout daemon isolation**: New `fx_query` domain answers rate and parity questions in 675ms. Dedup gains site-suffix normalization plus an optional fuzzy check (`ARGO_DEDUP_FUZZY`), and a separator false-kill is fixed. |
786
+ | **v2.9.4** | **Explicit engine domain attribution + recovery chain circuit-breaker + gate sync**: `--engine X` supplements domain matching, so cached results are no longer blanket-general, and single-engine runs skip the empty first level. `config.yaml` domain rules gained unless-terms handling. |
787
+ | **v2.9.3** | **Full X post packaging + browser login-state lane + local-chain quality/speed fixes**: New `argo tweet` packs a full post into a `--out` bundle; `argo auth` adds browser login-state sessions excluded from the shared cache. English dispatch falls to 2.2-2.5s, image fingerprints 158ms→3.9ms. |
788
+ | **v2.9.2** | **DSH 0.2.1-alpha.1 compatibility verified + routing/guard fixes + js-run sub-skill**: The DSH plugin is verified on DSH 0.2.1-alpha.1, and `argo mcp inject` adds WorkBuddy as a seventh host. Import cost drops 50%, and js-run (a new sub-skill) runs web JS with no browser, P50 ≈1ms. |
789
+ | **v2.9.1** | **Content-quality optimization + content-farm resistance + latest-version adaptation**: Content-quality scoring better identifies and filters low-quality bulk-generated content, and local search gained a self-install-tree guard so argo's own source stops polluting results. |
790
+ | **v2.9.0** | **Source optimization + plugin/CLI parity + minor languages**: Sources 237→253 (keyless 198→219), adding 14 minor-language news sources and the CORE full-text source; Baidu and Sogou are revived. Import −79%, rerank 33ms→1.5ms, new `argo stats`. See [release notes](docs/RELEASE_NOTES_v2.9.0.md) |
791
+ | **v2.8.9** | **Output slimming + richer, faster retrieval + 5 international & fact-check sources**: Default output 15.5KB→5.2KB (−66%, `--envelope` restores the full envelope); slow-network dispatch −36%. Five keyless sources added, taking sources to 237 and keyless to 198. See [release notes](docs/RELEASE_NOTES_v2.8.9.md) |
792
+ | **v2.8.8** | **Real-user fixes (#12 key-alias silence, #13 proxy-less fetch) + across-the-board speedups + sources 218 → 235**: One egress path for all traffic (`ARGO_PROXY`). Cold start 2.1s→0.55s; new `argo answer` and `argo watch` (page-change watching), web_general fallback 41%→20%. See [release notes](docs/RELEASE_NOTES_v2.8.8.md) |
793
+ | **v2.8.7** | **218 sources / 89 domains + three fetch direct-out channels + routing trigger discipline + macro zero-result fix**: 218 sources across 89 domains after 50 new ones (statutes, standards, security, academia, news, legal). Fetch probes llms.txt and `.md` variants; `--engine` takes comma lists again. See [release notes](docs/RELEASE_NOTES_v2.8.7.md) |
794
+ | **v2.8.6** | **Hedged racing + Zhihu three-source split + declarative language dispatch + reachability gate + academic search protocol**: First-engine grace-window racing lets fast engines pay one call. Zhihu global search and personal data are wired in, dead sources surface, geo tail latency drops 56%. See [release notes](docs/RELEASE_NOTES_v2.8.6.md) |
795
+ | **v2.8.5** | **Native DSH plugin tools + MCP off by default + Windows compat + quota self-healing + fetch deadline**: `argo_search` and `argo_fetch` are now first-class tools; MCP is on demand only. Windows support (`install.ps1`), quota self-healing, and `ARGO_FETCH_DEADLINE_S` for the fetch deadline. See [release notes](docs/RELEASE_NOTES_v2.8.5.md) |
796
+ | **v2.8.4** | **Local data fusion + multi-client MCP inject + structured search + Keenable**: Research L1 can draw on first-hand local data (`file_inputs`, `recompute`), and `argo mcp inject` wires clients from `mcp/clients.yaml`. Query normalization and `--include-local` added. See [release notes](docs/RELEASE_NOTES_v2.8.4.md) |
797
+ | **v2.8.3** | **Multilingual routing fix + in-process anysearch + weighted RRF**: ja/ko queries return the target language; DE/FR/ES/IT via anysearch; weakest-link downweight (paper 2508.01405). See [release notes](docs/RELEASE_NOTES_v2.8.3.md) |
798
+ | **v2.8.2** | **Windows + unified evidence semantics**: npm `os` limit removed; UTF-8 path against GBK crashes; main-package `dsh.bundle`; `wide_research` quality gate. See [release notes](docs/RELEASE_NOTES_v2.8.2.md) |
799
+ | **v2.8.0** | **Evidence loop + jobs v3 + dual weather**: `fetch_required` / `--verify`; `argo job`; wttr.in + Open-Meteo; Parallel / You.com. See [release notes](docs/RELEASE_NOTES_v2.8.0.md) |
800
+ | **v2.7.3** | Engine-layer HTTP client; TF-IDF activates 25 verticals; 70-domain TTL; bilingual verticals. See [release notes](docs/RELEASE_NOTES_v2.7.3.md) |
801
+ | **v2.7.2** | Logged-in professional search (ego-search, off by default); JA/KO no longer mix Chinese engines. See [release notes](docs/RELEASE_NOTES_v2.7.2.md) |
802
+ | **v2.7.1** | SSRF hardening + routing health-state fix. See [release notes](docs/RELEASE_NOTES_v2.7.1.md) |
803
+ | **v2.7.0** | **Vertical structured modal cards**: Built-in `bocha` / `bocha_ai` engines; the `modal_card` domain recognizes real-time cards in one place: train tickets, fuel prices, calendar, horoscope, vehicles, hospital registration. See [release notes](docs/RELEASE_NOTES_v2.7.0.md) |
804
+ | **v2.6.2** | Merged improvement lines: network-environment awareness, weighted RRF with semantic cache, adaptive engine disabling, content safety with query variants, vertical engines and ja-ko routing. See [release notes](docs/RELEASE_NOTES_v2.6.2.md) |
805
+ | **v2.6.1** | v2.6.0 fix release: routing collateral-damage fix (`capital of` no longer grabs fact_check); version sync. See [release notes](docs/RELEASE_NOTES_v2.6.1.md) |
806
+ | **v2.6.0** | **Multilingual search** (detect / engine params / cross-lang fallback); film·sports·geo·org·media verticals; recovery anti-pollution; capability families + matrix regression; ~120+ sources. See [release notes](docs/RELEASE_NOTES_v2.6.0.md) |
807
+ | **v2.5.1** | Thicker finance/macro/chemistry answer sources; engine tiers + combo budget; [v2.5.1 notes](docs/RELEASE_NOTES_v2.5.1.md) |
808
+ | **v2.5.0** | Install script + npx; rewrite decoupled from routing; hot-path cache; compact MCP |
809
+ | **v2.4.0** | Low-score route fallback + social mis-route filters; cache depth / soft hits; breakers & negative cache; `engine_outcomes` |
810
+ | **v2.2–v2.3** | Two-stage evidence, Chinese source table, content_signals, fetch stack, more engines |
811
+ | **v2.1** | Social engine layer (multi-platform UGC) |
812
+ | **v1.x** | Unified name Argo; multi-engine routing + two-layer cache |
886
813
 
887
814
  ---
888
815
 
889
- ## 贡献
816
+ ## Contributing
890
817
 
891
- 欢迎提 Issue 与 Pull Request。改路由或证据逻辑时,请尽量补对应测试:
818
+ Issues and PRs welcome. When you change routing or evidence logic, please add tests:
892
819
 
893
820
  ```bash
894
821
  python3 -m pytest tests/test_unit.py tests/test_multilingual.py -q
895
822
  python3 scripts/regression_p0p1.py --offline
896
823
  python3 scripts/matrix_search_eval.py --offline
897
- python3 scripts/ab_eval_p0p1.py # 可选,含在线实测
824
+ python3 scripts/ab_eval_p0p1.py # optional, online
898
825
  ```
899
826
 
900
- 提交前请确认:不含真实 API Key、本机绝对路径、账号 cookie 等敏感信息。本机 Skill 路径请写在 `installs.local.yaml`(已忽略)。
827
+ Before commit: no real API keys, absolute machine paths, or account cookies. Local Skill paths belong in `installs.local.yaml` (gitignored).
901
828
 
902
829
  ## License
903
830
 
@@ -909,7 +836,7 @@ Apache License 2.0 © 2026 [taxueseek](https://github.com/taxueseek)
909
836
 
910
837
  ---
911
838
 
912
- > 好的搜索不仅仅让你看得更多更广,能够消除信息差,找出你最关心的地方。
839
+ > Good search is not about seeing more—it is about concluding with confidence, and knowing when you still should not.
913
840
 
914
841
  <p align="center">
915
842
  <picture>
@@ -922,16 +849,4 @@ Apache License 2.0 © 2026 [taxueseek](https://github.com/taxueseek)
922
849
  </picture>
923
850
  </p>
924
851
 
925
- 如果 Argo 帮你下过一次更踏实的结论,[点个 Star](https://github.com/taxueseek/argo/stargazers) 让更多人看到它。
926
-
927
- ---
928
-
929
- ## 生态联动:与 Invest 系列投资技能集成
930
-
931
- 本引擎的财经垂直源(`eastmoney`、`nbs_stats`、`jin10`、`nbs`、`fred`、`eurostat`、`finviz` 等)已接入 [invest 系列投资技能](https://github.com/taxueseek/taxue-invest)。
932
-
933
- invest-cli 通过 `info`(`invest-cli info <词> --engine eastmoney`)与 `intent macro` 直接复用 argo 的财经 / 宏观 / 资讯取数,用于环节配额、低成本、多源数据,与 invest-cli 的结构化数据层(Wind / 盈米 / 东财 / yfinance / 天天基金)协同。
934
-
935
- > 最新版已完成 argo 数据与 invest 系列技能(v2.0.5)的集成。
936
-
937
- <!-- mcp-name: io.github.taxueseek/argo -->
852
+ If Argo has ever helped you reach a more confident conclusion, [give it a Star](https://github.com/taxueseek/argo/stargazers) to help more people find it.