23blocks-OS/ai-maestro/tree/main/mods/amp-inbox-band

在提示列上方、状态行和 toast 中显示未读 AMP 消息,并可唤醒空闲的 Claude Code 工作階段来读取。需要 Claude Code 2.1.287 或更高版本。
23blocks-OS/ai-maestro/tree/main/mods/amp-inbox-band

我曾在多个终端中运行 35 个 AI 代理,成了它们之间的人肉邮差。于是我构建了 AI Maestro。
面向 AI 优先组织的操作系统 —— 编排任意 AI 代理,提供持久记忆、代理之间的消息传递,以及多机器支持。

我给了一个 AI 代理真正的任务 —— 不是自动补全,而是一个真正的工程问题。它检查代码、读取日志、查询数据库,然后带着答案回来。就在那一刻,我意识到:这东西真的能用。
一周内,我已经在多个终端中运行 35 个代理。它们很有生产力,却无法互相交谈。我成了人肉消息总线 —— 从一个终端复制上下文,再粘贴到另一个终端。我成了自己 AI 团队的瓶颈。
所以我构建了 AI Maestro —— 一个仪表板就能查看每台机器上的每个代理,并提供持久记忆和代理之间的直接通信。如今我在多台电脑上运行 80+ 个代理,每天和它们一起构建真正的公司。
它的不同之处:
AI Maestro 是 AI 优先公司的操作系统。 它不是任务运行器,而是一个长期团队工作的地方。
这里的代理更像一名员工,而不是一项工作。它有名字、有面孔、有能跨工作階段保留的记忆、有收件箱 —— 而且它拥有某些东西:产品、储存库、流程或客户。它的记忆和代码图谱会以它拥有的内容为索引,所以几个月后它会越来越擅长处理那件事,而不是每天早上都从零开始。
因为代理拥有自己的东西,它们不会共用工作副本。 需要同一个储存库的两个代理会各自克隆,在自己的分支上工作,再通过 git —— push、pull request、review、merge —— 进行整合,就像团队中的两名工程师一样。
这是刻意设计的,也源于定义这个产品的一件事:你的代理运行在不同机器上。 共用 checkout 需要共用文件系统。Git worktree —— 单机代理 IDE 所依赖的隔离原语 —— 是同一块磁盘上一个 .git 存储之上的多个工作目录;一旦后端代理在 Linux 机器上、iOS 代理在 Mac 上,它就无法继续工作。clone 是唯一能跨机器迁移的原语。这就是把代理转移到另一台主机时会把它的 repo 克隆到目标位置的原因:代理的储存库会和代理一起移动。
curl -fsSL https://raw.githubusercontent.com/23blocks-OS/ai-maestro/main/scripts/remote-install.sh | sh
这会安装所需的一切:
时间: 5-10 分钟 · 需要: Node.js 18+、tmux · 可选: Claude Code 2.1.287+,用于 inbox mod
<details> <summary>Windows(WSL2)/ Linux 说明</summary>Windows: 先安装 WSL2(以管理员身份打开 PowerShell,然后重新启动),再从开始菜单打开 Ubuntu,在那里运行 curl 命令:
wsl --install
刚接触 WSL?WSL 是一个拥有独立磁盘的 Linux 系统,所以它的 home 文件夹一开始是空的。请把代理放在那里(默认位置为 ~/agents/<name>),不要放在 C:\ 文件夹中,因为从 WSL 访问这些文件夹会慢很多。可以在 Windows 中通过 \\wsl.localhost\Ubuntu\home\<you>\agents 打开它们的文件。5 分钟了解 Windows · 完整 Windows 指南
Linux: 确保已安装构建工具:sudo apt install tmux build-essential
git clone https://github.com/23blocks-OS/ai-maestro.git
cd ai-maestro
yarn install
yarn dev
详细设置选项请参阅 QUICKSTART.md。
</details>仪表板会在 http://localhost:23000 打开。
每项功能都来自运行真实 AI 优先组织的经验。我们按实际需要的顺序构建它们。
我有 35 个终端,根本分不清哪个是哪个。
在一个地方查看和管理所有 AI 代理。通过带引导的向导从 UI 创建代理,用智能命名整理它们(project-backend-api 会变成一个带自动配色的 3 级树),点击即可切换任意代理。四种部署模式:tmux(本地)、Docker(容器化)、AWS EC2(专用实例)和 AWS ECS Fargate(无服务器)。自动发现 tmux 工作階段、Docker 容器、云部署以及独立代理。
我的 Mac Mini 闲置在那里。如果也在那台机器上运行代理呢?
这是一个每台机器地位相同的对等网格网络。添加电脑,它就会加入网格。每台机器上的每个代理都能从一个仪表板看到。让每台机器做它最擅长的事 —— Mac 用于 iOS 构建,Linux 用于 Docker,云端用于重型计算。不需要中央服务器。
工作机器可以无头运行(yarn headless)——完整的 API 和代理运行时,没有 UI,大约只需 100MB 内存。把仪表板运行在你所在的地方,把代理运行在有计算资源的地方。
我曾经是邮差 —— 因为代理无法互相交谈,只能在它们之间复制消息。
Agent Messaging Protocol(AMP) 为代理提供类似电子邮件的通信。它支持优先级、消息类型、加密签名和推送通知。告诉代理 「send a message to backend about the deployment」 —— 它就会完成。代理直接协调,而你掌握全局。
AMP 之前: 你从一个终端复制研究结果,粘贴到另一个终端,每天重复 50 次。 AMP 之后: 「Research agent, send your findings to the writing agent.」 完成。
新加坡的一位朋友想让他的代理和我的代理对话,但我不想让他访问我的网络。
通过组织网关将 AI 代理连接到 Slack、Discord、Email 和 WhatsApp。支持智能路由(@AIM:agent-name)、线程感知回复,以及内容安全;网关会检测到 34 种提示注入模式,确保代理看到消息之前就拦截它们。
每天早上,我的代理都像失忆一样醒来。
长期记忆是可以按代理开启的 skill。每晚,每个代理的对话都会变成记忆:它学到的简短陈述,每条都由来源段落支持;还有一个记录它所处理的事物及其关系的实体图(runs on、depends on、stores data in、deploys to),会持续更新,结束的关系会被标记。Claude Code 会在 30 天后删除转录;AI Maestro 会从代理自己的消息索引重建这段历史,让几个月的工作成为记忆,而不是消失。当提示中提到某个东西时,代理会在行动前获知它与什么有关,因此能看见一次变更会影响什么。某条知识在更多工作階段中出现时,权重会更高;机密会被遮盖,永远不会保存。工作原理 →
此外还有:Code Graph(通过增量索引交互式可视化整个代码库)以及Documentation(从代码自动生成可搜索文档)。代理与你合作的时间越长,就会越聪明。
光聊天没有用。我需要代理协调真正的交付成果。
把代理组织成团队,在分屏作战室中召开会议,并在完整的 Kanban 看板上用拖放方式跟踪任务,其中有依赖关系和 5 个状态列。跨机器团队也能顺畅工作。这是面向 AI 劳动力的项目管理。
有些工作不该等我想起来再去询问。
给代理自己的日程 —— 早间分诊、每晚依赖检查、周一报告。计时器属于代理,而不是机器,因此代理换主机时日程会随之移动,并且会在代理进入空闲时触发,而不是在任务中途打断它。
有了 80 个代理后,它们看起来全都一样。
为每个代理设置自定义头像、个性档案和角色。当代理拥有脸和职位时,你会本能地把合适的工作交给它 —— 就像真正的团队一样。
代理还可以说话并被看见:你可以选择 TTS 提供商的语音管线,还有会随代理说话而动的实时动画脸孔。打开与代理的通话,它会回望你。没人做出同样的东西;当你在散步时听完一个计划后,终端机就显得像是降级版。
有一个需要直说的限制:真正的 lip-sync —— 由实际音频驱动的嘴部动作 —— 需要 OpenAI 或 ElevenLabs 的语音和 API key。 默认浏览器语音(web-speech)会直接输出到扬声器,不会提供可测量的音频流,所以脸部动画改用合成包络驱动。看起来很生动,但并没有跟踪说出的字词。这是 Web Speech API 的限制,不是我们计划绕过的问题。
一个代理在我的笔记本上,另一个在 EC2,第三个在 Fargate。它们都在同一个仪表板里。
运行代理有四种方式,各自满足不同需求:
| 模式 | 内容 | 最适合 | |------|------|----------| | tmux | 机器上的直接终端工作階段 | 本地开发、零设置 | | Docker | 带资源限制的容器化代理 | 隔离、可复现、多项目 | | AWS EC2 | 带原生安装、Nginx + SSL 的专用 Graviton 实例 | 始终在线的代理、SSH 访问、持久工作负载 | | AWS ECS Fargate | 自动构建 Docker 镜像的无服务器容器 | 突发扩展、零维护、按使用付费 |
云端代理由 Terraform 管理。EC2 会直接在 ARM64 硬件上安装 Node.js、tmux 和 AI CLI(没有 Docker 开销)。ECS 会自动构建 Docker 镜像,推送到 ECR,并在 Fargate 上运行。两者都能从仪表板或 CLI 用一条命令部署。
# EC2: dedicated instance with SSL
aimaestro-agent.sh create my-api --ec2 \
--domain api.example.com --ssl-email [email protected] --key-name my-key
# ECS Fargate: serverless (auto-builds image)
aimaestro-agent.sh create worker --ecs
每个 AI 优先组织都从一个代理开始。Lola 是你的代理 —— 一个为 AI Maestro 打造、内置完整能力的 Chief of Staff 框架。它开箱即用地处理电子邮件分诊、语义记忆、任务管理和内容安全。安装平台、部署 Lola,你在第一天就有了第一位员工。
# Clone and deploy Lola on AI Maestro
git clone https://github.com/23blocks-OS/lolabot.git
cd lolabot && ./setu
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add 23blocks-OS/ai-maestro claude plugin install amp-inbox-band
I was running 35 AI agents across multiple terminals and became the human mailman between them. So I built AI Maestro.
The OS for AI-first organizations — orchestrate any AI agent with persistent memory, agent-to-agent messaging, and multi-machine support.

