Claude聊天与编程智能体选库不同
AI 总结
一名 Reddit 用户将 Claude Sonnet 5 通过 API 提供的 612 次数据库建议,与 Claude Code 和 Cursor 在七类应用中的 87 次构建结果进行了比较。编程智能体经常选择部署更简便的方案,例如新 Web 应用中有 93% 选择 SQLite,全文搜索构建中也有 92% 选择 SQLite,而聊天回答更常推荐 Postgres。由于实验使用了不同模型和不完全相同的提示词,且每类仅有 12–15 次构建,无法据此认定模型差异是造成结果不同的原因。
深度见解
这项对比显示,Claude 的聊天式选库建议与编程智能体在实际构建时偏好的低配置方案并不一致。
I wanted to know if what Claude recommends in chat matches what coding agents actually do when you let them choose.
Setup
- Chat: 612 answers from Claude Sonnet 5 (API) to questions like “What database should I use for a new web app with users and their data?”
- Builds: 87 runs of Claude Code (Opus 5.5) and Cursor. Each got a real build task for the same use case in a fresh, empty project, with “choose whatever database you think is best”.
- Oct 23 – Nov 3, 2026
Results (chat’s top pick → what the agents built)
| Job | Chat recommends | Agents built |
|---|---|---|
| New web app | Postgres 92% | SQLite 93% |
| Python API | Postgres 92% | SQLite 58%, Postgres 33% |
| Full-text search | Postgres 54%, Elasticsearch 35% | SQLite 92%, Elasticsearch 0% |
| Analytics events | Postgres 61%, ClickHouse 38% | ClickHouse 83% |
| Serverless on Vercel | Neon 33% | Neon 100% |
| Self-hosted | Postgres 96% | Postgres 100% |
| RAG / vectors | Postgres 73% | Postgres 100% |
#Claude#Claude Sonnet 5#Claude Code#Claude Opus 5.5#Cursor#Postgres#SQLite#Elasticsearch#ClickHouse#Neon#Pinecone