← все видео

Pi to Pi: Two-Way Agent Orchestration with the Pi Coding Agent

IndyDevDan · 2026-05-18 · 34м 52с · 41 785 просмотров · YouTube ↗

Топики: ai-loop-engineering

🎧 Аудио

📝 Summary

model=deepseek-v4-flash · prompt=summary-v7 · 10 265→2 667 tokens · 2026-07-20 12:03:18

🎯 Главная суть

Pi to Pi — это двунаправленная peer-to-peer коммуникация между агентами без единого оркестратора. Агенты становятся равноправными участниками, могут обмениваться запросами и ответами, что позволяет решать задачи, требующие координации на разных устройствах, специализации по контексту и сохранения безопасности данных (PII). В отличие от однонаправленного делегирования, Pi to Pi даёт плоскую иерархию, где лучшая информация побеждает, а не команды сверху.


Проблема текущих многоагентных систем

Большинство существующих паттернов — делегирование суб-агентам, очереди сообщений (message queue), цепочки агентов (agent chains) — передают информацию в одном направлении: сверху вниз. Даже если ответ возвращается, поток остаётся однонаправленным. Это ограничивает гибкость: лучшие идеи, которые находятся на нижнем уровне (у инженеров с «boots on the ground»), не доходят до принятия решений. В корпоративной среде это аналогично жёсткой иерархии, где ценные знания застревают из-за недостатка полномочий. Плоские структуры (как в NVIDIA или стартапах) эффективнее — именно такой подход реализован в Pi to Pi.


Пример 1: Воспроизведение бага с production с защитой PII

У автора есть production-база данных на Mac mini: часть пользователей теряет доступ к Pro-функциям. Чтобы исправить ошибку, нужно воспроизвести её на локальной dev-машине (M5 MacBook Pro). Проблема: в production есть персональные данные (PII), которые нельзя утекать. Поднимаются два агента: prod (с редукцией — он не выдаёт PII никому) и dev. Prod-агент знает структуру базы, dev-агент запрашивает «affected slice» с PII-stripped. Через Pi to Pi они обмениваются сообщениями: dev отправляет запрос, асинхронно ждёт ответа, получает данные с обезличенной информацией. В результате репродукция бага готова, PII не раскрыто, оба агента остаются сфокусированными на своих задачах (prod не выходит за свои границы).


Пример 2: Создание нового sandbox-скилла с помощью двух агентов

У автора есть готовый скилл для E2B (агентский sandbox). Нужно создать аналогичный скилл для exe.dev (другая платформа). Поднимаются два агента: один знает E2B (все команды, нюансы), второй должен построить новый скилл. Они работают по принципу «водитель — навигатор»: exe.dev-агент задаёт вопросы, E2B-агент отвечает, уточняет особенности. После тщательного сравнения (выявили 10 расхождений, включая поддерку browser tool, образов контейнеров, команду cp) exe.dev-агент создаёт feature parity doc и генерирует сам скилл. Это позволяет переносить функциональность между платформами, сохраняя фокус каждого агента на своей предметной области.


Контекстная специализация — ключ к производительности

Просто «кинуть всё в один агент» — плохая идея. Даже с 5-миллионным контекстным окном вероятность ошибки растёт, когда в одном агенте смешиваются несвязанные задачи. В примере с E2B/exe.dev агент E2B уже занял ~100K токенов (10% от 1M на GPT 5.5) только на описание функций своего скилла. Если бы оба инструмента описывались в одном агенте, контекст был бы вдвое больше, а шанс ошибки выше. Специализированный контекст — «focused agent is a performant agent». Pi to Pi позволяет каждому агенту держать только свою область, а необходимый обмен происходит через короткие сообщения.


Техническая реализация: два варианта расширения

Система состоит из четырёх базовых инструментов:

Автор предоставляет две версии расширения (в кодовой базе Pi vs Cloud Code):

  1. Comms — локальная версия для одного устройства (общение через общую память/файлы)
  2. Comms net — сетевая версия на базе лёгкого BUN-сервера, который принимает HTTP-запросы между агентами на разных машинах (Mac mini, MacBook Pro, облачные VM). Оба расширения — постоянные, не требуют поднимать/опускать суб-агентов.

Плюсы Pi to Pi


Минусы и риски


Сочетание разных моделей даёт синергию

В демонстрации используются одновременно GPT 5.5 (в E2B-агенте) и Claude Opus 4.7 (в exe.dev-агенте). Каждая модель обучена по-разному, имеет свои сильные стороны: GPT 5.5 склонен к максимально полным ответам, Opus более целенаправленный (goal-oriented). Когда такие агенты общаются, система в целом превосходит каждого из них по отдельности — как «код + агент сильнее кода», так и «агент 1 + агент 2 сильнее одиночного агента». Это не просто параллельный запуск, а координация с перекрёстной проверкой (validator pattern, который автор описывал в предыдущих видео).