Quick Start · Features · Documentation · Contributing
</div>I gave an AI agent a real task — not autocomplete, a real engineering problem. It checked the code, read the logs, queried the database, and came back with the answer. That was the moment. This thing can actually work.
Within a week I was running 35 agents across terminals. They were productive, but they couldn't talk to each other. I became the human message bus — copying context from one terminal, pasting into another. I was the bottleneck in my own AI team.
So I built AI Maestro — one dashboard to see every agent, on every machine, with persistent memory and direct agent-to-agent communication. Today I run 80+ agents across multiple computers, building real companies with them every day.
What makes this different:
AI Maestro is an operating system for an AI-first company. Not a task runner — a place where a standing team works.
An agent here is closer to an employee than to a job. It has a name, a face, a memory that survives the session, an inbox — and it owns something: a product, a repository, a process, a customer. Its memory and code graph are indexed against what it owns, which is why it gets better at that thing over months rather than starting cold every morning.
Because agents own things, they don't share a working copy. Two agents that need the same repository each clone it, work on their own branch, and integrate through git — push, pull request, review, merge — exactly like two engineers on a team.
That's deliberate, and it follows from the one thing that defines this product: your agents run on different machines. A shared checkout needs a shared filesystem. Git worktrees — the isolation primitive the single-machine agent IDEs are built on — are several working directories over one .git store on one disk, so they stop working the moment your backend agent is on a Linux box and your iOS agent is on a Mac. A clone is the only primitive that survives the move. It's why transferring an agent to another host clones its repos to the destination: an agent's repositories travel with the agent.
curl -fsSL https://raw.githubusercontent.com/23blocks-OS/ai-maestro/main/scripts/remote-install.sh | sh
This installs everything you need:
Time: 5-10 minutes · Requires: Node.js 18+, tmux · Optional: Claude Code 2.1.287+ for the inbox mod
<details> <summary>Windows (WSL2) / Linux notes</summary>Windows: Install WSL2 first (PowerShell as Administrator, then restart), then open Ubuntu from the Start menu and run the curl command there:
wsl --install
New to WSL? WSL is a Linux system with its own disk, so its home folder starts empty. Keep agents there (~/agents/<name>, the default), not in C:\ folders, which are much slower from WSL. Open their files from Windows at \\wsl.localhost\Ubuntu\home\<you>\agents. Windows in 5 minutes · Full Windows guide
Linux: Ensure build tools are installed: sudo apt install tmux build-essential
git clone https://github.com/23blocks-OS/ai-maestro.git
cd ai-maestro
yarn install
yarn dev
See QUICKSTART.md for detailed setup options.
</details>Dashboard opens at http://localhost:23000
Every feature was born from running a real AI-first organization. We built them in the order we needed them.
I had 35 terminals and couldn't tell which was which.
See and manage all your AI agents in one place. Create agents from the UI with a guided wizard, organize them with smart naming (project-backend-api becomes a 3-level tree with auto-coloring), and switch between any agent with a click. Four deployment modes: tmux (local), Docker (containerized), AWS EC2 (dedicated instance), and AWS ECS Fargate (serverless). Auto-discovers tmux sessions, Docker containers, cloud deployments, and standalone agents.
My Mac Mini was sitting there idle. What if I ran agents on that too?
A peer mesh network where every machine is equal. Add a computer, it joins the mesh. Every agent on every machine, visible from one dashboard. Use each machine for what it's best at — Mac for iOS builds, Linux for Docker, cloud for heavy compute. No central server required.
Worker machines can run headless (yarn headless) — the full API and agent runtime with no UI, in about 100MB of RAM. Run the dashboard where you sit; run agents wherever the compute is.
I was the mailman — copying messages between agents because they couldn't talk to each other.
The Agent Messaging Protocol (AMP) gives your agents email-like communication. Priority levels, message types, cryptographic signatures, and push notifications. Tell your agent "send a message to backend about the deployment" — it just works. Agents coordinate directly while you manage the big picture.
Before AMP: You copy research from one terminal, paste into another, repeat 50 times a day. With AMP: "Research agent, send your findings to the writing agent." Done.
A friend in Singapore wanted his agents to talk to mine. But I didn't want to give him access to my network.
Connect your AI agents to Slack, Discord, Email, and WhatsApp through organizational gateways. Smart routing (@AIM:agent-name), thread-aware responses, and content security with 34 prompt injection patterns detected at the gateway — before any agent sees the message.
Every morning, my agents woke up with amnesia.
Long-term memory is a skill you switch on per agent. Every night each agent's conversations become memory: short statements of what it learned, each backed by the passages it came from, and an entity graph of the things it works with and how they relate (runs on, depends on, stores data in, deploys to), kept current, with ended relations marked. Claude Code deletes transcripts after 30 days; AI Maestro rebuilds that history from the agent's own message index, so months of work become memory instead of disappearing. When a prompt names something, the agent is told what it relates to before it acts, so it can see what a change affects. Knowledge that comes up in more sessions weighs more; secrets are redacted and never stored. How it works →
Alongside it: Code Graph (interactive visualization of your entire codebase with delta indexing) and Documentation (auto-generated, searchable docs from your code). Agents get smarter the longer they work with you.
Talking isn't working. I needed agents to coordinate on actual deliverables.
Assemble agents into teams, run meetings in split-pane war rooms, and track tasks on a full Kanban board with drag-and-drop, dependencies, and 5 status columns. Cross-machine teams work seamlessly. This is project management for your AI workforce.
Some jobs shouldn't wait for me to remember to ask.
Give an agent its own schedule — morning triage, a nightly dependency check, a Monday report. The timer belongs to the agent, not the machine, so a schedule travels with the agent when it moves hosts, and fires when that agent goes idle instead of interrupting it mid-task.
At 80 agents, they all looked the same.
Custom avatars, personality profiles, and roles for every agent. When an agent has a face and a job title, you instinctively assign it the right work — just like a real team.
Agents can also speak and be seen: a voice pipeline with your choice of TTS provider, and live animated faces that move while the agent talks. Open a call with an agent and it looks back at you. Nobody else is doing this, and once you've reviewed a plan by listening to it on a walk, the terminal feels like a downgrade.
One caveat worth stating plainly: true lip-sync — mouth movement driven by the actual audio — needs the OpenAI or ElevenLabs voice and an API key. The default browser voice (web-speech) renders straight to your speakers and exposes no audio stream to measure, so the face animates from a synthetic envelope instead. It looks alive; it is not tracking the words. That is a limit of the Web Speech API, not something we plan to work around.
One agent on my laptop. Another on EC2. A third on Fargate. All in the same dashboard.
Four ways to run agents, each for a different need:
| Mode | What | Best For | |------|------|----------| | tmux | Direct terminal sessions on your machine | Local development, zero setup | | Docker | Containerized agents with resource limits | Isolation, reproducibility, multi-project | | AWS EC2 | Dedicated Graviton instance with native install, Nginx + SSL | Always-on agents, SSH access, persistent workloads | | AWS ECS Fargate | Serverless containers, auto-built Docker image | Burst scaling, zero maintenance, pay-per-use |
Cloud agents are Terraform-managed. EC2 installs Node.js, tmux, and AI CLIs directly on ARM64 hardware (no Docker overhead). ECS auto-builds your Docker image, pushes to ECR, and runs on Fargate. Both deploy with one command from the dashboard or CLI.
# EC2: dedicated instance with SSL
aimaestro-agent.sh create my-api --ec2 \
--domain api.example.com --ssl-email [email protected] --key-name my-key
# ECS Fargate: serverless (auto-builds image)
aimaestro-agent.sh create worker --ecs
Every AI-first organization starts with one agent. Lola is yours — a batteries-included Chief of Staff framework built for AI Maestro. She handles email triage, semantic memory, task management, and content security out of the box. Install the platform, deploy Lola, and you have your first employee on day one.
# Clone and deploy Lola on AI Maestro
git clone https://github.com/23blocks-OS/lolabot.git
cd lolabot && ./setup.sh
The LolaBot Ecosystem:
Every agent is built from five dimensions:
| | Dimension | What | Where | |-|-----------|------|-------| | WHO | Personality | Domain expertise, workflows, deliverables | Agent Library (150+) | | HOW | Capabilities | Skills, scripts, CLI tools, Canvas | Plugin Builder | | TRUST | Identity | Cryptographic keys, OAuth tokens | AID | | TALK | Communication | Agent-to-agent messaging | AMP | | ACT | Actions | Tool execution, API calls, workflows | AAP |
Open Protocols — AI Maestro is built on three open standards:
AI Maestro is the stage. Pick personalities, give them skills, and run them from one dashboard.
Read the full ecosystem guide →
Founders building AI-first organizations. You're the CEO, your agents are the team. Solo operators, agency owners, and anyone running a business where AI agents do the work and you drive the strategy. Start with Lola, add specialists, scale your AI workforce.
Developers running multiple AI agents. If you have 3+ agents and you're switching between terminals, losing context, and playing messenger — this is for you. Works with Claude Code, Codex, Aider, Cursor, or any terminal-based AI.
Teams coordinating AI-assisted work. Multiple developers, multiple agents, multiple machines. One dashboard. Agent-to-agent messaging replaces you as the bottleneck.
Creators and operators who want to connect AI agents to the outside world through Slack, Discord, or Email — without exposing their infrastructure.
Code Graph — Interactive codebase visualization

