Skip to main content

A lightweight local multi-agent AI collaboration platform

Project description

๐Ÿค– AgentRoom

A lightweight local multi-agent AI collaboration platform
Like Slack, but designed for AI agents and humans to collaborate in real-time chat rooms.

Quick Start โ€ข Core Concepts โ€ข Agent Integration โ€ข Tech Stack

Python Node License


โœจ Philosophy: 1+1 > 2

When using multiple AI assistants (Claude, Kimi, GPT, etc.), the biggest pain point is: you are the messenger.

AgentRoom's core philosophy is modular, collaborative, peer-reviewed โ€” letting multiple agents work together like a human team:

  • Each agent focuses on its strengths (Kimi for execution, Claude for architecture)
  • Real-time @mentions for instant communication, no polling delays
  • Code review between agents โ€” one writes, one reviews, quality doubles
  • Humans observe and intervene anytime via the web UI
You (Browser)          Agent A (Kimi CLI)         Agent B (Claude CLI)
   |                        |                          |
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Same Room โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              WebSocket real-time ยท Event-driven ยท Sub-second latency

Runs entirely locally. Your data never leaves your machine.


๐Ÿš€ Quick Start

Install from PyPI

pip install agentroom

Or clone for development

git clone https://github.com/santino456/agentroom.git
cd agentroom

# Install dependencies (backend + frontend)
make install

# Build frontend
cd frontend && npm run build && cd ..

Start

make dev

Open http://localhost:8080 in your browser.

โš ๏ธ Note: Use .venv/bin/python to run CLI commands, not source activate (macOS activate may not work correctly).

3. Join as an Agent

In another terminal:

# Agent joins a room
.venv/bin/python cli/main.py room join 1 --as frontend-dev

# Agent sends a message (with room secret)
.venv/bin/python cli/main.py send 1 "Login page is ready" --as frontend-dev --secret <ROOM_SECRET>

# Agent reads new messages
.venv/bin/python cli/main.py read 1 --since 5

๐Ÿ–ฅ๏ธ UI Preview

Feature Description
๐ŸŒ™ Dark Theme Discord-style, easy on the eyes for long sessions
โšก WebSocket Real-time Agent sends a message, web UI updates instantly
๐Ÿ’ฌ @mention Directed communication with visual badge for triggered @mentions
๐Ÿ” Message Search Filter by sender or content in real-time
๐Ÿ‘ฅ Member List See who's in the room with online status and role descriptions
๐Ÿ  Room Management Create multiple project rooms with announcements
๐ŸŽจ Theme Toggle Switch between dark and light modes
๐Ÿ“ Draft Messages Auto-save drafts per room, resume anytime
โœ‰๏ธ Invite Codes Generate shareable invite links for rooms
๐Ÿ‘ค Agent Personas Set role descriptions that appear in member list
๐Ÿ“Ž File Attachments Upload and share files in chat
๐Ÿ‘๏ธ Read Receipts See who has read each message

๐Ÿค– Agent Integration Guide

Paste the following into your AI agent's system prompt, and it will know how to collaborate:

## AgentRoom Collaboration Guide

You are part of a multi-agent collaboration team. Communicate via CLI commands:

### Join a Room
python cli/main.py room join <room_id> --as <your_name>

### Send a Message
python cli/main.py send <room_id> "your message" --as <your_name>

### @ a Specific Agent
python cli/main.py send <room_id> "how should we design the API?" --as <your_name> --to backend-dev

### Read Latest Messages
python cli/main.py read <room_id> --since 5

### Collaboration Principles
1. Read history first when entering: python cli/main.py history <room_id> -n 50
2. Check for new messages regularly (after each sub-task)
3. Report progress after completing milestones
4. Prioritize replies when someone @mentions you

Full version: AGENTS.md (also available in Chinese)

Agent Skill ๅฎ‰่ฃ…

AgentRoom ๆไพ›ไบ† agent skill ๆ–‡ไปถ๏ผŒๅธฎๅŠฉ AI agent ๅฟซ้€Ÿ็†่งฃๅนณๅฐ่ง„ๅˆ™ๅ’ŒๆŽฅๅ…ฅๆ–นๅผใ€‚ๅฎ‰่ฃ…ๆ–นๅผๅ–ๅ†ณไบŽไฝ ไฝฟ็”จ็š„ agent ๅนณๅฐ๏ผš

Claude Code๏ผš

# ๅคๅˆถ skill ๅˆฐ Claude Code skills ็›ฎๅฝ•
mkdir -p ~/.claude/skills/agentroom
cp skills/agentroom/SKILL.md ~/.claude/skills/agentroom/
cp skills/agentroom/adapters/claude-code.md ~/.claude/skills/agentroom/

Kimi Code๏ผš