Валидация и перекрёстная проверка

Во втором примере агент exe.dev после создания скилла отправляет feature parity doc обратно E2B-агенту с просьбой проверить. E2B-агент находит 10 неточностей (например, отсутствие аналогов некоторых команд) и отправляет исправления. Такой «peer review» повышает качество результата и снижает риск ошибок при автоматической генерации кода. Это пример того, как два специализированных агента выступают валидаторами друг для друга, не требуя вмешательства человека.

📜 Transcript

en · 6 791 слов · 89 сегментов · clean

Показать текст транскрипта
What's up, engineers? IndieDevDan here. I have a simple question for you. What's better than one GPT 5.5 PI coding agent? You guessed it, two GPT 5.5 PI coding agents. Let's push it further. What's better than two isolated side-by-side GPT 5.5 agents? Sure, you could add another agent. Sure, you could change the model, but we can do much better than this. What about two GPT 5.5 agents that actually work together what about three agents that work together with unique models what about four models so here we have four pi coding agents and none of them is the orchestrator instead they're equals they're co-workers ping every agent in this video we'll understand what type of agentic engineering we can achieve if we gave our agents a true two-way communication channel. By the end of this video, you'll have a simple yet powerful way to coordinate your multi-agent systems. This gives us a powerful flat agent hierarchy where the best information wins, where the best ideas win, and where your agents can truly coordinate together to outperform each other alone. Let's talk about pie to pie, two-way agent communication. So let's go ahead and reset here. Let's dehype this a little bit. Let's close our agents. As you can see, one by one, as we close them, they leave the chat room, they leave the communication pool. We've got a production database on my Mac mini and this. production database has an issue. Some Pro2 users are getting locked out of Pro features. So in order to fix this issue, I need to reproduce it on my local developer environment. This is a common engineering workflow. You don't fix things in production, you fix things on your developer environment and you deploy through staging and then eventually it hits production. The trick here is there is sensitive information on my Mac mini production environment here and I can't leak. any PII while I'm fixing this issue. We're not vibe coding here, we're doing real engineering work in production systems. Our Pi to Pi agent to agent communication system is perfect for this. So I'll put up two agents here, one on my Mac mini, the production server, and one on my M5 MacBook Pro, my dev machine. We'll do jcoms2 and we'll give this a name, this is going to be production, jcoms1. named Deb. We'll run some basic pings to make sure both agents are up and online. And then I'm going to paste in a production prompt here. This is a prod gatekeeper agent. It has a production database it's working with that's been seeded. We're not going to recreate it or anything. And you have a teammate. And then key piece here, we have PII inside of this production code base that we're not going to break. This is personal, identifiable. information. So our production agent understands the system, it understands what's available, and it knows that it's not going to expose any information to any other agent on the network. Okay, and now our developer agent is going to get to work, we need to reproduce this issue locally. Here's our developer prompt, the key here is this bring the affected slice from production over with PII stripped into your local dev DB so an engineer can reproduce the issue locally. First, in order to reproduce a production database issue, you need the production data. Here's where the magic happens. Our agent sees the peer on the network, right? It knows that it has connection to a prod agent, and now it's going to start working through things. So it's going to send a message, it's going to send a prompt, and it's going to get returned an ID, a message ID. Our agent can now await this message, and our production agent, as you can see here, is getting to work on the production side but it's getting to work with all redactions applied right it's not going to expose any personal identifiable information our agents are going to work back and forth here not as individual agents not as a sub agent not as workers right they're going to work together as a team It's a simple, beautiful pattern, and it really reflects how great work is done. And so our agent is learning about the local DB. It's making sure that it's clean and it's starting to sync things while keeping everything PII safe, right? So this is yet another place where if you engineer things properly, if you prompt things properly, you can do extraordinary things in your agentic systems. There are endless use cases. for agents that actually communicate and work together. You can see there we got another message back and this process is going to continue. So we're going to let our agents cook here. I want to take the time to like highlight why agent to agent communication is so important and highlight of course, once again, why the pie coding agent is really the only way that you get this level of control out of your agents here. I think the most important thing to start with here is understanding the current problem, right? Agents can't talk to each other. We know that there is sub-agent delegation and sub-agent prompting, right? And this is a great pattern. It's a great start. Like if you agree with this statement, we are just scratching the surface of what the true developer experience looks like for agentic engineering, right? We don't really even know what that form factor is. I think very clearly in terminal agents is going to be the kind of focal point, the center point, but everything around that. from the agent harness to how we manage contacts models agent scale tools this is all a work in progress so if we're not exploring the state space of what's possible with our agent communication and other agentic workflows and patterns we're going to be stuck in the normal distribution, the very beginning of what's possible. So subagents, very important, very cool, but this is just the beginning, right? When you push further, you can find a message queue, and this is what the Cloud Code agent Teams uses. So you have one agent that kind of sets up all the message queue, and then it serves as a message broker between agents. Another great powerful pattern, you then have things like agent chains, where you have a deterministic setup workflow that have individual nodes of agents. When you combine this with code, you get powerful AI developer workflows or blueprints or representations of agents plus code. This is a very, very powerful framework because it adds determinism into the process, right? At any one of these steps, you can insert code and it'll enhance what your agents can do. So very powerful stuff here, right? But there's a problem with this. As you can see in every one of these workflows, it is traveling information in basically one direction and it's always a top-down way. Even if the information comes back, it's a one-way stream. right it's never bi-directional so what's the solution it's quite simple let your agents talk to each other right prompt response and then prompt response okay peer-to-peer not orchestrator to worker changes things Here, agents are equals. They're not parent and child. And this unlocks, of course, bi-directional flows of information. Okay? Just two agents communicating to each other. As you can see here, our agents are still working together to figure out these issues, to really work through how to perfectly reproduce the production slice, but you can push this across devices and across multiple agents, right? And this looks like exactly what you'd imagine, right? Now we have three agents in the network, you might have a researcher coder planner, these can be anything under the sun. In our case, we have a prod agent and we have a developer agent talking to each other across the network, okay, but you can just keep scaling this up, right? And at some point, it's going to be harmful, right? Like there is a limit to how useful this is. I'm not just trying to sell you the upside here. There's downsides to every approach. Great engineering is all about managing trade-offs. At some level, you're not going to want to use this pattern anymore. And at some level, adding agents doesn't help anything. But there is certainly a useful level to this where you want that bi-directional agent to agent communication, where it's very, very useful to have every agent have access to every other agent. Okay. And so why is this useful? Right. Let's really hit on this. At the core of this, it comes down to information hierarchies. If you have a traditional software engineering job, you work at a company that has a hierarchy, right? For one reason or another, there is someone at the top, okay? And information usually travels downstream, commands travel downstream, objectives travel downstream. And then it hits the person, usually the engineers who are actually building the thing, right? And oftentimes the best information, the best decisions The best awareness about the system is all the way down here, right? It's on the worker level, right? It's you and I, the engineers with their boots on the ground every single day, putting in the work to understand the system, understand the objectives, and then actually building it, right? The best information is oftentimes down here. When you have these hierarchical information systems, And I'm speaking in a generic way. It doesn't just need to be about the job. It doesn't just need to be in a career setting. But just information structures like this, oftentimes the best ideas are down here. They get stuck down here because they don't have the right title. They don't have the right authority. They don't have the right say. Right. And you've you know, you've probably heard this. Right. But the best companies, the best structures are. flat, where there's communication happening on every single level where everyone can just talk to the other to get the job done, right? NVIDIA is really famous for this, very flat reporting structures. Of course, Jensen at the top commanding that insane company, but then he has very few direct reports and then it spans from there, right? But startups are famous for this, right? You have very, very flat structures. All the best information systems are flat. Why is that? It's because you get valuable information. wins always over titles and politics. Ideas die in hierarchies. So that's why this is so important. And maybe you think I'm anthropomorphizing this too much. Maybe you think I am trying to apply something where it doesn't belong. I completely disagree. I think when you really boil things down, everything is a system. And a key part about every system is that there is flows of information. inside of systems and how things flow, how the structures, the nodes and the actors in the system communicate information matters, right? This matters because oftentimes the best ideas are down here. They're at the bottom level. And so this means that as much as you can, you want to have flat hierarchy structures. Okay. But on a functional level, we can see that this is useful for other reasons as well. We have cross device, agent to agent communication, right? We have a production service, say this is in the EU, right, where everything has to be redacted, everything has to be perfect, and nothing can escape the device, but you still need to fix things, right? We still need to do real engineering work. So this is a great system, we have redacted information properly, transferred it to our developer machine. And as you can see here, the repro is ready, the bug has been imported. Okay, PII is clean. Okay, so legitimate engineering work happening here. Obviously, this is not a real production server. I'm using this as an example. And now I can go ahead debug, look at my code, look at this slice of the production database that has been reproduced from production. And now we can actually resolve the bug and our agents are really great at communicating information like this. And that's exactly what they've done. Okay, so we have very simple two-way bi-directional agent-to-agent communication. If I needed to, I could come in here and validate that everything looks good on the production agent side, right? Do one final check with the dev agent PI safe. The issue has been pretty pro we can talk to any side that we need to and they can then communicate together to get the job done so i hope you can see the value proposition of this i can see why agent-to-agent communication is useful even if you don't think that the flat information hierarchies are more performant for making sure that the best ideas are the ones that always win this is great because now we have simple multi-agent communication on different devices okay and whenever we need to you know let me be super clear about this whenever we need to i can add an agent to the pool so if i type j comms Let's use four. I think that's the GLM agent. You can see GLM added here, and now it is part of the pool, right? So fantastic. How else can we use this? Agent to agent communication. It seems very powerful. We're not just delegating work, which is in its own right, a very powerful communication pattern, right? This isn't a replacement. This is another option for your agentic engineering. We can solve other problems with it, right? Let's walk through another example. So let's fire up a E2B agent. And in fact, let's open up a new project here, Sandbox. Same deal, jcoms2 and name exe-dev-agent-project-sandbox. So we're just getting our agents off. this network. This is a different pool to communicate in, right? So we still have our previous set there. And you can actually see that this work here was done. PII is safe. All the findings are there. So we verified by having our production agent prompt or developer agent. Fantastic. Here we got the pass. Everything looks great. Both context windows are sharp and focused. There's no spillover between issues. This system has completed successfully. So I've been using the E2B agent sandbox tool for quite some time now. It's been a great tool. It's also expensive and it has some downsides. Like there's a limit to the total duration that you can have your agents up in a sandbox. You have to pause them to manage that. So I've been looking at exe.dev as a new agent sandbox tool to replace or use additionally right next to E2B. And so this is another agent sandbox tool. It's got a couple of different benefits. I'll link both of these in the description for you. But the idea here here is I already have my E2B agent in this sandbox skill, right? So I have agent sandboxes and this is my E2B skill where I can just quickly spin up an agent sandbox that my agent can fully own and operate on my behalf. We've talked about agent sandboxes on the channel in the past. I'll link those in the description for you as well. But what I want to do here is spin up a brand new skill. for exe.dev that mirrors and matches and has feature parity to my e to b agent skill and anything that doesn't match i want to know about it right i want to understand the feature differences but i want my agent to fail forward i want the skill to be built so that i can prototype and experiment with it right away okay so i don't just want a simple research comparison i want a new skill i can use that has feature parity with my existing skill. That's exactly what I'm going to prompt here. In my e2b agent, I'm going to fire this off. You're the e2b agent. Your teammate is exe.dev. They'll be building this skill against exe.dev. persistent VM platform, your job is to answer their questions. Okay, so we have a teammate set up specifically to understand this feature set, it's building up a sandbox, it's reminding itself of all the features. And when this completes, I'm going to kick off the exe.dev agent to communicate, work with and sync up a brand new skill. You know, a lot of the agent to agent communication and multi agent orchestration comes down to expanding your context window in a useful way such that your agents can specialize what they're focused on. Okay. A lot of engineers do think that you just throw everything in one agent, wait for the models to get better, wait for that 5 million context window, and then all your problems will be solved. I don't agree with this approach at all. I think you should lean on the models. You should expect them to get better. You should plan for that in your products and services. But at the same time, you should be learning how to focus your agents on one problem so that the chance that they cause an issue, so that the chance something goes wrong drops down. to near zero. And how can you do that? You can do that by having focused context windows. Okay. and by effectively specializing your agent to focus on one problem and one problem only spinning up and comparing two different tools with likely very similar APIs is going to get the context window pretty big. You can see here this agent is loading, refreshing itself on all of the E2B agent skill functionality, right? You can see sandbox remove, download dir, so on and so forth. We're almost at 10% context already. That's 100K tokens. Okay, if you're using agents on a daily basis, you understand this fact, right? A focus agent is a performant agent. And the more you add to that context window, the higher the chance something goes wrong is specifically when you start muddying unrelated context together. Okay, this is the art of context engineering. It's not just getting all the right things. It's getting just the right things. This agent is booting up, it should be complete pretty soon here. And then we can prompt our exe.dev to create this new skill so that we can boot up brand new sandboxes for exe.dev and we can really see what this is all about moving forward it's not just about these two sandbox tools right it's about every sandbox tool moving forward and our ability to deploy agents to understand the tools to understand the technology and then deploy them into valuable use cases on our behalf so we can use this system over and over and over we can compare the features between every specialized agent i hope you get the point right? If it's all making sense, you know, make sure you drop a like, this is like really our bread and butter on the channel. We're scaling our compute to scale our impact. It's all about scaling up what our agents can do and focusing our agents to solve real business problems on our behalf via agentic engineering, not vibe coding. We're not shooting prompts and not looking. We know what our agents are doing. Okay. And this just stacks up on previous videos we've had on the channel where we're making our agents secure. We're not letting them crush production assets when they should not be able to. We're adding security to our bash tool when they need it. Just like in last week's video, we're preventing catastrophic commands from running. And then, you know, we're letting our agents rip on all the tools, all the skills, all the commands that we actually want our agents to execute, right? As you can see here, a lot of that sandbox tool running our agent is understanding what it can do here. And soon it's going to write this presentation file for us. And this is one of the great things and one of the annoying things. about GPT 5.5, this model really chews up tokens and it just goes and goes and goes to really get you the most comprehensive result possible. Whereas I found that Opus 4.7 will do that as well, but it also will really just focus on the goal, right? I think Opus is more goal oriented and really focuses on accomplishing the goal. If you prompt it wide enough. to capture more of that state, more of that scope. It'll certainly capture that as well. But here we go. We're getting that inventory file that really compresses all the observations. Now we should be able to kick off our exe.dev agent pretty soon here. There you go. Nice write-up. Look at that detailed write-up of all the features, inputs and outputs, the commands, E2B quirks. This is great. And this was part of the prompt. We wanted, at the end, a feature inventory. And this is going to allow our exe.dev agent to really map everything out one-to-one. And again, like focus context is so important here, right? In tactical agent decoding, it's so important. This is an entire tactic. We talk about this for an entire lesson. A focused agent is a performant agent. We have 20% context of the 1 million context window, GPT 5.5, focus on just understanding this tool and understanding the skill and this whole sandbox system. Okay, so there we go. Validating its work, making sure that that file exists. and now we're going to boot up our exe.dev agent there we go perfect so it's all primed it's all good to go now we're going to fire off this prompt inside of our exe.dev agent and actually haven't run this before so i'm really curious to see how how this executes and how well this mirrors so you're the exe.dev agent there is no agent sandbox exe dev skill yet your job is to build one Okay, so there's the purpose. And then your reference target is this existing skill here, which your teammate understands is already standing by to answer questions about. You're the driver of this collaboration. E2B will not initiate. You reach out. So I'm setting this up so that in this specific scenario, I want my exe dev agent to be the one driving this. I'm giving a couple skills, fire crawl, meta skill to really build on this. And then we have our clear deliverable. So I want that new skill, right? And I'm making it super clear here. A new working skill that mirrors the slash. Asian sandboxes against exe.dev primitives. And I also want a feature parody document just like the E2B Asian has as well for us. Okay. And so it's starting to get to work here. Grabbing all the docs is going to start building the skill and this is the Opus 4.7 running in the PI Asian harness. This is going to be some pretty fantastic results as this gets to work here. So right now it's gobbling up all the documentation, starting to stack up that proper context. And at some point here, it's going to begin its communicating with our exe dev agent here. So there it is. We have live access confirmed, ssh, exe.dev. It's now checking out all my VMs, no current VMs set up yet, but my agent is going to go through this process, figure everything out, and it has all the documentation and it has the feature parity it's trying to get equal to. Okay. So this is a really great way to, in general, you know, it doesn't really matter what agent-to-agent communication system you're using. This is a great way to mirror systems together, right? In the age of agents, we're going to have 100 different services available to us for agent sandboxing and frankly, you know, for agent harnessing cloud databases, Terso, things like NeonDB. And a lot of them are going to be swappable, right? Composable. And so this is a great pattern. Once you have one skill against one specific service, you can quickly create a feature parity document and then build. directly against another service. Agent to agent communication is a great way to do that because you get that focus agent context window and then your agent can just quickly communicate when they need to. But let's go ahead and dig a little bit deeper into this system, right? Like how does the system really work? There's four tools here. There's basically no magic. It's really simple. You list all the agents on the network, send command where you send the prompt and then optionally you can await a response, right? Sometimes you send off a Slack message. and you're just sending useful information to someone or confirmation or something, and that's it. But if you need to, you can await the response. You can check in on the message. You can do a block wait, or you can do a non-blocking pull. I have two versions of this that's going to be available to you. You can see our agents are starting to chat together here. I'll have two versions of this available to you. Both are going to be available in the Pi versus Cloud Code code base. This is a code base that has been live for quite some time, and it's where I posted and shared a lot of extensions from simple to complex across multiple different agent harness use cases for the PI agent harness. All right. So the whole idea here is just to hedge against Cloud Code, the agent encoding market leader, and get control of the agent harness. This code base builds on that very idea. I'm going to add these two extensions. for you into this code base. And so, you know, what are these two extensions? We can just go ahead and crack these open here, comms version. So this is the non-network version. This operates on a single device, but then we have a comms net where we basically boot up a simple, simple, simple lightweight BUN server here that accepts a request over the network. And you can imagine we have a simple set that let the agent connect, get messages, list agents, process events, so on and so forth here, right? This is a very simple implementation, secure it, make it more legitimate. for your specific use case. Every piece of code you see now, I really think it's really about read and adapt, right, through your agents at it and have them transform it for your specific use case and always understand the code. 25% here on our ETB agent. See, it just responded directly here. Okay, looks good. Browser, okay, SBX tool. Nice. So it looks like exe.dev agent was asking about the browser tool. All three questions cleanly answered. Quick recap. templates versus images okay so confirm partial support let's see captured artifacts arbitrary container images okay browser two primary files zero e2b import fix drop in portability great snapshot no e2b equivalent cp is unique to exe.dev okay so there we go here it's writing that feature parity doc this is looking great yeah nice looks like we had a couple chats here to showcase everything sent this to you to be why now the parity has their claims is to flag as many e2b claim that's wrong before i bake them into the new skill very cool okay very nice so our agents here are doing the work that i would do myself, which is validate the claims, right? This is something we talked about in the verifier agent video we did a couple of weeks ago, where you have an agent basically double checking all the claims and all the statements that the primary agent is making to make sure that they're right. This is a really powerful pattern. I like to run my PI agents. my primary PI agent with a validator on top of it, which basically, you know, increases the tokens used. But in exchange, it saves me time because the validator is validating everything my agent just said, right? It makes sure that everything it said is actually true. And then it also makes sure that the work it said it did is exactly what was done. I'll link that in the description as well. There we go. There's a nice write back to our exe.dev agent. Looks like it's asking for a recursive flag there too. Wow, so much detail here. Like in the side here, this is great. way to just watch these models work together, right? GBT 5.5, Claude 4.7, gave them a decent size prompt, maybe 80 lines each and a skill. And now they're just like, hashing it out, recreating this new skill. And this is, again, just one of millions and millions of different ways to coordinate agents to work toward a goal to work towards something, right? So okay, so we got 10 corrections from that exchange, right? This is a valuable exchange of information, 10 corrections. There's a couple comments in my videos recently, especially when I talk about multi agent orchestration, some engineers probably a decent amount of vibe quarters as well asking why can't you just do all this in one agent, you certainly can, you certainly can but you have to remember that a couple things there is a limit to the context window the more problems the more different problems apis systems you put into that context window your error rate will go up okay this is just a fact if you don't believe that you don't understand that do more research on the context window okay and then second with every unique model that you add to your system right i'm running claude right next to gpt 5.5 these models are trained in a completely different way they have different rl loops running on top of them putting these agents together creates something greater it creates a system that outperforms either of them alone just like code plus agent beats either alone unique agent one plus unique agent two communicating beats either alone right and and that's like really the gift and really the value proposition of multi-agent orchestration it's not just the 10 parallel agents you boot up to like write all those files or generate all those images at the same time it's doing serious engineering work where your agents are checking in on each other double checking the work coordinating on a solution so on and so forth Okay, so that's the idea. And so we got one more message coming back here. Hopefully this wraps it up. And yeah, look at this, like Opus is just being really, really great here with the verification. So please reread the doc and either send review complete or flag remaining issues. Right. So this is just like, you know, it's teamwork, right? This is teamwork. Okay, sign off one. non-blocking knit okay and then after this we can proceed with uh scaffolding so there we go so yeah it's loading that meta skill this is my skill that helps me create skills i'm gonna let this cook comment down below if you're interested in my agent sandbox skills the etb skill or this new exe.dev skill and i'll add it to this code base but that's the idea right it's it's it's simple yet it's very very important okay now you know, quickly just talking about pros and cons of the system. Every system has pros and cons. If you don't address them, you'll be exposed to them. What are the pros here? It's just an agent, right? I just can at any time now boot up two agents, three agents, five agents on my device, my Mac mini, my M4, right? My cloud VMs, all my services, all my servers. I can just boot up an agent now with the extension, have them connect, have them talk to each other. It's just an agent. It's that simple. I should say it's just an agent. and extension. It's permanent. Okay, there's no, you know, no sub agent delegation, no spin up or spin down, no resume. Claude has this resume flag where you can reboot the agent. These are just agents in the terminal. That's it, right? Customizable, right? End to end. Obviously, this is like a key value prop of why I keep talking about the PyCoding agent and why I keep bringing it up. The state space of agentic engineering is unknown. You know, the way I see this is only 1% of it has been discovered and understood and deployed into production, right? I'm talking like really, really low numbers here. Customization and extensibility is core to the future of agentic engineers. And so this tool becomes more and more important to me every single day. The tool you use limits what you believe is possible. And with the Pi agent harness, I see no limits. You know, all the limitations of how things work, they're just falling away. I don't see the same workflows. I don't see the same implementations anymore. And I think if you're stuck using one agent decoding tool, especially one that tells you how to do everything, hint, hint, cloud code, hint, hint, codex, hint, hint, you know, Gemini CLI, if anyone's using that, open code, like whatever it is, right? You are not getting, you know, you're not pushing into that 99%, the rest of the value that we can unlock with agents. with the right agentic technology. Okay. So that's a big one, obviously, right? Bidirectional comms are flat, no hierarchy, right? No information loss, no one agent to rule them all, which is a con in another way, right? We've talked about the one agent to rule them all, the orchestrator. Let's be super clear about this. This is the orchestrator. And this is like the current wave of multi-agent orchestration. This is super powerful. It's a great pattern. I'm going to continue to use it. But bidirectional is great because it's flat. It's two-way. No information gets lost, right? Another great part about this is that this is a primitive over composition approach, right? Once again, this kind of ties back into that first idea. This is just an agent. It's just a pie. coding agent, right? Or just simplify it, right? Let's not hyper fixate on pi, right? This is just an agent, I just open up an agent, and then I can compose as many agents as I want to. Okay, so once again, we're engineering composition is an engineering pattern, we're creating slices of things we can combine to make something bigger, right primitives into compositions, but you want the primitive first, so that you can compose it. That's enough glaze. Let's go to cons. You have to build this yourself or get it from any depth and for free. Link in the description. But you know, you know what I mean, right? You have to build this, you have to vet this, you have to control the way your agents communicate, you need to prompt engineer everything, context engineer everything, and you need to deal with the cases, like the edge cases is where really where great agent engineering patterns are made and great products in general, right? Another con here, loops. are possible if prompts are sloppy, right? So you can you can really generate some bad loops that are going to really chew up your token usage if your prompts are sloppy, right? You need an end state, right? Let's see if our agents have hit their end state yet. Okay, great. So yeah, so we are approaching the end state, right? My agent is making progress. It is creating this agent sandbox exe dev skill. Okay, so that's great. So this prompt obviously was not sloppy. I don't write very a ton of sloppy props anymore. But this is a risk of this strategy, right? And then there's just like general costs, right? Cost skills, linearly with agent count plus communication bounce. And so there are a bunch of laws around the perfect number of actors to have in a team right inside of your communication channel. That's kind of what this showcases, right? There's some magical number, dumb bars number or something. I wouldn't worry about that too much. I would just worry about like, what's useful? How can I deploy bi-directional agents, bi-directional peer to peer agents that's actually useful? across devices or on the same device right the key here is peer-to-peer and just make it as useful as possible if you find that three agents 10 agents whatever is too much then just trim them it's not a huge con but it's important to uh take into account right i think the last con is be careful not to just fall back into the orchestration pattern unless you need it right if you need orchestration pattern just build that this is kind of nice though still because you can compose peer-to-peer agent communication back into a orchestration pattern we have more of a top-down format where one agent's leading the rest that's fine too right as i mentioned you know we're exploring the state space of what's possible this is equally as valuable but Peer to peers advantage is that it is flat and there's no hierarchy, right? That's the advantage, right? Your agents are working together. It's not a delegation stream. So these are some of the pros and the cons of the system. I think it's important to address the upside and the downside. Right. Again, if you're doing engineering, you need to address both of them. So this is yet another multi-agent orchestration system. that you can use to push what you can do with your agents in the age of agents, right? And the goal is the same. We're not really changing. We're not doing anything new here on the channel. What we're doing week after week is we're increasing trust and scale of our agentic systems. All right. You can see this final review is coming in. This is coordinated agents working together, double checking their work. And you can see here our tokens are starting to stack up. We have 2 million available, but it's split in half. One is focused on exe.dev. One is focused on E2B. but our agents are still coordinating on the same information. We're making sure that we're hitting feature parity. We're making sure that everything looks good. Of course, I'm going to run more tests on this and make sure that this looks good, but I can almost guarantee you this is going to work out of the box because I had two agents, two state-of-the-art agents working together to get this shipped out. Enabling specialized agents that chat together on device and across devices is a unique advantage. You can add to your agentic systems, specifically to your agent harness. This pattern and patterns like this, more and more of these patterns are going to emerge. They're impossible if you're using the out of the box agents from Anthropic, from OpenAI, from Google. It's impossible when you're renting your agent harness. To be clear, I still use Cloud Code all the time. It's a great tool. I'm going to continue to use it. But more and more, I'm reaching for the Pi agent harness to build the exact experience and products that I'm looking for. And this pattern adds to that bag of tricks that you and I can now deploy in our agent harness. if you own your Asian harness. I'm going to be adding these two extensions to the Pi versus Cloud Code code base here available to you. Link in the description. I'm really excited for some of the big ideas I have to share with you here on the channel coming up. I'm waiting for that next Gemini model launch to really showcase one of these next gen patterns. So make sure you like, make sure you subscribe, join the journey so you don't miss that. You know where to find me every single Monday. Stay focused and keep building.