Agent Inbox — Direct agent-to-agent messaging

New here?
Going deeper:
Troubleshooting:
Open Protocols:
Extending:
See the full roadmap and join the discussion.
We love contributions. See CONTRIBUTING.md for guidelines.
AI Maestro is better because of people outside the team who hit something, read the source, and sent a fix. In order of arrival:
C-m instead of Enter for tmux
send-keys, which is still how every message reaches an agent today, and a fix
stopping undefined values from overwriting task fields on update.ecosystem.config.js.We built this because one of us was running 35 agents across terminals and had become the human message bus between them. It solved our problem. That it solves yours too is the best thing that has happened to this project — and a patch from someone who hit a rough edge and read the source is the most useful thing we can receive. Open a PR.
<details> <summary><b>Acknowledgments</b></summary>Built with Next.js, xterm.js, CozoDB, ts-morph, tmux, and Claude Code.
</details>MIT — see LICENSE. Free for any purpose, including commercial.
Made with love in Boulder (USA), Roma (Italy), and many other cool places
Built by AI Agents with Humans in the driver seat — for AI-first organizations, AI-enabled humans, and autonomous agents
</div>Do I need to use Claude Code? No. AI Maestro works with any terminal-based AI agent — Claude Code, Codex, Aider, Cursor, OpenClaw, Hermes, Droid, or your own scripts. We're agent-agnostic.
Does it work on Linux / Windows? Yes. macOS and Linux natively. Windows via WSL2 — see the Windows guide.
Can agents on different machines talk to each other? Yes. The Agent Messaging Protocol (AMP) handles cross-machine messaging with cryptographic signatures and push notifications. No central server required.
What are AID and AAP? AID (Agent Identity) gives each agent a portable cryptographic identity. AAP (Agent Actions Protocol) standardizes how agents execute tools and trigger workflows. Together with AMP, they form the open protocol stack that AI Maestro is built on.
What is the Canvas skill? Canvas lets agents generate visual artifacts — diagrams, charts, and interactive documents — directly from conversations. It's part of the plugin system and available to any agent.
How is this different from just using tmux? tmux gives you terminals. AI Maestro gives you an organization — persistent memory, agent-to-agent messaging, team coordination, Kanban boards, multi-machine mesh, cloud deployment, and gateway integrations. tmux is the foundation; AI Maestro is the building.
What is LolaBot? LolaBot is an open-source agent framework — a batteries-included Chief of Staff that handles email, memory, tasks, and security. The LolaBot Factory offers pre-built agent templates for one-click deployment.
What does it cost? Nothing. MIT licensed, free for any purpose including commercial — no seats, no usage fees, no paid tier. You bring your own agent subscriptions (Claude Code, Codex, whatever you already pay for) and AI Maestro just runs them. Note that some tools in this space are source-available rather than open source, under licenses that forbid offering them as a service; MIT has no such restriction.
Do you collect telemetry?
No. No analytics SDK, no account, no login, no phone-home. The only telemetry in the product is the agent metrics shown on your own dashboard, and those post to localhost:23000 — your machine. Point them at a central collector only if you choose to run one.
How does this compare to the parallel-agent IDEs? Different job, and deliberately so. Tools like Orca, Paseo, Superset and Conductor run several agents on one repository on one machine, each in an isolated git worktree, then diff the results so you can merge the best one. It's a disposable fan-out: five attempts at the same task, keep one, throw away four. They're good at it. If that's the workflow you want today, use one of them.
AI Maestro is built for the case after that one — a standing team of agents that own things, remember their work, message each other, and run across every machine you have. We don't use worktrees because worktrees can't leave the machine they're on: they're several working directories over one .git store on one disk. Our agents each clone what they own and integrate through pull requests, like a human team, which is the only model that works when the backend agent is on Linux and the iOS agent is on a Mac. See the mental model.
Can I run several agents on the same repository?
Yes — give each one its own clone. Backend owns the API, frontend owns the web app, infra owns the Terraform, even inside a monorepo. They coordinate over AMP and merge through git. For a large repo, git clone --filter=blob:none or --reference to a local mirror keeps the disk cost down. And an individual agent is free to use git worktree inside its own clone — worktrees are a fine tool within an agent, just not how we isolate agents from each other.
Is there a hosted / cloud version? Not yet. AI Maestro runs on your machines. You own your data, your agents, and your infrastructure.
How do I add more agents?
Create them from the dashboard UI, the CLI (aimaestro-agent.sh create), or just start a new tmux session — AI Maestro auto-discovers it.