沉淀 · 把一次性变成可复用Distill · Turning One-Offs into Reuse.
你让 agent 跑通了一件麻烦事,下周还会再来一次。Warp Drive 是它的归宿:Workflows 存参数化的命令,Notebooks 存能跑的命令文档,Prompts 存给 agent 复用的自然语言任务,环境变量分环境注入 —— 个人攒成手册,团队共享成知识库,实时同步。这章讲什么值得存、什么存了反而是负担。You got the agent through a fiddly task; next week it comes back. Warp Drive is where it lands: Workflows store parameterized commands, Notebooks store runnable command docs, Prompts store natural-language tasks for the agent to reuse, environment variables inject per environment — a personal handbook, a shared team knowledge base, synced in real time. What is worth saving, and what becomes a burden once saved.
上一章你让 agent 跑通了一件麻烦事 —— 但下周它还会再来一次,你又得从头说一遍。Warp Drive 是这些跑通过程的归宿:把命令、文档、给 agent 的任务、环境变量存下来,个人攒成手册,团队共享成知识库,还能反过来喂给 agent。这章讲什么值得存、怎么存好、什么存了反而是负担。Last chapter you got the agent through a fiddly task — but next week it comes back, and you explain it from scratch again. Warp Drive is where those working runs land: save the commands, docs, agent tasks, and environment variables — a personal handbook, a shared team knowledge base, and context you can feed back to the agent. This chapter is what's worth saving, how to save it well, and what becomes a burden once saved.
— I
四种东西,一个归宿Four Kinds of Things, One Home.
Warp Drive 存四样:参数化命令、能跑的文档、给 agent 的任务、分环境的变量 —— 而且它们能回头喂给 agent。Warp Drive holds four things: parameterized commands, runnable docs, agent tasks, and per-environment variables — and they can feed back to the agent.Workflows 是命名保存的参数化命令;Notebooks 是能直接跑里面命令的文档;Prompts 是存给 agent 复用的自然语言任务;环境变量分静态和动态,注进 workflow 让同一条命令在生产、预发多环境复用。1注 1Note 1Warp Docs · Warp Drive 概览 —— 截至 2026-07-10,Warp Drive 是终端里的内置工作区,用来保存和共享 Workflows、Notebooks、Prompts 与 Environment Variables;对象实时同步,可个人或团队使用。Warp Docs · Warp Drive overview — as of 2026-07-10, Warp Drive is a built-in workspace in the terminal for saving and sharing Workflows, Notebooks, Prompts, and Environment Variables; objects sync in real time and can be personal or team-shared.四样都实时同步,个人或团队共享。关键的一层在最后:存在 Drive 里的东西能当 agent 的上下文,agent 会自动取用你保存的 workflow、notebook 和规则,取用了还会在对话里标注出处 —— 所以你沉淀的不只是给自己看的手册,也是喂给发动机的燃料。4注 4Note 4Warp Docs · Agent Mode Context —— 截至 2026-07-10,agent 自动从 Warp Drive 取用 Workflows、Notebooks、环境变量、Rules 与 MCP Servers 作为上下文,被引用的对象在对话里以 citation 标注,让个人与团队知识直接喂给 agent(Prompts 则是存给 agent 复用的参数化任务,见 Prompts 页)。Warp Docs · Agent Mode Context — as of 2026-07-10, agents automatically pull Workflows, Notebooks, Environment Variables, Rules, and MCP Servers from Warp Drive as context, and referenced objects appear as citations in the conversation, feeding personal and team knowledge straight to the agent (Prompts, per their own page, are parameterized tasks saved for agent reuse).Workflows are named, parameterized commands; Notebooks are docs whose commands you can run in place; Prompts are natural-language tasks saved for the agent to reuse; environment variables come in static and dynamic forms, injected into workflows so one command reuses across production, staging, and more.1注 1Note 1Warp Docs · Warp Drive 概览 —— 截至 2026-07-10,Warp Drive 是终端里的内置工作区,用来保存和共享 Workflows、Notebooks、Prompts 与 Environment Variables;对象实时同步,可个人或团队使用。Warp Docs · Warp Drive overview — as of 2026-07-10, Warp Drive is a built-in workspace in the terminal for saving and sharing Workflows, Notebooks, Prompts, and Environment Variables; objects sync in real time and can be personal or team-shared. All four sync in real time, personal or shared. The key layer is the last one: what's in Drive can serve as the agent's context — it automatically pulls in your saved workflows, notebooks, and rules, and cites what it used in the conversation — so what you distill isn't only a handbook for yourself, it's fuel for the engine.4注 4Note 4Warp Docs · Agent Mode Context —— 截至 2026-07-10,agent 自动从 Warp Drive 取用 Workflows、Notebooks、环境变量、Rules 与 MCP Servers 作为上下文,被引用的对象在对话里以 citation 标注,让个人与团队知识直接喂给 agent(Prompts 则是存给 agent 复用的参数化任务,见 Prompts 页)。Warp Docs · Agent Mode Context — as of 2026-07-10, agents automatically pull Workflows, Notebooks, Environment Variables, Rules, and MCP Servers from Warp Drive as context, and referenced objects appear as citations in the conversation, feeding personal and team knowledge straight to the agent (Prompts, per their own page, are parameterized tasks saved for agent reuse).
你手里是什么What you have
沉淀成Distill into
不要沉淀成Do not turn into
一条会重复的命令,只有路径/环境会变A repeated command where only path/env changes
存什么:把跑通的那一次留下What to Save: Keep the Run That Worked.
信号很简单:同一件事你做了第二次,就该把它存成 Workflow。The signal is simple: the moment you do the same thing a second time, it should become a Workflow.Workflow 以 YAML 保存,带参数和默认值,下次从命令面板一调、填参数就跑。选中后 SHIFT-TAB 在参数间循环;起同名参数时 Warp 自动多光标同步它们,改一处全改。2注 2Note 2Warp Docs · Workflows —— 参数化命令,带名字、描述、参数默认值,从命令面板或 Warp Drive 执行;以 YAML 保存、可共享。选中后 SHIFT-TAB 在参数间循环;同名参数会被多光标同步。Warp Docs · Workflows — parameterized commands with a name, description, and argument defaults, executed from the command palette or Warp Drive; saved as YAML and shareable. Once selected, SHIFT-TAB cycles through arguments; same-name arguments are synced with multiple cursors.A Workflow is saved as YAML with arguments and defaults; next time you call it from the palette, fill the arguments, and run. Once selected, SHIFT-TAB cycles through the arguments; when you give two arguments the same name, Warp syncs them with multiple cursors so editing one edits all.2注 2Note 2Warp Docs · Workflows —— 参数化命令,带名字、描述、参数默认值,从命令面板或 Warp Drive 执行;以 YAML 保存、可共享。选中后 SHIFT-TAB 在参数间循环;同名参数会被多光标同步。Warp Docs · Workflows — parameterized commands with a name, description, and argument defaults, executed from the command palette or Warp Drive; saved as YAML and shareable. Once selected, SHIFT-TAB cycles through arguments; same-name arguments are synced with multiple cursors.
把刚才跑通的命令沉淀成 Warp Workflow。
请给我:
1. workflow 名称;
2. 一句 description;
3. tags;
4. 哪些部分应该变成 {{argument}};
5. 每个 argument 的默认值和说明;
6. 哪些命令仍然需要人工确认,不该直接放进 workflow。Distill the command that just worked into a Warp Workflow.
Give me:
1. workflow name;
2. one-line description;
3. tags;
4. which parts should become {{argument}};
5. default value and description for each argument;
6. which commands still need human approval and should not go directly into the workflow.
把刚才跑通的命令沉淀成 Warp Workflow:
docker compose -f docker-compose.staging.yml logs --tail 200 api | grep -Ei "error|timeout"
请给我:
1. workflow 名称;
2. 一句 description;
3. tags;
4. 哪些部分应该变成参数(我看是 compose 文件名、服务名、tail 行数);
5. 每个参数的默认值和说明;
6. 哪些命令仍然需要人工确认,不该直接放进 workflow。Distill the command that just worked into a Warp Workflow:
docker compose -f docker-compose.staging.yml logs --tail 200 api | grep -Ei "error|timeout"
Give me:
1. workflow name;
2. one-line description;
3. tags;
4. which parts should become arguments (I think the compose file, the service name, and the tail count);
5. default value and description for each argument;
6. which commands still need human approval and should not go directly into the workflow.
比一次性命令更长的流程,存成 Notebook:markdown 文字加可执行命令块,命令块同样用 {{param}} 取参,CMD-ENTER / CTRL-ENTER 把它插进终端,还能嵌入已有 Workflow(Embedded Workflow)免得复制。3注 3Note 3Warp Docs · Notebooks —— 把 markdown 文字和可执行 shell 命令块组合成可运行文档;命令块用 {{param}} 取参,CMD-ENTER / CTRL-ENTER 插入到终端,可嵌入已有 Workflow(Embedded Workflow)免重复;常用于上手手册与排障 runbook。Warp Docs · Notebooks — combine markdown text with executable shell command blocks into a runnable document; blocks take parameters with {{param}}, CMD-ENTER / CTRL-ENTER inserts into the terminal, and existing Workflows can be embedded (Embedded Workflow) without duplication; commonly used for onboarding playbooks and debugging runbooks.上手手册、排障 runbook 就该是 Notebook —— 一份一周后还看得懂、还能直接跑的文档,而不是一段躺在群里的命令。For a flow longer than a one-off command, save a Notebook: markdown text plus executable command blocks, blocks taking parameters with {{param}}, CMD-ENTER / CTRL-ENTER to insert one into the terminal, and existing Workflows embeddable (Embedded Workflow) to avoid copies.3注 3Note 3Warp Docs · Notebooks —— 把 markdown 文字和可执行 shell 命令块组合成可运行文档;命令块用 {{param}} 取参,CMD-ENTER / CTRL-ENTER 插入到终端,可嵌入已有 Workflow(Embedded Workflow)免重复;常用于上手手册与排障 runbook。Warp Docs · Notebooks — combine markdown text with executable shell command blocks into a runnable document; blocks take parameters with {{param}}, CMD-ENTER / CTRL-ENTER inserts into the terminal, and existing Workflows can be embedded (Embedded Workflow) without duplication; commonly used for onboarding playbooks and debugging runbooks. Onboarding playbooks and debugging runbooks should be Notebooks — a doc that still makes sense and still runs a week later, not a command sitting in a chat thread.
把这次 agent 任务整理成可复用 Prompt。
保留:
- 目标;
- 需要 @ 的上下文;
- 只读/可写边界;
- 禁止命令;
- 验收标准;
- 失败时要如何停下。
把会变化的路径、环境、服务名改成 {{argument}}。Turn this agent task into a reusable Prompt.
Keep:
- goal;
- context that should be @-attached;
- read/write boundary;
- forbidden commands;
- acceptance criteria;
- how to stop on failure.
Turn changing paths, environments, and service names into {{argument}}.
把这次 agent 任务整理成可复用 Prompt:「读 staging 的 api 日志,找出最近一次 5xx 飙升的原因并给出修法」。
保留:
- 目标;
- 需要 @ 的上下文(@docker-compose.staging.yml 和 api 服务日志);
- 只读/可写边界(只读排查,不改文件、不重启服务);
- 禁止命令(重启生产、改数据库、deploy);
- 验收标准(给出原因 + 只读验证命令 + 待确认的修法);
- 失败时要如何停下(拿不到日志就记录输出并停下,不要瞎猜)。
把会变化的环境名 staging、服务名 api 改成 {{argument}}。Turn this agent task into a reusable Prompt: "read the staging api logs, find the cause of the latest 5xx spike, and propose a fix."
Keep:
- goal;
- context that should be @-attached (@docker-compose.staging.yml and the api service logs);
- read/write boundary (read-only investigation, do not edit files or restart services);
- forbidden commands (restarting prod, DB writes, deploys);
- acceptance criteria (give the cause + read-only verification commands + a fix to confirm);
- how to stop on failure (if logs can't be reached, record the output and stop, don't guess).
Turn the changing environment name staging and service name api into {{argument}}.
— III
别把 Drive 变成第二个 READMEDon't Turn Drive into a Second README.
存太多和存太少一样糟 —— 一个没人维护的 Drive,就是另一份过期的 README。Over-saving is as bad as under-saving — an unmaintained Drive is just another stale README.只存会复用的:一次性的探索别存,存了也是噪音。团队里更要克制 —— 一个跑得通、带描述和参数的 workflow,胜过一段口口相传的命令;但一堆没人用的 workflow 比没有还糟,因为它让人不信任整个 Drive,连同 agent 从里面取的上下文一起不信。4注 4Note 4Warp Docs · Agent Mode Context —— 截至 2026-07-10,agent 自动从 Warp Drive 取用 Workflows、Notebooks、环境变量、Rules 与 MCP Servers 作为上下文,被引用的对象在对话里以 citation 标注,让个人与团队知识直接喂给 agent(Prompts 则是存给 agent 复用的参数化任务,见 Prompts 页)。Warp Docs · Agent Mode Context — as of 2026-07-10, agents automatically pull Workflows, Notebooks, Environment Variables, Rules, and MCP Servers from Warp Drive as context, and referenced objects appear as citations in the conversation, feeding personal and team knowledge straight to the agent (Prompts, per their own page, are parameterized tasks saved for agent reuse).给 agent 的 Prompts 同理:把真正反复发生的多步任务存下来,不是把每句话都存。一条朴素的维护节奏:一个月没被人调用过的,要么删,要么补上描述让它能被别人(和 agent)用对。Save only what you'll reuse: don't save one-off exploration — saved, it's just noise. On a team, hold back even more — one working workflow with a description and arguments beats a command passed around by word of mouth; but a pile of unused workflows is worse than none, because it makes people distrust the whole Drive, and the context the agent pulls from it along with it.4注 4Note 4Warp Docs · Agent Mode Context —— 截至 2026-07-10,agent 自动从 Warp Drive 取用 Workflows、Notebooks、环境变量、Rules 与 MCP Servers 作为上下文,被引用的对象在对话里以 citation 标注,让个人与团队知识直接喂给 agent(Prompts 则是存给 agent 复用的参数化任务,见 Prompts 页)。Warp Docs · Agent Mode Context — as of 2026-07-10, agents automatically pull Workflows, Notebooks, Environment Variables, Rules, and MCP Servers from Warp Drive as context, and referenced objects appear as citations in the conversation, feeding personal and team knowledge straight to the agent (Prompts, per their own page, are parameterized tasks saved for agent reuse). Prompts for the agent are the same: save the multi-step tasks that truly recur, not every sentence. A plain maintenance cadence: anything not called in a month gets deleted, or gets a description so someone else (and the agent) can use it right.把上一章存的那个 workflow 再往前推一步:Push the workflow you saved last chapter one step further:
01
把它参数化、加标签Parameterize it and tag it
把写死的路径、环境、名字抽成带默认值的 {{argument}},加 tags,确认能从命令面板用关键词调出来。Pull the hard-coded paths, environments, and names into {{argument}} with defaults, add tags, and confirm you can summon it from the palette by keyword.
02
把一个长流程写成 Notebook runbookTurn one long flow into a Notebook runbook
挑一件你将来还要回看的多步流程(部署、排障、上手),写成 markdown + 命令块的 Notebook。Pick a multi-step flow you'll revisit (a deploy, a debug, an onboarding) and write it as a Notebook of markdown plus command blocks.
03
数一数 Drive 里有几个一个月没用过Count how many Drive items you haven't used in a month
一个月没碰过的,要么删,要么补上描述。让 agent 取到的上下文是干净的,它才靠谱。Anything untouched for a month: delete it or add a description. The context the agent pulls is only reliable if it's clean.
Drive 体检:一个月没人用的对象,要么删,要么补 description。Drive checkup: if an object has not been used in a month, delete it or add a description.
检查重复:同一类命令保留一个参数化版本,不留三份相似命令。Check duplicates: keep one parameterized version of a command class, not three near-copies.
检查危险命令:删除、deploy、生产写库不能无说明地存在 Workflow 里。Check dangerous commands: delete, deploy, and production DB writes must not sit unexplained in a Workflow.
检查密钥:Environment Variables 里不要共享明文 secret;需要密钥时走安全存储或让每个人自行配置。Check secrets: do not share plaintext secrets in Environment Variables; use secure storage or per-user configuration.
检查适用范围:个人对象别误搬进 Team Drive;搬进去就默认所有团队成员能看到和用。Check scope: do not move personal objects into Team Drive accidentally; once moved, teammates can see and use them.
跑通是一次性的,
存下来才是复利.
Getting it working is one-time,
saving it is compounding.
Aklman Library
— 讨论Discussion
讨论Discussion.
评论区初始化中…Initializing comments…
01 / 01
没有匹配结果No matches.
换个关键词,或按 Esc 回到页面Try another keyword, or press Esc to return