跳到主内容
精选80Latent Space(RSS)技巧与观点

Matt Pocock 发布 /wayfinder 技能

The /wayfinder Skill: Navigating the “Fog of War” of Planning

原文
推荐理由

做 Agent 编排的同学必看,Pocock 把规划阶段的上下文管理拆成了地图、工单、会话三层,还给了 grilling/prototype/research/task 四种工单类型,直接照着搭就能缓解长任务规划失控的问题。

We’re currently developing a new series about skills, with the aim of giving you a regular supply of new skills to use in your projects. We’re kicking things off with an interview — and a super-useful skill — featuring Matt Pocock, whose “AI Skills for Real Engineers” project has over 220,000 stars on GitHub. He also talks about these skills to 347,000 subscribers on his YouTube channel.

我们目前正在开发一个关于技能的新系列,旨在定期为你提供可在项目中运用的新技能。我们以一次访谈作为开场——并附带一项超级实用的技能——主角是 Matt Pocock,他的“AI 技能助力真实工程师”项目在 GitHub 上已获得超过 22 万颗星。他还在拥有 34.7 万订阅者的 YouTube 频道上谈论这些技能。

Pocock recently released a new skill called /wayfinder. Its purpose is to help you and your agent figure out a project where the end state isn’t entirely clear. Or as Pocock put it in our interview, /wayfinder helps you navigate “the fog of war,” where you have a project but “you can’t quite decide everything right at the start.”

Pocock 最近发布了一项名为 /wayfinder 的新技能。它的目的是帮助你和你的代理理清一个最终状态并不完全明确的项目。或者正如 Pocock 在我们的访谈中所说,/wayfinder 帮助你在“战争迷雾”中导航,即你有一个项目,但“你无法在开始时就把所有事情都确定下来”。

The following interview has been slightly condensed for readability, so you can read it, absorb Matt’s insights, and then test out /wayfinder for yourself!

以下访谈为了便于阅读略有删减,因此你可以阅读它,吸收 Matt 的见解,然后亲自测试 /wayfinder!

Latent Space: What were the goals of wayfinder?

Latent Space:wayfinder 的目标是什么?

Pocock: What I noticed is I was doing a lot of work with AFK agents [Away From Keyboard] and trying to schedule in a ton of work so that my agents could run virtually overnight. I would just plan a bunch of stuff, and then I would create a spec and then turn that spec into tickets. And I had a really well-developed set of skills for how to turn work into scheduled stuff that agents could just crack on.

Pocock:我注意到的是,我做了很多与 AFK 代理(离开键盘)相关的工作,并试图安排大量工作,以便我的代理可以几乎整夜运行。我会计划一堆事情,然后创建一份规格说明,再将这份规格说明转化为任务工单。而且我有一套非常完善的技能,用于将工作转化为可安排的任务,让代理能够直接着手处理。

But [...] I was finding the planning stage really onerous, because I would have to be constantly thinking about my session management. Like, how many tokens am I into my context window? How deep am I going here?

但是 [...] 我发现规划阶段非常繁重,因为我必须不断思考我的会话管理。比如,我的上下文窗口中有多少 token?我在这里要深入多少?

Matt Pocock’s wayfinder skill, as documented in GitHub

Matt Pocock 的 wayfinder 技能,如 GitHub 中所记录

I didn’t want to feel constrained in the planning stage anymore. I wanted an orchestrator layer that would basically say, okay, whatever you want to plan, I’m going to handle the planning sessions for you. I’m going to split this out into multiple different threads, do prototyping, do research and pull it all back together, so that you don’t feel constrained in the planning anymore.

我不想再在规划阶段感到受限。我想要一个编排层,基本上可以说,好的,无论你想规划什么,我都会为你处理规划会话。我会将其拆分成多个不同的线程,进行原型设计,进行研究,然后将其全部汇总,这样你在规划时就不再感到受限。

And then your specs can be even more detailed, and you can just whack off an AFK agent to go and do tons more work.

然后你的规格说明可以更加详细,你就可以直接派一个 AFK 代理去做更多的工作。

Latent Space: What was the design process of coming up with this skill?

Latent Space:构思这项技能的设计过程是怎样的?

Pocock: I had this kernel of an idea of, what if I didn’t have to manage the handoffs? What would that look like? And then, what would it look like to have some kind of centralized document to have all of those pieces together?

