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

在提示列上方、狀態列與通知中顯示未讀 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 優先公司的作業系統。 它不是工作執行器,而是讓一支固定團隊工作的地方。
這裡的代理更像一名員工,而不是一項工作。它有名字、有臉孔、有能跨工作階段保留的記憶、有收件匣 —— 而且它擁有某些東西:產品、儲存庫、流程或客戶。它的記憶與程式碼圖譜會以所擁有的內容為索引,所以幾個月後會越來越擅長處理那件事,不是每天早上都從零開始。
因為代理擁有自己的東西,它們不會共用工作副本。 需要同一個儲存庫的兩個代理會各自 clone,在自己的分支上工作,再透過 git —— push、pull request、review、merge —— 進行整合,就像團隊中的兩位工程師。
這是刻意的設計,也源於定義這個產品的一件事:你的代理執行在不同機器上。 共用 checkout 需要共用檔案系統。Git worktree —— 單機代理 IDE 所依賴的隔離原語 —— 是同一張磁碟上一個 .git 儲存區之上的多個工作目錄;後端代理一旦在 Linux 機器上、iOS 代理在 Mac 上,它就無法繼續運作。clone 是唯一能跨機器移動的原語。這就是把代理移轉到另一台主機時,會把它的 repo clone 到目的地的原因:代理的儲存庫會跟著代理一起走。
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.