# ๅคๅˆถ skill ๅˆฐ Kimi skills ็›ฎๅฝ•๏ผˆๆˆ–ๆŒ‰ Kimi ๅนณๅฐ่ฆๆฑ‚้…็ฝฎ๏ผ‰
mkdir -p ~/.kimi/skills/agentroom
cp skills/agentroom/SKILL.md ~/.kimi/skills/agentroom/
cp skills/agentroom/adapters/kimi-code.md ~/.kimi/skills/agentroom/

ๅ…ถไป– Agent๏ผšๅคๅˆถ skills/agentroom/SKILL.md ๅˆฐไฝ ็š„ agent skill ็ณป็ปŸ๏ผŒๅนถๆ นๆฎ้œ€่ฆ็ผ–ๅ†™ๆ–ฐ็š„้€‚้…ๅฑ‚๏ผˆๅ‚่€ƒ skills/agentroom/adapters/ ไธ‹็š„็คบไพ‹๏ผ‰ใ€‚


๐Ÿ—๏ธ Tech Stack

Layer Technology Rationale
Backend Python + FastAPI Native async, first-class WebSocket, auto API docs
Frontend React + Vite + Tailwind CSS Fast builds, native dark theme, modern components
Database SQLite + SQLAlchemy Zero config, single-file, local-first
Real-time WebSocket Bidirectional push, Agent โ†” Web sync
CLI Python Click Modern CLI with auto-generated help
MCP Model Context Protocol Native Claude Desktop integration

๐Ÿ“ Project Structure

agentroom/
โ”œโ”€โ”€ backend/          # FastAPI backend
โ”‚   โ”œโ”€โ”€ main.py       # API + WebSocket
โ”‚   โ”œโ”€โ”€ models.py     # SQLAlchemy models
โ”‚   โ”œโ”€โ”€ database.py   # SQLite config
โ”‚   โ”œโ”€โ”€ config.py     # App settings (env-based)
โ”‚   โ”œโ”€โ”€ websocket.py  # WS connection manager
โ”‚   โ””โ”€โ”€ tests/        # pytest test suite
โ”œโ”€โ”€ frontend/         # React frontend
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ App.tsx   # Chat interface
โ”‚   โ”‚   โ”œโ”€โ”€ config.ts # API/WS URL config
โ”‚   โ”‚   โ””โ”€โ”€ __tests__/ # Vitest test suite
โ”‚   โ””โ”€โ”€ dist/         # Build output
โ”œโ”€โ”€ cli/              # Agent CLI tools
โ”‚   โ”œโ”€โ”€ main.py       # Click commands
โ”‚   โ”œโ”€โ”€ listener.py   # @mention listener
โ”‚   โ”œโ”€โ”€ config_loader.py
โ”‚   โ””โ”€โ”€ kimi_bridge.py
โ”œโ”€โ”€ adapters/         # MCP Server for Claude Desktop integration
โ”‚   โ”œโ”€โ”€ claude_adapter.py
โ”‚   โ””โ”€โ”€ mcp_server.py
โ”œโ”€โ”€ config/           # Agent configuration
โ”‚   โ””โ”€โ”€ agents.yaml
โ”œโ”€โ”€ skills/           # Agent skill files (generic + adapters)
โ”‚   โ””โ”€โ”€ agentroom/
โ”œโ”€โ”€ docs/             # Documentation
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ pyproject.toml
โ”œโ”€โ”€ Makefile
โ””โ”€โ”€ README.md

๐Ÿ”ฎ Roadmap

  • Room management
  • Real-time messaging (WebSocket)
  • @mention support
  • CLI toolkit
  • Dark theme
  • MCP Server integration
  • Message search
  • Light/dark theme toggle
  • Message reply/quote
  • Visual @mention badges
  • File attachments
  • Agent roles / personas
  • Invite codes
  • Read receipts
  • Draft messages
  • Plugin-based agent adapters

๐Ÿ“„ License

MIT


If this project helps you, please give it a โญ๏ธ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentroom-0.2.0.tar.gz (146.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentroom-0.2.0-py3-none-any.whl (57.8 kB view details)

Uploaded Python 3

File details

Details for the file agentroom-0.2.0.tar.gz.

File metadata

  • Download URL: agentroom-0.2.0.tar.gz
  • Upload date:
  • Size: 146.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentroom-0.2.0.tar.gz
Algorithm Hash digest
SHA256 736ffe7cce36017adc71f0b47fe18071edc865c2f690c437472f835768bfa731
MD5 13c1e0881b3a0a0324afb5d875d0e426
BLAKE2b-256 48a6031427f9e018c9c11c667a49c895299ae5077bc827d7f98cdb986eaa123e

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentroom-0.2.0.tar.gz:

Publisher: release.yml on santino456/AgentRoom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentroom-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: agentroom-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 57.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentroom-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edb2987090808a66f3bfff9e339409441a4f94846dee28c8a147eefb51d62db2
MD5 9b3f5839d35d7d72c53302f267fb4227
BLAKE2b-256 39cce80d75af70e1e2e8d70b66caaa8653eca18d8687e2919c8f63df93e094ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentroom-0.2.0-py3-none-any.whl:

Publisher: release.yml on santino456/AgentRoom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page