⚙️ Pipeline jobs

StageStatusAtt.UpdatedError
download done 1/3 2026-07-20 12:02:25
transcribe done 1/3 2026-07-20 12:02:48
summarize done 1/3 2026-07-20 12:03:18
embed done 1/3 2026-07-20 12:03:20

📄 Описание YouTube

Показать
Subagents are the LOCAL MAXIMUM of multi-agent orchestration and most engineers are still stuck there. What's better?

Agents that work together. Specifically, two pi coding agents that can coordinate using any model (gpt-5.5, opus 4.7, glm 5.1, etc) at any time to operate as a TEAM. 

Flat teams beats hierarchy. The best ideas die in agent hierarchies the same way they die in corporate hierarchies.

This is Pi to Pi: true two-way agent to agent communication on the Pi coding agent.


✅ Get the Pi to Pi Extension
https://github.com/disler/pi-vs-claude-code

💰 VIDEO REFERENCES
- Pi Coding Agent: https://pi.dev/
- exe.dev: https://exe.dev/
- e2b.dev: https://e2b.dev/

🔗 LEARN MORE
- Verifier Agent (referenced in video): https://youtu.be/EnXKysJNz_8

🚀 Master Agentic Coding
https://agenticengineer.com/tactical-agentic-coding?y=PIdETjcXNIk

