agent-messaging

agent-messaging is a skill for Claude Code, Codex from davila7/claude-code-templates. It costs 64 tokens per session (823 once invoked), scanned A, original, MIT.

A local command-line messaging system for sending and receiving cryptographically signed messages between AI agents.

In plain words
What is it for?
Use it to create an agent identity, send messages, check an inbox, read messages, and reply to agents on the local machine or connected mesh.
Why use it?
It provides a defined way for agents to communicate, reply, and verify messages instead of relying on informal or unsigned exchanges.

Skill for Claude CodeCodex

About the project

Claude Code Templates is a command-line tool and catalogue for configuring Anthropic’s Claude Code with agents, commands, settings, hooks, integrations, skills, and project templates. Developers use it to browse and install reusable components for their coding workflows. The catalogue includes many of these Claude Code components.

davila7/claude-code-templates · 30,520 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/davila7/claude-code-templates/agent-messaging
Any agent
npx skills add davila7/claude-code-templates --skill agent-messaging
Clone the repo
git clone --depth 1 https://github.com/davila7/claude-code-templates

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-messaging

README.md
[![agentmods](https://agentmods.dev/badge/skills/davila7/claude-code-templates/agent-messaging.svg)](https://agentmods.dev/skills/davila7/claude-code-templates/agent-messaging)
Your own site
<a href="https://agentmods.dev/skills/davila7/claude-code-templates/agent-messaging"><img src="https://agentmods.dev/badge/skills/davila7/claude-code-templates/agent-messaging.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 823 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00064 $0.00823
Opus 5 $0.00032 $0.00411
Sonnet 5 $0.00013 $0.00165
Haiku 4.5 $0.00006 $0.00082

Measured 5d ago against content hash 79505d990103, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-messaging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cli-tool/components/skills/ai-maestro/agent-messaging/SKILL.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Messaging Protocol (AMP)

Send and receive cryptographically signed messages between AI agents. AMP works locally by default -- no external dependencies needed for basic messaging. Part of the AI Maestro suite.

Prerequisites

Install the AMP CLI scripts:

# From the AI Maestro plugin
git clone https://github.com/23blocks-OS/ai-maestro-plugins.git
cd ai-maestro-plugins && ./install-messaging.sh -y

Scripts install to ~/.local/bin/ (ensure it's in your PATH).

Quick Start

1. Initialize identity (first time)

amp-init --auto

2. Send a message

amp-send alice "Hello" "How are you?"

3. Check inbox

amp-inbox

4. Read a message

amp-read <message-id>

5. Reply

amp-reply <message-id> "Got it, working on it now"

Address Formats

Format Example Delivery
Local name alice Same machine
Local qualified [email protected] Within mesh
External [email protected] Via provider (requires registration)

Core Commands

Command Description
amp-init --auto Create agent identity
amp-send <to> <subject> <body> Send a message
amp-inbox Check inbox (add --all for read messages)
amp-read <id> Read a specific message
amp-reply <id> <body> Reply to a message
amp-delete <id> Delete a message
amp-status Show identity and registrations
amp-identity Show current identity

Message Options

# Set priority
amp-send alice "Deploy" "Ready for prod" --priority urgent

# Set type
amp-send alice "Review PR #42" "Please review" --type request

# Attach files
amp-send alice "Report" "See attached" --attach report.pdf

Message Types and Priorities

Type Use Case Priority When
notification General info (default) normal Standard (default)
request Asking for something urgent Immediate attention
task Assigned work high Respond soon
handoff Transferring context low When convenient
status Progress update

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 103 lines · 64 tokens per session scan A 79505d990103

Subscribe to this mod's changes

agent-messaging is a skill published in the GitHub repository davila7/claude-code-templates (30,520 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 823 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.