Pocock:我有一个初步的想法,如果我不必管理交接会怎样?那会是什么样子?然后,如果有一个某种集中式文档,将所有那些部分放在一起,又会是什么样子?

Whenever you’re thinking about context management — because that’s really what a skill is, you’re managing the context of the agent you’re working in — you need to think about the information flow. So what I wanted to think about is, what if a grilling session could manage other grilling sessions? What would that look like?

每当你思考上下文管理时——因为技能本质上就是管理你所处代理的上下文——你需要考虑信息流。所以我想探讨的是,如果一个烧烤会话能管理其他烧烤会话,那会是什么样子?

Well, the first step to that is, what does the grilling session that’s being managed need? What does the child need in that situation? So the child probably needs to understand a vague overview of what else is happening, and they need their specific task.

那么,第一步是,被管理的烧烤会话需要什么?在这种情况下,子会话需要什么?所以子会话可能需要了解其他正在发生的事情的大致概览,以及它们的具体任务。

So there, you’ve got two documents. You’ve got a map — which is all of the rest of the stuff, all the decisions that have already been made. And then you’ve got the specific ticket that goes into the actual session. And what you notice there is that those words are very precise.

所以,那里有两份文档。你有一张地图——包含所有其他内容,所有已经做出的决定。然后你还有一张具体的票,进入实际的会话。你会注意到,那些词语非常精确。

From wayfinder documentation

来自 wayfinder 文档

You’ve got the map, and you’ve got the ticket, and you’ve got the session. And once you’ve got the kernel of an idea, you then need to come up with the words for that idea. Because once you’ve figured out the words, then those entities can be really clearly mapped out by the agent.

你有地图,有票,还有会话。一旦你有了想法的核心,你就需要为那个想法想出词语。因为一旦你弄清楚了词语,那么代理就能非常清晰地映射出那些实体。

Because if you just call everything a ticket, or if you just refer to it in different ways in different places, then it’s going to be really confused and you’re going to get strange behavior. Whereas if you use these very specific, what I call leading words, to lead the agent to understand exactly what each part is, and you’ve understood what the information flow is, then you’ve got your skill.

因为如果你把所有东西都称为票,或者在不同地方用不同方式引用它,那么它就会非常混乱,你会得到奇怪的行为。而如果你使用这些非常具体的、我称之为引导词,来引导代理准确理解每个部分是什么,并且你理解了信息流,那么你就有了你的技能。

Latent Space: What kind of use cases do you think wayfinder would be useful for?

Latent Space:你认为 wayfinder 对哪些用例会有用?

Pocock: Well, I’ve been using it for all sorts of stuff. I’ve been using it to actually plan courses as well. In wayfinder, there are different types of tickets.

Pocock:嗯,我一直在用它做各种事情。我实际上也在用它来规划课程。在 wayfinder 中,有不同类型的票。

So you’ve got grilling tickets, which are just a grilling session. Then you’ve got prototype tickets for creating prototypes, research tickets for creating [and doing] research, and then task tickets — which are really broad…basically, just anything the human needs to do that the agent can’t do. And so once you think about that, you realize, OK, I can apply that to anything.

所以你有烧烤票,那只是一个烧烤会话。然后你有用于创建原型的原型票,用于创建[和进行]研究的研究票,还有任务票——它们非常宽泛……基本上,就是任何人类需要做但代理无法做的事情。所以一旦你考虑到这一点,你就会意识到,好吧,我可以把它应用到任何事情上。

One really key idea in wayfinder is the ‘fog of war’. So this is the concept of, you can’t quite decide everything right at the start.

wayfinder 中一个非常关键的概念是‘战争迷雾’。这是指,你无法在开始时就把所有事情都决定好。

I decided to test /wayfinder on a project to rearchitect my personal website. Here’s the initial project set-up, in this case using Claude Code.

我决定在一个重新架构个人网站的项目上测试 /wayfinder。这是初始项目设置,在这种情况下使用了 Claude Code。

You can make certain decisions, and those certain decisions sort of lead you there and push further out into the fog of war — kind of like Warcraft III style, exploring the map. And once I had the idea of ‘fog of war’ and ‘map’, I realized those two terms actually work really nicely together, and it really leads the agent into the right idea. So I’ve been using it for engineering, for non-engineering stuff, for course planning, all sorts.

