AmpAmp
Amp 是 Sourcegraph 出的前沿编码 agent,CLI + 云端 orb + runner 三执行面。
发一句提示就能合上笔记本继续跑。
它多模型前沿路由,Oracle 提供「第二意见」模型。
Amp is Sourcegraph's frontier coding agent, spanning CLI + cloud orbs + runners. Send a prompt and you can close your laptop while it keeps working. It routes across frontier models, with the Oracle as a second-opinion model.
适合与不适合When to use it, when not to
- 想让 agent 在云端机器(orb)里长跑、合上笔记本仍继续的人
- 需要多模型前沿路由与 Oracle 第二意见的团队
- 已在终端或 VS Code 系编辑器里工作、想顺带接 IDE 的人
- 需要企业级管控(SSO、审计日志、MCP allowlist、零数据保留)的组织
不适合假定「执行动作前一定会先问」的场景。
官方原文明确:
官方原文:"By default, Amp does not ask for approval before running tools"
审批要靠自定义 policy plugin 自己加。
Four kinds of use fit:
- People who want an agent that keeps working in a cloud orb after you close your laptop
- Teams that need multi-model frontier routing plus the Oracle second-opinion model
- People already working in a terminal or a VS Code-family editor who want IDE integration
- Organisations needing enterprise controls (SSO, audit logs, MCP allowlists, zero data retention)
Not a fit for anyone who assumes tools are gated by approval — officially, "By default, Amp does not ask for approval before running tools". Approval takes a custom policy plugin that you write yourself.
中文生态China availability 国产 / 国内可直接用 / 备案状态 · 快照domestic / direct access / CAC filing · snapshot 2026-10-20
- 出品属地Origin
- 国外出品foreign-made 国外主体(网信办公示名单未见对应备案主体)。foreign entity (no matching filing entity in the CAC registry).
- 国内使用Direct access
- 大陆可直连direct OK 官网直连实测 200。official site measured 200 direct.
- 备案状态CAC filing
- 未见于备案名单not in filing list:未见于网信办公示名单(2026-10-20 检索 13 批附件,https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm);该产品未面向大陆公众提供服务,备案不适用。not in the CAC public registry (13 batch attachments searched 2026-10-20, https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm); the product does not serve the mainland public, so filing does not apply.
备案信息以网信办《生成式人工智能服务已备案信息》公示名单为准(按批次滚动更新,本站只抄编号不解读);「大陆可直连」是本站从大陆网络直连实测的结果,不是厂商承诺。GitHub 类站点当日实测有波动,口径写在依据里。Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.
固定坐标系Fixed coordinate system
8 个维度dimensions, 与同分区其他对象逐项可比each comparable item by item against others in the same section.
- 模型与开放条件Model & openness
多模型前沿路由,按任务分档而非锁死单模型。
官方 Why Amp 原文:
"Multi-Model: GPT-5.6, Claude Fable 5, fast models—Amp uses them all, for what each model is best at."
四个 Agent Modes 是能力预设、不是固定模型选择器:
low/medium/high/ultra。官方原文:"Modes are capability presets, not fixed model selectors"
路由可以自定义。它看已连接的 provider 订阅、workspace 限制与模型可用性, 来决定主 agent 与 Oracle 怎么走。
Oracle 是「第二意见」模型。
high档主 agent 用 GPT-6 Astra(medium),Oracle 用 Claude Fable 5.1。 低 / 中 / ultra 档 Oracle 默认 GPT-6 Astra。BYOK 已全线开放(官方 news 注明 2026-09-30 起对所有档)。
支持 OpenRouter、Bedrock、Google Cloud Agent Platform、 Azure Foundry、Vercel / Cloudflare AI Gateway、Ollama Cloud、OpenCode Go 与自定义端点 URL, 并可用 ChatGPT 订阅。
⚠ 官方源之间存在不一致。 安全参考页仍写:
官方原文:"Amp doesn't support Bring Your Own Key or self-hosted deployments"
这与定价页/news 的 BYOK 口径相反,引用时以定价页为准。
- 运行位置Where it runs
混合:本地 Client + 云端 Server。 线程还可跑在三种执行面。
官方安全参考把 Amp 拆为两个组件。
Amp Client 在本地:管代码与上下文管理、本地设置、本地线程历史。
Amp Server 是 ampcode.com 上的多租户云服务,GCP 托管。 它做认证、线程同步与 LLM 代理。
线程执行面三分:本地、orb(Amp 在云端为你创建的机器)、 runner(你自己的机器,
amp --no-tui --runner-id <id>)。CLI 用
--executor local|orb|runner:<id>选执行位置。另有 Web 与 macOS / iOS 应用。同一 agent、同一线程到处可用。
- 本地文件Local files
Client 只带局部上下文,官方明确不索引整库。
官方安全参考原文:
"The Amp Client and Amp Server do not see, store, clone, or index the entire codebase"
它只把「被选作上下文的代码片段 / 整文件」 (partial code data)发给 Server。
工具侧有
Read/create_file/edit_file/glob/Grep/Bash等。IDE 集成(VS Code、Cursor、Windsurf、Zed、Neovim): 连上后 Amp 能看到当前打开文件与选区。 它还能通过你的 IDE 编辑文件、支持完整 undo。
- 关机后的任务Tasks after shutdown
有真后台形态——orbs。
官方首页原文:
"Run agents anywhere and they keep working after you close your laptop"
每个线程一台 orb(已含你的代码、工具与插件),可关机续跑、可从手机继续。
runners 在你自己机器上:
--share可把 runner 共享给 workspace, 别人也能从 ampcode.com 在它上面起线程(机器需开机)。定时与自唤醒:官方 manual 有 Schedules。
官方演示视频显示 agent:
官方原文:"uses automations to wake itself up"
也就是按计划醒来查生产。
- 工具与扩展Tools & extensions
内置工具 + 子代理 + 插件 + MCP,四层都有官方页。
内置工具:
amp tools list可见的有Bash、Read、create_file、edit_file。 另有glob、Grep、web_search、read_web_page、Task、todo_*、undo_edit。子代理 / 工具:
oracle(复杂推理第二意见)、 Librarian(跨仓库检索。可读全部公开 GitHub 代码,也可读你的私有仓库)、 Painter(GPT Image 生成与编辑)、Search、Read Thread。插件系统:可写自定义 policy plugin(含 permissions 插件示例)。 也可自定义 agent mode 与 subagent。
MCP:本地(
amp.mcpServers,command / args / env,stdio)与 远程定义(存 ampcode.com,url / headers)。传输含 SSE 与 Streamable。
认证含自动 OAuth、bearer、Amp ID token、Workload Identity。
官方建议把 MCP server 打包进 skills(
mcp.json)。这样能保持工具列表精简。- 上下文与记忆Context & memory
threads 是核心单位,可保存、检索、分享。
官方 Why Amp 原文:
"Threads: You can save and share your interactions with Amp."
可 @ 引用别的 thread(URL 或
@T-...)。 也可按关键词 / 文件 / 仓库 / 作者 / 日期检索历史 thread。 workspace 支持 thread sharing 与 multiplayer。AGENTS.md 分层:官方列 cwd / 父目录 / 子树、
$HOME/.config/amp/AGENTS.md、 系统级/etc/ampcode/AGENTS.md等层级。 子树 AGENTS.md 在读到该子树文件时纳入。它还支持 @-mention、globs 条件加载,并给出从 CLAUDE.md / .cursorrules 的迁移方式。
压缩:官方 Models 页把 Compaction 列为「Context summarization for long threads」。
- 权限与限制Permissions & limits
默认不审批——这是最需要点出的一条。
官方 Tools 页原文:
"By default, Amp does not ask for approval before running tools."
官方给出的替代是自定义 policy plugin (可分发为 workspace 级 plugin)。
workspace 的 MCP server 需要显式批准。
.amp/settings.json里的 server 首次检测时提示awaiting approval,需amp mcp approve。全局设置与
--mcp-config传的不需要。数据面较硬:官方自动检测并脱敏常见密钥。 (AWS / GCP / Azure、GitHub / GitLab、OpenAI / Anthropic、Stripe / Slack / npm 等, 替换为
[REDACTED:amp]),但承认是 best-effort。线程数据存于 ampcode.com(GCP)。默认不用你的数据训练(企业档永不可开)。 删除线程后数据 30 天内移除;Enterprise 提供零数据保留(ZDR)。
订阅与 BYOK 额度是两回事。自带 Key 或订阅时,无 Amp token 费用。
- 适合什么任务Best for
适合四类用法:
- 想让 agent 在自己的云端机器(orb)里长跑、合上笔记本仍继续的人
- 需要多模型前沿路由 + Oracle 第二意见的团队
- 已在终端或 VS Code 系编辑器里工作、想顺带接 IDE 的人
- 需要企业级管控(SSO、审计日志、MCP allowlist、零数据保留)的组织
头号误解Top misconception
- 以为默认会在执行工具前请求批准——官方明确默认不审批Assuming tools run only after approval — officially, Amp does not ask for approval before running tools.
- 以为有独立 VS Code 扩展——实际靠 CLI + ide connect 接入(VS Code/Cursor/Windsurf/Zed/Neovim)Expecting a standalone VS Code extension — integration is via the CLI and
ide connect(VS Code / Cursor / Windsurf / Zed / Neovim). - 把订阅当成全部开销——orbs 按分钟、超量按 credits 另计Treating $20/mo as the whole cost — orbs are billed by the minute and overage is charged against credits.
未知项清单Known unknowns
- Individual 档 Megawatt 与 Gigawatt 的具体额度差:官方定价页以切换形式呈现,未并列给出(orb 时长额度见官方页;报价按 D9 口径不存)
- 官方定价页 FAQ 的问答正文:本页只抓到问题标题,具体答复内容未展开
- orb 的并发上限与单次最长时长:官方未说明(已查 docs/orbs 与定价页)
- 自托管部署:官方安全参考称为空(明确不支持),未提供任何自托管路径
证据来源Evidence sources
判断可回到以下一手源复核。本站核验日Every judgement can be rechecked against the primary sources below. Verified on 2026-10-08,内容更新日content updated on 2026-10-08。
| 类型Type | 名称Name | 链接Link |
|---|---|---|
| docs | Amp · 官方首页(frontier agent / orbs,2026-10-08 取到) | https://ampcode.com/ |
| pricing | Amp · 官方定价页(Hobby 免费 / Individual / Teams / Enterprise 四档;报价按 D9 口径不存) | https://ampcode.com/pricing |
| changelog | Amp · Chronicle(官方更新日志,含 2026-09-24、2026-08-25 等条目) | https://ampcode.com/chronicle |
| docs | Amp · Owner's Manual(Agent Modes / AGENTS.md / Orbs / CLI / Pricing) | https://ampcode.com/manual |
| docs | Amp Docs · CLI(安装、--executor、IDE 连接、Streaming JSON) | https://ampcode.com/docs/cli |
| docs | Amp Docs · Tools(Oracle / Librarian / Painter、默认不审批) | https://ampcode.com/docs/tools |
| docs | Amp Docs · MCP(本地/远程、OAuth、Amp ID token、workspace 审批) | https://ampcode.com/docs/customize/mcp |
| docs | Amp · Security Reference(Client/Server 架构、密钥脱敏、数据保留、模型训练) | https://ampcode.com/security |
实测记录Measured runs
本站尚未完成实测。测试协议见 tasks/_protocol.md。
实测建议:重点验三处。
- ① 无审批默认下跑工具的越权边界(是否只靠 policy plugin 兜底)
- ② orb 的「合上笔记本继续跑」与暂停计费规则(官方称 5 / 20 分钟阈值)
- ③
amp --execute ... --stream-json在脚本 / CI 里的可用性(官方称尽量兼容 Claude Code 格式)
核验说明
confidence: partial 的原因:大部分维度都已从官方页核到。
具体是运行面、执行面、provider / 模式、MCP 接入、权限与数据面。
没核到的是两处。一是 Individual 档 Megawatt / Gigawatt 两级的具体额度差, 二是官方定价页「Questions & Answers」问答正文。
前者官方以切换形式呈现、未页面并列给出;后者本次抓取未展开。故不给 verified。
两处需标注的官方源不一致:
- ① 安全参考页仍写「不支持 BYOK 与自托管」,与定价页 / news 的 BYOK 口径相反(以定价页与新近 news 为准)
- ② 任务给的 npm 包名是
@sourcegraph/amp,而官方安装文档当前给的是@ampcode/cli(官方标注 not recommended),两者以官方文档为准
本轮核到的官方页:首页、定价页、Chronicle、Owner's Manual、docs/cli、docs/tools、docs/customize/mcp、Security Reference。
相关条目Related entries
- Goose同为 CLI 形态,对照「纯本地进程」与「云端 orb 长跑」两种运行面
- Codex CLI同为多 provider 终端 agent,对照权限默认与 MCP 传输
- Claude Code CLI同为前沿编码 agent,对照审批机制与数据策略
- Deep AgentsDeep Agents另一层 · 自己搭(进阶)Other layer · Build your own (advanced)
本页由This page is generated from the ai-agent-guide 数据层生成(CC BY 4.0)。data layer (CC BY 4.0).
方法论与坐标系定义见仓库内 METHODOLOGY.md。