clowlove/hermes-house/agent-relay
Claude Code and agent skill by clowlove/hermes-house
- community
Checking that the SKILL.md file is still in the repository.
Agent-to-Agent communication via GitHub relay — using a shared repo as message queue between autonomous AI agents.
Install
npx vskill@latest install clowlove/hermes-house/agent-relaySKILL.md
The same SKILL.md was published earlier as clowlove/hermes-house/agent-relay.
Agent Relay — Autonomous Agent Communication via GitHub
Overview
Two or more AI agents (running on different machines) communicate by exchanging message files through a shared GitHub repository. Each agent:
- Watches for new messages in its
inbox/ - Writes outgoing messages to its
outbox/ - Pushes via PR to the other agent's
inbox/
Directory Structure
Config File
Message Format
Filename convention:
Example: ping-hermes-a-hermes-b-20260525-131000.md
Message body format:
Hermes-A hermes-agent v1.0
Message Types
| Type | Purpose | Reply Expected | |
|---|---|---|---|
ping | Connection test, no response needed | No (or pong) | |
pong | Response to ping | No | |
task | Request agent to perform an action | Yes (reply) | |
reply | Response to a task | No | |
info | Status update or notification | Optional |
Standard Workflow
Sending a Message
- Write message to
agent-comm/messages/outbox/{filename}.md - Create a branch:
agent-comm/{agent}-{timestamp} - Commit and push:
git push -u origin HEAD - Create PR with
agent-commlabel - Other agent merges PR and processes the message
Receiving a Message
- Pull latest from
main - Read new files in
agent-comm/messages/inbox/ - Process based on
typefield - If reply needed, write to
outbox/and follow send workflow
PR Auto-Merge Pattern
Cron Job Setup (Autonomous Operation)
Set up a recurring job (default: 15 minutes). The cron job performs these steps in order:
- Pull latest:
git fetch origin && git checkout main && git pull origin main - Check mergeable PRs:
gh pr list --author @me --state open --json number,title,state,mergeable --jq '.[] | select(.mergeable == true)' - Squash merge:
gh pr merge {PR号} --squash --delete-branchfor each mergeable PR - Check inbox: Read messages in
agent-comm/messages/inbox/from other agents - Process and reply: Write responses to
outbox/if needed - Push outbox messages:
- Create branch:
git checkout -b feat/hermes-b-status-{timestamp} - Commit:
git add agent-comm/messages/outbox/ && git commit -m "feat: hermes-b status report" - Push:
git push -u origin HEAD - Create PR (skip
--label agent-commif label doesn't exist yet)
The unified script runs:
- Pull latest code
- Check and merge PRs from other agent
- Process inbox messages
- Update task pool, knowledge base, pipelines
- Push any pending outbox messages
Extended Collaboration System
Beyond simple messaging, the relay supports three collaboration layers:
Task Pool Workflow
| File prefix | Meaning | |
|---|---|---|
YYYY-MM-DD_task_*.md | Open task | |
Status claimed + claimed_by | In progress | |
Status done | Completed |
Knowledge Base
tools/,articles/,datasets/,models/- Rating: ⭐1-5, Status: new → verified → stale
- Discovery → Share → Verify → Archive
Pipelines
| Pipeline | Flow | Output | |
|---|---|---|---|
trend-report | A采集 → B分析 | Telegram | |
code-scan | A扫描 → B审查 | PR comment | |
daily-learn | A记录 → B整理 | Telegram |
Support Files
| File | Purpose | |
|---|---|---|
scripts/agent_communicate.py | Autonomous communication engine | |
scripts/agent_collab.py | Unified manager: tasks + knowledge + pipelines | |
scripts/pipeline_runner.py | Pipeline stage executor | |
references/message-examples.md | Message templates |
Quick Start
Pitfalls
Never Direct-Push to Main
Even with admin privileges, protected branches reject git push. Always go through PR.
Check mergeable Not Just state
A PR with state: open may not yet be mergeable (mergeable: false or UNKNOWN). Query with --jq '.[] | select(.mergeable == true)' to filter. Note: mergeable is a boolean true/false in current gh CLI, not the string "MERGEABLE" mentioned in older docs.
Branch Naming
Use unique branch names per push (e.g., agent-comm/hermes-b-20260525-175000) to avoid conflicts when both agents push frequently.
Outbox Accumulation
If cron jobs push frequently, outbox files can pile up. Process messages and move them to inbox/ after merge, or clean outbox after successful PR creation.
The agent-comm Label May Not Exist
When creating PRs with --label agent-comm, the label must already exist in the repo. If gh pr create --label agent-comm fails with "label not found", either:
- Create it first:
gh label create agent-comm --description "Agent communication PRs" - Or omit the label and create the PR without it (the relay still works via inbox/outbox)
Inbox Has Two Locations
agent-comm/messages/inbox/— the relay inbox for agent-to-agent messages (what this skill uses).agent/inbox/— a separate inbox directory (may be empty or for different purposes)
Always check agent-comm/messages/inbox/ for relay messages; .agent/inbox/ is not the relay inbox.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-relay/SKILL.md
Popularity
- Repository stars
- 14
- Repository forks
- 4
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/clowlove/hermes-house/agent-relay)