沉淀 · 把重复三次的事存成一键Distill · Turn the Third Repeat into One Keystroke.
跑通一次是运气,跑通三次就该沉淀。这章把一件本周重复了三次的操作从头固化:参数化成 Workflow、长流程写成 Notebook、给 agent 存一条 Prompt —— 再谈存了反而是负担的那类,以及 Drive 的月度体检。Once is luck; the third time deserves distillation. This chapter freezes one chore you repeated three times this week: parameterized into a Workflow, the long flow written as a Notebook, the agent task saved as a Prompt — plus what becomes a burden once saved, and a monthly Drive checkup.
跑通一次是运气,跑通三次是信号。这周你第三次敲同一条看日志的命令时,该意识到的不是「我记性真好」,是「这活该固化了」。Warp Drive 是跑通过程的归宿:命令存成 Workflow、长流程写成 Notebook、给 agent 的任务存成 Prompt、环境差异抽成变量。这章用一条主线走完整个固化动作,再谈什么存了反而是负担,以及 Drive 的月度体检。Once is luck; three times is a signal. When you type the same log-checking command for the third time this week, the realization shouldn't be 'what a memory I have' — it's 'this job should be frozen.' Warp Drive is where working runs land: commands become Workflows, long flows become Notebooks, agent tasks become Prompts, environment differences become variables. This chapter walks the whole freezing move as one main line, then covers what becomes a burden once saved, and a monthly Drive checkup.
— I
主线:把第三次看日志固化成一键The Main Line: Freeze the Third Log-Check into One Keystroke.
场景:staging 的 api 服务这周第三次出问题,你第三次敲 docker compose -f docker-compose.staging.yml logs --tail 200 api | grep -Ei "error|timeout"。命令你快背下来了 —— 这正是最该沉淀的时刻:足够常用,值得存;还没熟到烦,存的动作成本最低。1注 1Note 1Warp Docs · Warp Drive 概览 —— 截至 2026-08-06:Warp Drive 存 Workflows、Notebooks、Prompts、Environment Variables,实时同步,个人或团队共享;老的 YAML 文件 workflows 是 legacy —— 通过 Command Search / 命令面板无限期支持,但不再进 Drive。Warp Docs · Warp Drive overview — as of 2026-08-06: Warp Drive stores Workflows, Notebooks, Prompts, and Environment Variables, syncing in real time, personal or team-shared; legacy YAML file workflows are indefinitely supported via Command Search / the palette but no longer live in Drive.The scene: the staging api service has hiccuped for the third time this week, and you're typing docker compose -f docker-compose.staging.yml logs --tail 200 api | grep -Ei "error|timeout" for the third time. You've nearly memorized it — which is exactly when to distill: common enough to be worth saving, not yet so annoying that saving feels like a chore.1注 1Note 1Warp Docs · Warp Drive 概览 —— 截至 2026-08-06:Warp Drive 存 Workflows、Notebooks、Prompts、Environment Variables,实时同步,个人或团队共享;老的 YAML 文件 workflows 是 legacy —— 通过 Command Search / 命令面板无限期支持,但不再进 Drive。Warp Docs · Warp Drive overview — as of 2026-08-06: Warp Drive stores Workflows, Notebooks, Prompts, and Environment Variables, syncing in real time, personal or team-shared; legacy YAML file workflows are indefinitely supported via Command Search / the palette but no longer live in Drive.
01
认出信号:第三次,停手,别敲第四次Spot the signal: third time — stop, don't type a fourth
一次是探索,两次是巧合,三次是模式。Explore 阶段的脏命令不值得存;但当一条命令第三次出现,它的形状已经稳定 —— 变的只有环境名、服务名、行数。变什么,待会儿就参数化什么。Once is exploration, twice is coincidence, three times is a pattern. Dirty one-off commands from exploring aren't worth saving; but when a command appears for the third time its shape has stabilized — only the environment, service name, and line count vary. Whatever varies is what you parameterize.
02
块右键 Save as Workflow,参数化Block right-click → Save as Workflow, parameterize
在刚跑通的那个 block 上右键,选 Save as Workflow(agent 跑出来的结果同样有这入口)。把 staging 改成 {{env}}、api 改成 {{service}}、200 改成 {{lines}},各给默认值;名称和描述可以让 AI Autofill 起草(每次消耗 1 credit),自己再过一遍。存完它就在 Drive 里,实时同步。2注 2Note 2Warp Docs · Workflows —— 截至 2026-08-06:参数化命令,从命令面板、⌃⇧R 或 Drive 调用;入口包括 Block Actions 与 agent 结果里的 Save as Workflow;参数写作 {{arg}}(字母数字/-/_、不以数字开头),有 text 与 enum 两种类型;SHIFT-TAB 在参数间循环,同名参数多光标同步;AI Autofill 自动生成名称/描述/参数(每次消耗 1 credit);个人 alias 可配。Warp Docs · Workflows — as of 2026-08-06: parameterized commands invoked from the palette, ⌃⇧R, or Drive; entry points include Save as Workflow in Block Actions and agent results; arguments are written {{arg}} (alphanumerics/-/_ , no leading digit), in text and enum types; SHIFT-TAB cycles arguments, same-name arguments sync via multi-cursor; AI Autofill generates name/description/arguments (1 credit per run); personal aliases supported.Right-click the block that just worked and choose Save as Workflow (agent results have the same entry). Turn staging into {{env}}, api into {{service}}, 200 into {{lines}}, each with a default; let AI Autofill draft the name and description (1 credit per run), then review them yourself. Saved, it lives in Drive and syncs in real time.2注 2Note 2Warp Docs · Workflows —— 截至 2026-08-06:参数化命令,从命令面板、⌃⇧R 或 Drive 调用;入口包括 Block Actions 与 agent 结果里的 Save as Workflow;参数写作 {{arg}}(字母数字/-/_、不以数字开头),有 text 与 enum 两种类型;SHIFT-TAB 在参数间循环,同名参数多光标同步;AI Autofill 自动生成名称/描述/参数(每次消耗 1 credit);个人 alias 可配。Warp Docs · Workflows — as of 2026-08-06: parameterized commands invoked from the palette, ⌃⇧R, or Drive; entry points include Save as Workflow in Block Actions and agent results; arguments are written {{arg}} (alphanumerics/-/_ , no leading digit), in text and enum types; SHIFT-TAB cycles arguments, same-name arguments sync via multi-cursor; AI Autofill generates name/description/arguments (1 credit per run); personal aliases supported.
03
验证:⌃⇧R 调出,SHIFT-TAB 填参Verify: summon with ⌃⇧R, fill args with SHIFT-TAB
按 ⌃⇧R 搜 logs,回车,参数依次高亮 —— SHIFT-TAB 在参数间循环,同名参数改一处全改(多光标同步)。填 production / web / 500,跑通 —— 同一个 workflow 跨环境复用,这才是参数化的意义。写死成一条具体命令,它只够你这台机器用一次。Press ⌃⇧R, search logs, hit Enter, and the arguments highlight in turn — SHIFT-TAB cycles them, and same-name arguments edit in sync (multi-cursor). Fill in production / web / 500 and run — one workflow reused across environments, which is the whole point of parameterizing. Hard-coded into one specific command, it's good for a single run on your machine.
04
配套:长流程写 Notebook,agent 任务存 PromptCompanions: Notebook for the long flow, Prompt for the agent task
一条命令存 Workflow;「看日志 → 查进程 → 看最近错误 → 人工判断」这种多步排障,写成 Notebook(markdown + 可执行命令块,还能嵌入刚存的 Workflow);「读 staging 日志找 5xx 原因」这种反复交给 agent 的活,存成带参数的 Prompt。三样各就各位,这套排障就再也不靠记忆了。One command becomes a Workflow; a multi-step debug flow — check logs → check processes → recent errors → human judgment — becomes a Notebook (markdown plus executable blocks, embedding the Workflow you just saved); a recurring agent task like 'read staging logs and find the 5xx cause' becomes a parameterized Prompt. Each in its place, and this whole debugging routine never depends on memory again.
提示词Prompt让 agent 帮你做沉淀(它跑通的,它最会参数化)Have the agent distill for you (it ran it — it parameterizes best)
把刚才跑通的命令沉淀成 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.
— II
什么值得存,什么存了是负担What's Worth Saving, What's a Burden Once Saved.
Drive 存四样,关键的一层是它们能回头喂 agent:agent 默认自动取用你存的 workflow、notebook、规则作上下文,取用了会在对话里标 citation。你沉淀的不只是给自己看的手册,也是喂给发动机的燃料 —— 所以 Drive 的干不干净,直接影响 agent 靠不靠谱。4注 4Note 4Warp Docs · Drive as Agent Mode Context + Environment Variables —— agent 自动从 Drive 取用 Workflows、Notebooks、环境变量、Rules 与 MCP Servers 作上下文并以 citation 标注(Settings > Agents > Knowledge,默认开);环境变量分静态(存 Drive,不是密钥管理器)与动态(1Password / LastPass CLI 或自定义命令,Warp 只存取回命令、不存秘密)。Warp Docs · Drive as Agent Mode Context + Environment Variables — agents automatically pull Workflows, Notebooks, Environment Variables, Rules, and MCP Servers from Drive as context with citations (Settings > Agents > Knowledge, on by default); environment variables are static (stored in Drive — not a secret manager) or dynamic (1Password / LastPass CLI or a custom command — Warp stores only the retrieval command, never the secret).Drive holds four kinds, and the key layer is that they feed the agent back: by default it automatically pulls your saved workflows, notebooks, and rules as context, citing what it used in the conversation. What you distill isn't only a handbook for yourself — it's fuel for the engine, so Drive's cleanliness directly affects the agent's reliability.4注 4Note 4Warp Docs · Drive as Agent Mode Context + Environment Variables —— agent 自动从 Drive 取用 Workflows、Notebooks、环境变量、Rules 与 MCP Servers 作上下文并以 citation 标注(Settings > Agents > Knowledge,默认开);环境变量分静态(存 Drive,不是密钥管理器)与动态(1Password / LastPass CLI 或自定义命令,Warp 只存取回命令、不存秘密)。Warp Docs · Drive as Agent Mode Context + Environment Variables — agents automatically pull Workflows, Notebooks, Environment Variables, Rules, and MCP Servers from Drive as context with citations (Settings > Agents > Knowledge, on by default); environment variables are static (stored in Drive — not a secret manager) or dynamic (1Password / LastPass CLI or a custom command — Warp stores only the retrieval command, never the secret).
你手里是什么What you have
沉淀成Distill into
不要沉淀成Do not turn into
一条会重复的命令,只有路径/环境会变A repeated command where only path/env changes
存太多和存太少一样糟。一堆没人用的 workflow 比没有还糟:它让人不信任整个 Drive,连同 agent 从里面取的上下文一起不信。一条朴素的节奏 —— 每月第一个周一,五分钟,按下面这张单过一遍:Over-saving is as bad as under-saving. A pile of unused workflows is worse than none: it makes people distrust the whole Drive, and the context the agent pulls from it along with it. A plain cadence — first Monday of the month, five minutes, against this sheet:
一个月没人调用的对象:要么删,要么补上 description 让别人(和 agent)能用对。Objects uncalled for a month: delete them, or add a description so others (and the agent) can use them right.
重复检查:同一类命令只留一个参数化版本,不留三份近亲。Duplicate check: keep one parameterized version of a command class, not three near-copies.
危险命令检查:删除、deploy、生产写库不能无说明地躺在 Workflow 里。Dangerous-command check: delete, deploy, and production DB writes must not sit unexplained in a Workflow.
密钥检查:Environment Variables 里没有明文 secret;需要的都走动态变量。Secrets check: no plaintext secrets in Environment Variables; everything sensitive goes through dynamic variables.
范围检查:个人对象别误搬进 Team Drive —— 搬进去默认全团队可见可用。Scope check: no personal objects accidentally moved into Team Drive — once moved, the whole team can see and use them.
调用验证:随机抽三个 workflow,从 ⌃⇧R 调出跑一遍,跑不通的当场修或删。Invocation spot-check: pick three workflows at random, summon them via ⌃⇧R and run them; fix or delete whatever fails.
验收这一章 —— 主线那个「第三次」你自己也要抓到一次:Accept the chapter — you should catch one 'third time' of your own:
我认出了一条本周重复三次的命令,并用 Save as Workflow 存进了 Drive。I spotted a command repeated three times this week and saved it into Drive with Save as Workflow.
会变的部分都抽成了带默认值的参数,我能用 ⌃⇧R 调出、SHIFT-TAB 填参跑通。Everything that varies is a parameterized argument with a default; I can summon it with ⌃⇧R, fill args with SHIFT-TAB, and run.
一个多步流程写成了 Notebook,里面嵌了那个 Workflow。One multi-step flow is now a Notebook embedding that Workflow.
一条反复交给 agent 的任务存成了 Prompt。One recurring agent task is saved as a Prompt.
我知道 YAML 文件 workflows 是 legacy,新沉淀都走 Drive。I know YAML file workflows are legacy and new distillations go through Drive.
我给 Drive 体检定了一个月度提醒。I've set a monthly reminder for the Drive checkup.
跑通是一次性的,
存下来才是复利.
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