Skip to main content
ClaudeWave
Skill1.3k repo starsupdated today

agent-communication

The agent-communication skill enables inter-agent coordination within the ai-devkit ecosystem by discovering active agents, retrieving their recent context, and sending or receiving messages. Use this when a Claude Code instance or other AI agent needs to locate collaborating agents, share information bidirectionally, or coordinate tasks across a distributed agent network.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/codeaholicguy/ai-devkit /tmp/agent-communication && cp -r /tmp/agent-communication/skills/agent-communication ~/.claude/skills/agent-communication
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Agent Communication

Use `ai-devkit agent ...` to discover and communicate with active agents. If `ai-devkit` is not on PATH, use `npx ai-devkit@latest agent ...`.

## Commands

```bash
ai-devkit agent list --json
ai-devkit agent detail --id <agent-name> --json --tail 20
ai-devkit agent send --id <agent-name> "<message>"
ai-devkit agent send --id <agent-name> --wait --timeout 120000 --json "<message>"
<command> 2>&1 | ai-devkit agent send --id <agent-name> --stdin
```

## Notes

- `list --json` returns active agents with fields such as `name`, `type`, `status`, `summary`, `projectPath`, and `lastActive`.
- Use the `name` from `list --json` as `--id`. Partial matches are supported, but exact names are safer.
- Use `detail --json --tail <n>` to read recent context from an agent before deciding what to send.
- `send --wait` waits for a reply; add `--json` when the response should be machine-readable.
- `send --stdin` forwards piped command output or larger text.