你可以做出某些决定,而这些决定会引导你前进,进一步深入战争的迷雾——有点像《魔兽争霸III》的风格,探索地图。一旦我有了‘战争迷雾’和‘地图’这两个概念,我意识到这两个词实际上配合得非常好,而且它确实能引导智能体走向正确的思路。所以我在工程、非工程事务、课程规划等各种事情上都一直在使用它。

Latent Space: This concept of the fog of war — it’s weird to consider what you don’t know that you don’t know. Maybe LLMs are good at capturing that.

潜在空间:这种‘战争迷雾’的概念——思考你不知道自己不知道的事情,确实有点奇怪。也许LLM擅长捕捉这一点。

Pocock: I feel like with the grilling stuff that I’m still working on, that captures an idea that you don’t know stuff, but maybe the agent can contribute something and illuminate a part of the room that you don’t quite understand yet.

波科克:我觉得对于我仍在研究的‘拷问’功能,它捕捉到了这样一个想法:你有些东西不了解,但也许智能体能贡献一些东西,照亮你尚未完全理解的房间的一部分。

And wayfinder is just sort of an extra layer on top of that.

而‘寻路者’只是在那之上的一层额外功能。

Working through my website rearchitecture project using /wayfinder. There’s 20+ years of content to re-organize!

使用/wayfinder处理我的网站重构项目。有20多年的内容需要重新组织!

Latent Space: Yeah, and there’s all these artifacts. How much time do you spend teaching the model all this terminology?

潜在空间:是的,而且有所有这些工件。你花了多少时间教模型所有这些术语?

Pocock: For the last few months, I’ve been pretty obsessed with terminology — and finding the right terms for certain things. I’ve put together, I haven’t actually put it out yet, but it’s an AI coding dictionary — of basically all the terms in AI coding. It’s in this beautiful graph that you can explore and understand exactly what an agent is, exactly what a harness is, exactly what a model is, blah blah blah.

波科克:在过去的几个月里,我一直非常痴迷于术语——以及为某些事物找到合适的词汇。我整理了一份,实际上还没发布,但这是一本AI编程词典——基本上涵盖了AI编程中的所有术语。它以一个漂亮的图形呈现,你可以探索并确切理解什么是智能体、什么是工具框架、什么是模型,等等等等。

I’ve redone all my courses to use that dictionary and make it really solid. And then all of my skills use a consistent dictionary as well. So they’re all working off the [same] assumptions, the same leading words.

我已经重新制作了我所有的课程,使用那本词典,让它非常扎实。然后我所有的技能也都使用一致的词典。所以它们都基于相同的假设、相同的引导词来运作。

I realized that I needed a ubiquitous language between me and the agent. Between me and the agent, there is a communication barrier. And that’s what I’m trying to do with my skills all the time, is try to find the right words.

我意识到我需要一种我和智能体之间的通用语言。在我和智能体之间,存在沟通障碍。这就是我一直在通过我的技能努力实现的目标,就是找到合适的词汇。

And agents are really good at showing you the opportunities for different wording — really good at domain modeling, actually.

而且智能体非常擅长向你展示不同措辞的机会——实际上非常擅长领域建模。

Latent Space: When do we directly use the grill-me skill, versus wayfinder?

潜在空间:我们什么时候直接使用‘拷问我’技能,而不是‘寻路者’?

Pocock: Use ‘grill me’ in cases where you feel like you can plan the whole thing in a single session, and you need to align before you go. So most small features will fit into this. Most stuff where you can see the path ahead of you, but you just want to make sure the agent is on board, ‘grill me’ will work with that.

波科克:在你觉得可以在一次会话中规划完整个事情,并且需要在开始前对齐的情况下,使用‘拷问我’。所以大多数小功能都适合这个。大多数你能看清前方路径,但只是想确保智能体跟得上你的情况,‘拷问我’都能胜任。

Via wayfinder documentation

通过wayfinder文档

For stuff where you don’t know the path ahead, for stuff where you can feel the fog of war in front of you, use wayfinder. You’re gonna find your way with wayfinder. So that’s how it works.

对于前方路径未知的情况,对于你能感受到战争迷雾笼罩在前方的事物,使用wayfinder。你将借助wayfinder找到方向。这就是它的运作方式。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近