v3.0 - Deterministic inter-agent messaging with global queues and config-driven project discovery.
Coordinate multiple AI agents with task queues that work identically from any directory.
- ✅ Deterministic:
cmshows ALL queues (global + projects) from any directory - 🌍 Global Queue: Cross-project tasks in
~/.local/share/kimi/queue/ - 📁 Project Queues: Project-specific tasks in
.agents/queue/ - ⚙️ Config-Driven: Register projects once, tools handle the rest
- 🔍 Universal Search:
claimandcompletefind tasks in any queue
# Check messages from ANYWHERE (shows global + all projects)
cm
# Register your project (one time)
agent-task register-project /path/to/your/project
# Create a global task
agent-task create "Research auth libraries" lead
# Create a project task
agent-task create --project /path/to/project "Fix login bug" tester
# Claim a task (searches all queues)
agent-task claim task-id-1234567890 tester
# Complete a task
agent-task complete task-id-1234567890There are two separate installations:
- Skill Installation - Lets Kimi read the skill documentation
- Tools Installation - Makes
cmandagent-taskavailable in PATH
# 1. Clone the repository
git clone https://github.com/gavinc/kimi-cli-inter-agent-messaging.git \
~/coding/skills/kimi-cli-inter-agent-messaging
# 2. Run the setup script (does both skill + tools installation)
cd ~/coding/skills/kimi-cli-inter-agent-messaging
./scripts/agent-setup /path/to/your/project
# 3. Symlink skill for Kimi discovery (manual step)
mkdir -p ~/.config/agents/skills
ln -s ~/coding/skills/kimi-cli-inter-agent-messaging \
~/.config/agents/skills/inter-agent-messaging# 1. Clone the repository
git clone https://github.com/gavinc/kimi-cli-inter-agent-messaging.git \
~/coding/skills/kimi-cli-inter-agent-messaging
# 2. INSTALL SKILL (for Kimi to discover)
mkdir -p ~/.config/agents/skills
ln -s ~/coding/skills/kimi-cli-inter-agent-messaging \
~/.config/agents/skills/inter-agent-messaging
# 3. INSTALL TOOLS (for execution)
mkdir -p ~/.local/bin
ln -s ~/coding/skills/kimi-cli-inter-agent-messaging/scripts/cm ~/.local/bin/cm
ln -s ~/coding/skills/kimi-cli-inter-agent-messaging/scripts/agent-task ~/.local/bin/agent-task
# 4. SETUP DIRECTORIES
mkdir -p ~/.local/share/kimi/queue/{todo,doing,done,.locks}
mkdir -p ~/.config/kimi/inter-agent-messaging
# 5. ENSURE PATH
export PATH="$HOME/.local/bin:$PATH" # Add to ~/.bashrc or ~/.zshrc
# 6. REGISTER PROJECTS
agent-task register-project /path/to/your/projectThe skill has two separate installation locations:
┌─────────────────────────────────────────────────────────────┐
│ 1. SKILL INSTALLATION (for Kimi to discover) │
├─────────────────────────────────────────────────────────────┤
│ ~/.config/agents/skills/ │
│ └── inter-agent-messaging -> ~/coding/skills/... │
│ ├── SKILL.md ← Kimi reads this │
│ ├── scripts/ │
│ │ ├── cm │
│ │ ├── agent-task │
│ │ └── agent-setup │
│ └── README.md │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ 2. TOOLS INSTALLATION (for execution) │
├─────────────────────────────────────────────────────────────┤
│ ~/.local/bin/ ← Must be in PATH │
│ ├── cm -> ~/coding/skills/.../scripts/cm │
│ └── agent-task -> ~/coding/skills/.../scripts/agent-task │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ DATA & CONFIG │
├─────────────────────────────────────────────────────────────┤
│ ~/.local/share/kimi/queue/ ← Global task queue │
│ ~/.config/kimi/inter-agent-messaging/projects │
│ ← Registered projects │
└─────────────────────────────────────────────────────────────┘
| Aspect | Skill Installation | Tools Installation |
|---|---|---|
| Purpose | Kimi reads SKILL.md for guidance |
Agents execute cm and agent-task |
| Location | ~/.config/agents/skills/ |
~/.local/bin/ |
| Discovered by | Kimi at startup | Shell PATH lookup |
| Required for | Kimi to know about the skill | Agents to call tools |
| Command | Purpose |
|---|---|
cm |
Check all tasks (global + all projects) |
agent-task create <title> [agent] |
Create global task |
agent-task create --project <path> <title> |
Create project task |
agent-task claim <id> <agent> |
Claim task (searches all queues) |
agent-task complete <id> |
Complete task (searches all queues) |
agent-task list |
List all queues (summary) |
agent-task register-project <path> |
Register project queue |
agent-task unregister-project <path> |
Remove project queue |
agent-task projects |
List registered projects |
Task queue in three states:
todo/- New tasks waitingdoing/- Tasks in progressdone/- Tasks completed
Sending a message:
# Create task file = Send message
agent-task create "Test new feature" testing-agent
# Optional: notify recipient
./scripts/dm testing-agentReceiving messages:
# Run cm = Check ALL tasks (deterministic from anywhere)
cm
# Shows:
# 🌐 GLOBAL QUEUE
# 📁 PROJECT QUEUES
# 📂 project-name
# 📬 TODO:
# 🔨 DOING:
# ✅ DONE:- SKILL.md - Complete skill documentation for Kimi (read by Kimi)
- This README - Installation and quick reference (for humans)
# Tools not in PATH. Either:
export PATH="$HOME/.local/bin:$PATH"
# or run directly:
~/.config/agents/skills/inter-agent-messaging/scripts/cm# Skill not installed for Kimi discovery. Run:
mkdir -p ~/.config/agents/skills
ln -s ~/coding/skills/kimi-cli-inter-agent-messaging \
~/.config/agents/skills/inter-agent-messagingagent-task register-project /path/to/your/projectMIT