Skill: Agent Messaging (bus local A2A)

SkillCommunication

Usar cuando un agente debe enviar un mensaje a otro agente con roles y receipts, sin pasar por el usuario. Triggers: mensaje a otro agente, agent-message, notify agent, inbox.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Skill: Agent Messaging (bus local A2A) skill

What this skill tells your AI

The instructions your AI receives, as published by gonzalezpazmonica/savia in .claude/skills/agent-messaging/SKILL.md and read by ahel’s review.

Patrón extraído de Prime Agent (SE-347): agent_message.send(...) con roles (parent/child/steer/follow_up) y receipts (delivered/queued), broadcast y ack. Savia lo implementa sobre ficheros JSONL en ~/.savia/msg (CRIT-001: sin red, sin proveedor cloud).

Authoritative Paths

Lee estos paths antes de actuar.

ParaLee este path
Script del busscripts/agent-messaging.sh
Colas (runtime)~/.savia/msg/
Protocolo handoff existentedocs/agent-notes-protocol.md
Lección origenoutput/research/prime-agent-eval/lecciones-prime-agent-20260827.md

Modelo

  • inbox por receptor: ~/.savia/msg/inbox/<agente>.jsonl
  • ledger global: ~/.savia/msg/ledger.jsonl
  • Mensaje: {id, ts, from, to, role, message, status, ack_at}
  • Receipts: queued (ledger) → delivered (en inbox) → read (ack)
  • Roles: parent (de orquestador a subagente), child (de subagente a orquestador), steer (redirección), follow_up (default)

Cuándo usar

  • Un orquestador quiere delegar a N subagentes y recoger respuestas después (complementa parallel-dispatch, que recoge por fichero).
  • Un agente quiere notificar a otro sin esperar su turno ni pasar por el user.
  • Sustituye al handoff por notas cuando necesitas estado (leído/entregado).

Uso

# enviar (stdout = id; estado en stderr)
bash scripts/agent-messaging.sh send --to dev --role child --message "revisa la API" --from orchestrator
# broadcast a todas las inbox conocidas
bash scripts/agent-messaging.sh send --to all --broadcast --message "standup" --role steer
# listar inbox (--unread)
bash scripts/agent-messaging.sh list --inbox dev --unread
# acusar recibo (receipt -> read)
bash scripts/agent-messaging.sh ack --id <msgid> --as dev
# estado
bash scripts/agent-messaging.sh status --id <msgid>

Reglas

  • CRIT-001: las colas viven en ~/.savia/msg (disco propio). Nunca en el repo.
  • Un agente NO debe leer el inbox de otro (solo el suyo o el que le corresponda).
  • No uses el bus para datos N3+ fuera de disco propio — el bus es local, pero el contenido sigue sujeto a confidencialidad por nivel.
  • Compatible con agent-notes-protocol.md para handoff formal (el bus es el canal, las notas el contenido estructurado).

Related

  • scripts/agent-messaging.sh · parallel-dispatch (recoger por fichero) · agent-notes-protocol.md (handoff formal)

Signals

GitHub stars
50
Forks
12
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
agent-messaging-2
Source
github.com/gonzalezpazmonica/savia