Bash is All You Need — 万物皆 CLI 的底层逻辑(中文深度综述)
中文圈对"Bash/CLI 即 agent runtime"浪潮最完整的综述。把 Forget MCP, Bash Is All You Need:MCP 正在重新发明 POSIX 的英文命题,补上了完整时间线、实证数据、资本市场维度(SaaS-pocalypse)和"坍缩-重建"哲学框架。一句话:中间软件层正在坍缩,整个 stack 正在为 Agent 重构,而 50 年前的 Unix Shell 恰好站在重构起点。
引爆点数据(Vercel d0 内部 Agent)
砍掉 80% 工具,只留一个 Bash Shell:
| 指标 | 复杂架构 | Bash 架构 | 变化 |
|---|---|---|---|
| 执行时间 | 274.8s | 77.4s | 快 3.5× |
| 成功率 | 80% | 100% | +20% |
| Token | ~102k | ~61k | 省 37% |
| 步数 | ~12 | ~7 | 减 42% |
"Grep is 50 years old and still does exactly what we need. We were building custom tools for what Unix already solves." — Andrew Qu(Vercel)
一、大厂集体转向 CLI 的时间线(2025 Q4–2026 Q1)
| 时间 | 玩家 | 动作 |
|---|---|---|
| 2025 Q4 | Anthropic | Claude Code = while loop + Bash tool;开源 Ralph Wiggum(Bash do/while 循环) |
| 26.01.12 | Vercel | 砍 80% 工具,开源 bash-tool,发"Bash is All You Need" |
| 26.01.29 | 华尔街 | IGV 软件指数暴跌(Covid 以来最大);MSFT 蒸发 $3600 亿 |
| 26.02.19 | Amp | "The Coding Agent Is Dead",自毁 VS Code/Cursor 扩展,All in CLI |
| 26.03.06 | 开源 Workspace CLI(gws),40+ skills 覆盖全 API | |
| 26.03.13 | Courier | "MCP vs CLI: why the terminal wins today" |
工程圈和资本市场在同一季度给出同一信号。
二、为什么 CLI 天然适配 Agent(最核心:训练数据)
| 维度 | CLI | MCP |
|---|---|---|
| 训练数据覆盖 | 50 年 man pages/SO/脚本,烤进权重 | 2024 末才有,几乎为零 |
| 推理成本 | 给个 --help | 塞完整 schema 进 context |
| 工具发现 | ls/which/--help | 需预先注册 |
"The terminal is a 50-year-old technology that accidentally became the best interface for AI agents." — Courier
调 MCP = 为模型已经知道的事情重新付费。
Unix 哲学 = Agent 最佳架构:一事一工具→模块化;文本通用接口→LLM 天生吃文本;管道组合→observe-decide-act-repeat 循环。
模型已不需要"框架"(Amp 最激进判断):"These new models barely need to be told how to act like coding agents anymore. They're now fully trained for that." → 瓶颈从工具侧转到了人侧(怎么组织代码库、描述任务、验证结果)。