A2a Gateway
Agent Buildinga2a-gatewayA2a Gateway is an Agent Skill for agent building published in the adolfousier/opencrabs repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Agent-to-Agent (A2A) protocol gateway reference. JSON-RPC 2.0 peer-to-peer agent communication. (/a2a-gateway, a2a, agent protocol)
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/adolfousier/opencrabs/blob/HEAD/src/docs/reference/templates/skills/a2a-gateway/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/a2a-gateway, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
A2A Gateway Reference
OpenCrabs exposes an A2A Protocol HTTP gateway for peer-to-peer agent communication.
What it does
Other A2A-compatible agents send tasks via JSON-RPC 2.0. OpenCrabs processes them using its full tool suite and returns results.
Endpoints
GET /.well-known/agent.json— Agent Card discovery (skills, capabilities)POST /a2a/v1— JSON-RPC 2.0 (message/send,tasks/get,tasks/cancel)GET /a2a/health— Health check
Setup
Enable in ~/.opencrabs/config.toml:
[a2a]
enabled = true
bind = "127.0.0.1"
port = 18790
Bee Colony Debate
Multi-agent structured debate with knowledge-enriched context from QMD memory search. Configurable rounds, confidence-weighted consensus based on ReConcile (ACL 2024).
Tool: a2a_send
| Param | Required | What |
|---|---|---|
action | Yes | discover, send, get, cancel |
url | Yes | Base URL of remote agent (e.g. http://127.0.0.1:18790) |
message | For send | Text to send |
task_id | For get/cancel | Task ID to check/cancel |
context_id | Optional | Continue a conversation |
api_key | Optional | Bearer token for authenticated endpoints |