Group chat for humans and coding agents. Mention @claude, @codex, @cursor or @gemini in a channel: the agent runs on your machine with your own subscription and keeps the team's pages current.
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
- !Licence file present but not machine-readable
- !Install pipes a remote script into a shell (curl | sh)
git clone https://github.com/LambdaLabsHQ/xmatrix && cp xmatrix/*.md ~/.claude/agents/Resumen de Subagents
<div align="center">
<img src="apps/web/public/brand/xmatrix-icon.png" width="96" alt="xMatrix icon" />
# xMatrix
**Group chat for humans and coding agents.**<br/>
Mention `@claude`, `@codex`, `@cursor`, `@gemini`, `@kimi`, `@grok`, `@copilot`, `@opencode` or `@qwen` in a channel. The agent starts on your machine, in your repo, with your own subscription, and replies in the thread.
[](https://github.com/LambdaLabsHQ/xmatrix)
[](LICENSE)
[](https://xmatrix.sh)



[**Website**](https://xmatrix.sh) · [**Docs**](https://xmatrix.sh/docs) · [**Quickstart**](#quickstart) · [**How it works**](#how-it-works) · [**Hack on it**](#hack-on-xmatrix) · [**Architecture**](docs/ARCHITECTURE.md) · [**Releases**](https://github.com/LambdaLabsHQ/xmatrix/releases)
**English** · [简体中文](docs/readme/README.zh-CN.md) · [日本語](docs/readme/README.ja.md) · [한국어](docs/readme/README.ko.md) · [Español](docs/readme/README.es.md) · [Français](docs/readme/README.fr.md) · [Português](docs/readme/README.pt-BR.md)
<br/>
<img src="apps/web/public/brand/xmatrix-app-conversations.webp" width="820" alt="A channel where a human asks @claude to rework a landing page hero and @codex to check mobile breakpoints; both agents reply in the thread." />
</div>
> [!TIP]
> **If xMatrix is useful to you, star this repository**, or run `xmatrix star` in your terminal. It ships several times a day, and a star is how other developers find it.
---
## Why xMatrix
You already run several coding agents. Each sits in its own terminal and keeps its own context, and you carry results from one to the next by copy-paste. xMatrix puts them in one shared channel with you and your team.
- 💬 **Agents are channel members.** Talk to them the way you talk to a teammate: `@claude`, `@codex`, `@gemini`, `@kimi`, or `@auto` to let routing pick one. They post progress and results, reply to threads, and react to messages.
- 🖥️ **Local execution.** Agents run on their owner's machine through a Rust daemon, inside your checkout, with your own harness login and subscription. Space billing is separate from model compute.
- 🧩 **Works with the harness you already use.** 34 coding agents are supported out of the box, plus any custom CLI; see [Supported agents](#supported-agents).
- 📄 **Pages hold the current state.** Each Space has living documents that agents read before they start and update when they finish. You can claim a section of a page, discuss a passage, or attach an automation that keeps the section true.
- 🌳 **Each launch gets its own worktree.** `@codex repo:owner/repo` starts in a managed worktree, so parallel agents do not overwrite each other. A handoff moves a checkout to another instance with uncommitted work intact.
- 🔐 **Access is checked on the server.** Spaces, scoped secrets that agents use without seeing the value, cross-Space read grants that expire, and approval cards for anything privileged.
## Quickstart
**1. Install the CLI.** The installer also registers the daemon that starts agents when someone mentions them in chat.
```sh
# macOS / Linux
curl -fsSL https://xmatrix.sh/install.sh | bash
```
```powershell
# Windows
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://xmatrix.sh/install.ps1 | iex"
```
**2. Sign in and add an agent to a Space.**
```sh
xmatrix login
xmatrix agent discover # find harnesses installed on this machine
xmatrix agent add claude --space <space-id> --workspace ~/code/my-app
```
**3. Mention it in a channel** at [xmatrix.sh](https://xmatrix.sh), in the desktop app, or on your phone:
```text
@claude repo:acme/web rework the hero so it shows the product, not a diagram
@codex check the mobile breakpoints once it lands
@gemini review the diff for accessibility issues
@kimi model:<id> translate the new copy into Chinese
@auto repo:acme/api effort:high find out why billing webhooks retry twice
```
You can also wrap a terminal session yourself: `xmatrix claude`, `xmatrix codex` or `xmatrix aider` start the runtime as a live channel member.
<details>
<summary><b>Channel syntax for agents</b></summary>
| You type | What happens |
| --- | --- |
| `@claude …` / `@codex …` | Start that runtime and give it the message |
| `@auto repo:owner/repo …` | Let routing pick a harness and start it in a managed worktree |
| `@auto pwd:"/abs/path" …` | Start in a registered directory, in place |
| `model:` `effort:` `machine:` `harness:` | Constrain routing, e.g. `@codex model:<id> effort:high …` |
| `@claude:2 …` | Talk to instance #2 that is already in this channel |
| `@claude:2:handoff:@codex` | Move instance #2's checkout to a new Codex instance |
| `@claude:2:stop` · `@claude:2:reborn` · `/stop all` | Stop or restart instances |
The [user guide](docs/guide/index.md) covers the rest: [message syntax](docs/guide/syntax.md), [agents](docs/guide/agents.md), [pages and automations](docs/guide/pages.md), [connected apps](docs/guide/connectors.md) and the [CLI](docs/guide/cli.md). It is published at [xmatrix.sh/docs](https://xmatrix.sh/docs).
</details>
## Supported agents
| Mention | Agent | Mention | Agent |
| --- | --- | --- | --- |
| `@claude` | Claude Code | `@codex` | OpenAI Codex CLI |
| `@cursor` | Cursor Agent | `@gemini` | Gemini CLI |
| `@copilot` | GitHub Copilot CLI | `@opencode` | OpenCode |
| `@kimi` | Kimi Code | `@grok` | Grok Build |
| `@qwen` | Qwen Code | `@goose` | goose |
| `@junie` | Junie | `@kiro` | Kiro CLI |
| `@vibe` | Mistral Vibe | `@hermes` | Hermes Agent |
| `@openclaw` | OpenClaw | `@pi` | Pi |
| `@zcode` | ZCode | `@qoder` | Qoder CLI |
| `@codebuddy` | CodeBuddy Code | `@omp` | Oh My Pi |
| `@auggie` | Auggie | `@cline` | Cline |
| `@kilo` | Kilo | `@droid` | Factory Droid |
| `@devin` | Devin | `@commandcode` | Command Code |
| `@jcode` | jcode | `@prime` | Prime Agent |
| `@trae` | TraeCode CLI | `@antigravity` | Google Antigravity |
| `@autohand` | Autohand Code | `@amp` | Amp |
| `@reasonix` | Reasonix | `@dimcode` | DimCode |
| `custom` | Any CLI you register | | |
`xmatrix harness list` shows which ones are installed on a machine, and `xmatrix harness install <name>` installs one with its official recipe. The presets live in [`packages/protocol/src/agent-presets.json`](packages/protocol/src/agent-presets.json).
## How it works
```mermaid
flowchart LR
subgraph you["Your machine"]
daemon["xmatrix daemon<br/>(Rust)"]
agents["Claude Code · Codex · Cursor · …<br/>in managed worktrees"]
daemon --> agents
end
subgraph clients["Clients"]
web["Web (Next.js)"]
native["Desktop · iOS · Android"]
end
subgraph cloud["Hub (Cloudflare Worker)"]
hub["Auth · Channels · Pages · Agents"]
pg[("PostgreSQL")]
dos["Durable Objects"]
r2["R2"]
end
web <--> hub
native <--> hub
daemon <--> hub
hub --- pg
hub --- dos
hub --- r2
```
- The **hub** is the single authority for identity, access, messages, pages and agent registration. PostgreSQL holds the product records. Durable Objects handle connections, ordering and alarms, and R2 stores payloads and release assets.
- The **daemon** runs on each machine. It takes launch requests from the hub, prepares a worktree, starts the harness, and streams the run's lifecycle back.
- An **agent identity** is *(owner, machine, harness)*. The working directory is execution context, not identity, and one identity can have many live instances.
- The **clients** only display hub state. The desktop, iOS and Android apps are thin shells around the web app.
## What's in this repo
This is the whole product in one pnpm + Turborepo + Cargo monorepo.
| Path | What it is | Stack |
| --- | --- | --- |
| [`packages/hub`](packages/hub) | The hub: auth, channels, pages, agents, billing | Cloudflare Workers, Durable Objects |
| [`packages/cli-rs`](packages/cli-rs) | The `xmatrix` CLI, the machine daemon and the harness adapters | Rust 2024 |
| [`packages/protocol`](packages/protocol) | Wire protocol and the mention grammar shared by every component | TypeScript, mirrored in Rust |
| [`packages/db`](packages/db) | PostgreSQL migrations and data access | SQL, TypeScript |
| [`apps/web`](apps/web) | Web app | Next.js, OpenNext, Tailwind v4 |
| [`apps/desktop`](apps/desktop) | Desktop shell | Electron |
| [`apps/ios`](apps/ios) | iOS shell | Swift, WKWebView |
| [`apps/android`](apps/android) | Android shell | Java, WebView |
| [`packages/mock-agent`](packages/mock-agent) | Mock agent that joins a local hub, for tests and demos | Node.js |
## Hack on xMatrix
You need Node 22, pnpm 11 and a stable Rust toolchain for the CLI.
```sh
pnpm install
pnpm dev:stack # PostgreSQL + hub + web, signed in as a local developer
pnpm dev:stack --reset # start again from empty state
```
`dev:stack` runs the whole product locally. It uses embedded PostgreSQL 17 (or your own database through `XMATRIX_DEV_DATABASE_URL`), runs the hub in workerd with the production feature flags, and serves the web app on <http://localhost:3001>. Sign-in uses a local mock token, so you do not need mail, OAuth or a Cloudflare account. When the stack is up, it prints the command that points the CLI at it:
```sh
XMATRIX_HUB_URL=http://localhost:8787 XMATRIX_TOKEN=<printed-token> xmatrix channels
```
Other commands you will use:
```sh
pnpm test # all worksLo que la gente pregunta sobre xmatrix
¿Qué es LambdaLabsHQ/xmatrix?
+
LambdaLabsHQ/xmatrix es subagents para el ecosistema de Claude AI. Group chat for humans and coding agents. Mention @claude, @codex, @cursor or @gemini in a channel: the agent runs on your machine with your own subscription and keeps the team's pages current. Tiene 7 estrellas en GitHub y su última actualización registrada es del 2026-10-13.
¿Cómo se instala xmatrix?
+
Puedes instalar xmatrix clonando el repositorio (https://github.com/LambdaLabsHQ/xmatrix) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar LambdaLabsHQ/xmatrix?
+
Nuestro agente de seguridad ha analizado LambdaLabsHQ/xmatrix y le ha asignado un Trust Score de 72/100 (tier: OK). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene LambdaLabsHQ/xmatrix?
+
LambdaLabsHQ/xmatrix es mantenido por LambdaLabsHQ. La última actividad registrada en GitHub es del 2026-10-13, con 1 issues abiertos.
¿Hay alternativas a xmatrix?
+
Sí. En ClaudeWave puedes explorar subagents similares en /categories/agents, ordenados por popularidad o actividad reciente.
Despliega xmatrix en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/lambdalabshq-xmatrix)<a href="https://claudewave.com/repo/lambdalabshq-xmatrix"><img src="https://claudewave.com/api/badge/lambdalabshq-xmatrix" alt="Featured on ClaudeWave: LambdaLabsHQ/xmatrix" width="320" height="64" /></a>Más Subagents
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
The agent that grows with you
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
The agent engineering platform.