GitHub Copilot canvases:让 Agent 工作流可见可控
How canvases make agentic workflows visible, steerable, and cost-efficient
做 Agent 工作流的同学必看,作者给出了可复用的 canvas 设计模式和成本数据,还开源了两个实例,可以直接照着搭一个试试。
When I was in college, I joined the beta for one of the first versions of AI inline completions in VS Code. It felt like a game changer. Since then, GenAI has fundamentally changed software development: hybrid teams where agents and humans work in tandem, with the developer at the center as visionary and orchestrator. We are living in that transition right now.
大学时,我加入了VS Code中首批AI内联补全版本的测试。那感觉就像改变游戏规则。自那以后,生成式AI从根本上改变了软件开发:混合团队中,代理与人类协同工作,开发者作为愿景家和编排者处于核心位置。我们现在正经历这一转变。
As a natural byproduct of how fast innovation in GenAI has moved, we now have tools to help us plan, build, review, and ship code. But in the current state, many workflows still feel disjointed. Context gets lost across threads and surfaces, and too much time gets spent reviewing agent-generated work. Agents can produce changes faster than any human can review them, and most developer tools were not originally designed for multi-agent orchestration. It becomes easy to lose track of what ran, what changed, what was validated, and what still needs human judgment.
作为生成式AI创新速度的自然副产品,我们现在有了帮助规划、构建、审查和发布代码的工具。但在当前状态下,许多工作流程仍显得脱节。上下文在线程和界面间丢失,大量时间花费在审查代理生成的工作上。代理生成变更的速度远超人类审查的速度,且大多数开发者工具最初并非为多代理编排设计。很容易失去对运行了什么、改变了什么、验证了什么以及哪些仍需人类判断的追踪。
The GitHub Copilot app is a major step toward addressing this. One feature in particular that I’ve learned to love and use almost every day is canvases. Canvases let developers and agents interact on a durable, shared surface. Instead of treating chat as the only place where work happens, canvases make work visible, steerable, and approvable as it unfolds.
GitHub Copilot应用是解决这一问题的重要一步。我特别喜爱并几乎每天使用的一个功能是画布。画布让开发者和代理在持久、共享的界面上交互。画布不将聊天视为唯一工作发生地,而是让工作变得可见、可引导、可批准,随着进展逐步展开。
Chat is great for intent, but weak for durable execution
聊天擅长表达意图,但不利于持久执行
I still believe chat is one of the best interfaces we have for intent. It’s where you can think, refine, and direct. It’s fast and flexible, especially when the problem is still ambiguous.
我仍认为聊天是我们表达意图的最佳界面之一。在这里你可以思考、细化、指导。它快速灵活,尤其在问题尚不明确时。
But once an agent starts doing real work, chat becomes a long scroll of instructions, logs, pivots, and corrections. The important parts are technically there, but buried: the plan, decision points, validations, and approval moments. If you have to reconstruct all of that from history, you’re already paying a coordination tax.
但一旦代理开始实际工作,聊天就变成了一长串指令、日志、转向和修正的滚动记录。重要部分虽在,但被埋没:计划、决策点、验证和审批时刻。如果必须从历史中重建这一切,你已经在支付协调税。
Canvases solve that by giving workflows a home. They make state explicit and persistent. Humans can inspect and guide. Agents can update and progress. Both can stay aligned without constantly replaying context.
画布通过给工作流程一个家来解决这个问题。它们使状态明确且持久。人类可以检查并指导。代理可以更新并推进。双方无需不断重放上下文即可保持对齐。
The first build: Java Modernization Studio
首个构建:Java现代化工作室
One of the first canvases I built was Java Modernization Studio. Java modernization is exactly the kind of workflow where visibility and governance matter: assessment, planning, migration tasks, validation gates, and readiness to ship.
我构建的首个画布之一是Java现代化工作室。Java现代化正是那种可见性和治理至关重要的流程:评估、规划、迁移任务、验证门禁和发布就绪。
In a chat-only experience, those steps blur together. You can still move forward, but it gets harder to audit and harder to trust at scale, especially with multiple contributors. Teams keep asking the same expensive questions: What stage are we in? What decisions were made? What is blocked? What still needs human approval?
在纯聊天体验中,这些步骤会混在一起。你仍然可以推进,但审计变得困难,在规模上尤其是多贡献者时更难信任。团队不断提出同样昂贵的问题:我们处于哪个阶段?做出了哪些决定?什么被阻塞了?哪些仍需要人工审批?
The studio made each phase explicit and inspectable. Instead of parsing narrative history, teams could see operational state directly. Instead of guessing what happened, they could verify it. Human reviewers could focus on high-signal judgments while agents kept execution moving between checkpoints.
工作室使每个阶段都明确且可检查。团队无需解析叙述历史,就能直接看到操作状态。无需猜测发生了什么,他们可以验证。人工审查者可以专注于高信号判断,而代理在检查点之间保持执行推进。
Explore the Java Modernization Studio canvas >
探索 Java 现代化工作室画布 >
The second build: Site Studio
第二个构建:站点工作室
After that, I built Site Studio for a very different workflow: creating and managing personal site content. It’s content-heavy rather than migration-heavy, but the orchestration challenge is similar: section progress, iterative edits, review loops, and status transitions.
之后,我为一种非常不同的工作流构建了站点工作室:创建和管理个人站点内容。它更注重内容而非迁移,但编排挑战类似:部分进度、迭代编辑、审查循环和状态转换。
In a chat-only flow, content can drift quickly. A section gets revised, then revised again, and confidence drops in what is current. Feedback gets scattered, drafts repeat, and momentum slows because each iteration starts by rebuilding context.
在纯聊天流程中,内容可能迅速漂移。一个部分被修订,然后又修订,对当前内容的信心下降。反馈分散,草稿重复,动量减慢,因为每次迭代都从重建上下文开始。
Site Studio keeps that state durable. Section status is visible. Draft values are persisted as work happens. Human review points are explicit. The agent can keep moving while the human can steer, approve, or redirect without losing the thread.
站点工作室保持这种状态的持久性。部分状态可见。草稿值在工作发生时持久化。人工审查点明确。代理可以继续移动,而人类可以引导、批准或重定向,而不会失去线索。
Explore the Site Studio canvas >
探索站点工作室画布 >
The repeatable pattern
可重复的模式
Across both canvases, I found the same repeatable blueprint:
在两个画布中,我发现了相同的可重复蓝图:
- Define workflow states clearly.
- Surface the decisions that matter.
- Persist progress and drafts immediately.
- Keep explicit human approval points.
- 清晰定义工作流状态。
- 突出重要的决策。
- 立即持久化进度和草稿。
- 保持明确的人工审批点。
This shifts the model from prompt-by-prompt interaction to durable collaborative workflows. You stop treating each turn like a fresh start and start treating each workflow like a system with memory, structure, and control.
这会将模型从逐提示交互转变为持久的协作工作流。你不再将每个回合视为全新开始,而是将每个工作流视为具有记忆、结构和控制的系统。
Cost and efficiency: yes, canvases are an investment
成本与效率:是的,画布是一项投资
I also want to be explicit about cost: canvases can be an investment. For instance, Site Studio cost me about 2,000 AI credits, and the modernization canvas cost me about 3,000 AI credits. They take effort to design and shape well.
我也想明确成本:画布可能是一项投资。例如,站点工作室花费了我约 2,000 AI 积分,现代化工作室花费了我约 3,000 AI 积分。它们需要努力设计和塑造好。
But in the long run, especially for repeated workflows, that investment pays back. Durable surfaces reduce repeated prompting, reduce context loss, reduce unnecessary back-and-forth, and reduce rework. Over time, that can save both time and money while improving trust and throughput.
但从长远来看,尤其是对于重复性的工作流程,这种投入会得到回报。持久化的界面减少了重复提示、上下文丢失、不必要的来回沟通以及返工。随着时间的推移,这既能节省时间和金钱,又能提高信任度和吞吐量。
So for me, this is not “spend more tokens for nicer UX.” It’s “invest in better workflow architecture so recurring work becomes more efficient, predictable, and governable.”
所以对我来说,这并非“为了更好的用户体验而花费更多令牌”,而是“投资于更好的工作流架构,使重复性工作变得更加高效、可预测和可管理”。
Available now in awesome-copilot
现已在 awesome-copilot 中可用
The canvases I built—Java Modernization Studio and Site Studio—are available in awesome-copilot for anyone who wants to use them, adapt them, or learn from them.
我构建的画布——Java 现代化工作室和站点工作室——已在 awesome-copilot 中提供,供任何想使用、调整或从中学习的人使用。
If you are already using Copilot agents, a practical next step is to pick one repeated workflow and build a minimal canvas around it with /create-canvas. Start small, run real work, and iterate from actual usage. If it helps your team, contribute it back to awesome-copilot so others can benefit too.
如果你已经在使用 Copilot 代理,一个实用的下一步是选择一个重复的工作流程,并使用 /create-canvas 围绕它构建一个最小画布。从小处着手,运行真实工作,并根据实际使用情况进行迭代。如果它对你的团队有帮助,请将其贡献回 awesome-copilot,以便其他人也能受益。
We’re still early in this transition, but the direction is clear. Agents can accelerate execution. Humans provide vision, judgment, and accountability. Canvases are one way to make that partnership real, durable, and scalable.
我们仍处于这一转变的早期阶段,但方向是明确的。代理可以加速执行。人类提供愿景、判断和问责。画布是使这种伙伴关系变得真实、持久和可扩展的一种方式。
Build your own canvas with /create-canvas and contribute it back to awesome-copilot >
使用 /create-canvas 构建你自己的画布,并将其贡献回 awesome-copilot >
The post How canvases make agentic workflows visible, steerable, and cost-efficient appeared first on The GitHub Blog.
文章《画布如何使代理工作流程可见、可操控且成本高效》最初出现在 GitHub 博客上。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力