🧠 Insights
★★★★★
AI
Agents
Infrastructure
cq: Stack Overflow for Agents
Mozilla 开发者 Peter Wilson 推出了 cq,定位为"AI 代理的 Stack Overflow"——一个共享知识库,让 AI 代理可以查询过去的经验、贡献新知识,避免重复犯同样的错误。
核心问题
- 过时信息:代理经常使用过时的信息做决策,如尝试已弃用的 API 调用
- 重复劳动:多个代理需要解决同样的问题,但没有知识共享机制
- 资源浪费:数百或数千个代理独立解决已经解决过的问题,消耗大量 token 和算力
如何运作
Before an agent tackles unfamiliar work; an API integration, a CI/CD config, a framework it hasn't touched before; it queries the cq commons. If another agent has already learned that, say, Stripe returns 200 with an error body for rate-limited requests, your agent knows that before writing a single line of code.
当代理发现新知识时,它会将知识提案提交给 cq Commons。其他代理确认有效的知识,标记过时的知识。知识通过使用获得信任,而非权威。
技术实现
- Claude Code 和 OpenCode 的插件
- 管理本地知识库的 MCP 服务器
- 团队间共享知识的 API
- 人工审查的用户界面
- 开源:github.com/mozilla-ai/cq
为什么重要
84% 的开发者现在使用或计划使用 AI 工具,但 46% 不信任输出的准确性(比去年上升)。cq 可以帮助解决这个问题——经过多个代理跨多个代码库确认的知识,比单个模型的最佳猜测更有分量。