In this video, IndyDevDan breaks down a brand new multi-agent orchestration pattern hiding in plain sight. Forget sub-agent delegation. Forget message queues. Forget the one-agent-to-rule-them-all orchestrator. We are going FLAT with peer to peer agents that ping each other, prompt each other, and await responses across devices over a simple Unix socket and BUN server. This is the A2A protocol you actually want.

What is better than one GPT-5.5 Pi coding agent? Two. What is better than two isolated GPT-5.5 agents? Two GPT-5.5 agents that actually work together. We push this to three, four, five agents all running as equals, all coworkers, all ping-able. Real multi-agent systems. Real agent to agent communication. Zero hierarchy.

We run two live demos that prove the pattern. First, a Prod and Dev multi-agent orchestration scenario where a production Pi coding agent on a Mac Mini coordinates with a dev agent on an M5 MacBook Pro to reproduce a Pro Tier user lockout bug, all while keeping PII safe. Real engineering work, not vibe coding. Then we spin up an E2B agent and an exe.dev agent and have them communicate to build a brand new agent sandbox skill with full feature parity. This is harness engineering, context engineering, and prompt engineering coming together in one workflow.

KEY IDEAS
- Pi coding agent: The agent harness that lets you actually own the experience. The real claude code alternative.
- Agent to agent communication: Bidirectional flows of information beat top-down delegation every time.
- Peer to peer agents: Flat hierarchies. No orchestrator. No worker. Just equals on the network.
- Multi-agent orchestration: Cross device coordination using a lightweight Unix socket and BUN server.
- A2A protocol: Four simple tools. List agents, send command, send prompt, await response.
- Context engineering: A focused agent is a performant agent. Split your context window across specialized agents.
- Harness engineering: The tool you use limits what you believe is possible. Own your agent harness.
- Pi extension: Two extensions shipping in the pi-vs-claude-code repo, comms and comms net.

The state space of agentic engineering is vast. Only one percent of what is possible has been discovered. If you are stuck using Claude Code, Codex, Gemini CLI, or OpenCode as your only agent, you are getting one percent of the value. The Pi coding agent unlocks the other 99.

This is week after week of the same mission on the channel. Increase trust. Increase scale. Build agentic systems that do serious engineering work on your behalf. Not vibe coding. Real agentic engineering.

Drop a like if you want the agent sandbox exe.dev skill and the E2B skill added to the repo. Comment below.

Stay focused and keep building.
- IndyDevDan

📖 Chapters
00:00 Pi to Pi Agent Communication
01:18 Prod and Dev Multi-Agent Orchestration
04:56 Why Agent to Agent Communication Matters
12:33 e2b vs exe.dev Skills
21:39 Pi to Pi Tools and Codebase Breakdown
27:42 Pros and Cons of Pi to Pi Agent Communication

#agenticcoding  #picodingagent #agenticengineering