agent-chat

agent-chat is a command for coding agents from n24q02m/claude-plugins. It costs 15 tokens per session (2,248 once invoked), scanned A, original, Apache-2.0.

A shared-folder messaging tool for coding agents working together. It lets an agent read messages, post replies, and wait for responses in group channels.

In plain words
What is it for?
It helps agents check peer messages, send direct or channel replies, preview messages without marking them read, and wait for a response.
Why use it?
It keeps communication between agents in one place, so requests and replies are not lost or handled by editing someone else’s message.

Command

Part of the agent-chat-plugin plugin — 1 skill, 1 command, 3 hooks shipped together

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 commands/n24q02m/claude-plugins/agent-chat
Clone the repo
git clone --depth 1 https://github.com/n24q02m/claude-plugins

Or install agent-chat-plugin, the plugin that ships this one along with the rest of its 1 skill, 1 command, 3 hooks.

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-chat

README.md
[![agentmods](https://agentmods.dev/badge/commands/n24q02m/claude-plugins/agent-chat.svg)](https://agentmods.dev/commands/n24q02m/claude-plugins/agent-chat)
Your own site
<a href="https://agentmods.dev/commands/n24q02m/claude-plugins/agent-chat"><img src="https://agentmods.dev/badge/commands/n24q02m/claude-plugins/agent-chat.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,248 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.00015 $0.02248
Opus 5 $0.00008 $0.01124
Sonnet 5 $0.00003 $0.00450
Haiku 4.5 $0.00002 $0.00225

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

Security

Grade A, and why

agent-chat 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 3d 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.

plugins/agent-chat-plugin/commands/agent-chat.md · 163 lines

How it starts

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

Check the agent-chat shared folder for peer-agent messages and handle them.

Your identity is $AGENT_CHAT_NAME (set as an env var by the user; ask if it is unset). All commands below run python ${CLAUDE_PLUGIN_ROOT}/chat.py <cmd>.

  1. See what channels exist: channels. Each channel is a separate group chat; there may be more than one relevant to you.
  2. Read what's new for you: read <channel> --as $AGENT_CHAT_NAME for each channel you care about. This shows only messages addressed to you or broadcast, and advances your read cursor. Add --peek to look without advancing the cursor (use this if you just want a preview, not to consume the message).
  3. Reply: post <channel> --from $AGENT_CHAT_NAME --to <peer> --reply <seq> --title "..." --body "..." (or --body-file <path> for a long markdown body). <seq> is the message number you are replying to, shown in the seq: frontmatter of the message you read. Never edit another agent's message file -- always reply with a new one.
  4. Wait for a reply without spending tokens: after posting something that needs a response, wait <channel> --as $AGENT_CHAT_NAME --timeout 900 -- this blocks in-process (sleep-poll) and burns zero model tokens while idle, then prints the new message(s) when they arrive.

Structured task board commands use the same root/channel as messages. Active lease records are human-readable JSON under <root>/<channel>/claims/<task-id>.<owner>.json:

python ${CLAUDE_PLUGIN_ROOT}/chat.py task create <channel> <task-id> \
  --from $AGENT_CHAT_NAME --title "..."
python ${CLAUDE_PLUGIN_ROOT}/chat.py task list <channel>
python ${CLAUDE_PLUGIN_ROOT}/chat.py task show <channel> <task-id>
python ${CLAUDE_PLUGIN_ROOT}/chat.py task update <channel> <task-id> \
  --as $AGENT_CHAT_NAME --status in_progress
python ${CLAUDE_PLUGIN_ROOT}/chat.py task claim <channel> <task-id> \
  --as $AGENT_CHAT_NAME --lease-seconds 300
python ${CLAUDE_PLUGIN_ROOT}/chat.py task renew <channel> <task-id> \
  --as $AGENT_CHAT_NAME --lease-seconds 300
python ${CLAUDE_PLUGIN_ROOT}/chat.py task done <channel> <task-id> \
  --as $AGENT_CHAT_NAME
python ${CLAUDE_PLUGIN_ROOT}/chat.py task block <channel> <task-id> \
  --as $AGENT_CHAT_NAME
python ${CLAUDE_PLUGIN_ROOT}/chat.py task release <channel> <task-id> \
  --as $AGENT_CHAT_NAME
python ${CLAUDE_PLUGIN_ROOT}/chat.py task recover <channel> <task-id> \
  --as $AGENT_CHAT_NAME --reason "stale session" --lease-seconds 300
python ${CLAUDE_PLUGIN_ROOT}/chat.py task recover-pending <channel> \
  --as $AGENT_CHAT_NAME \
  [--resolve-publication rollback|published]

claim, renew, and recover accept --lease-seconds, --lease, or --ttl. The duration must be positive and finite. A claim requires all direct dependencies to be done, moves the task to in_progress, and updates the task owner/expiry atomically with the claim record. Only the owner can renew, release, or complete an unexpired claim. task done clears an active claim atomically; task release clears an active claim and both commands preserve the direct Task 3 transition when no claim exists. Generic task update cannot mutate an active lease; use the lease commands instead.

An expired claim is never silently stolen. task claim returns LEASE_RECOVERY_REQUIRED; stale task recover requires a new owner and non-empty --reason, and records previous_owner, previous_lease_expires_at, and recovery_reason before assigning the new lease. Lease mutations emit auditable lease.claimed, lease.renewed, lease.released, lease.recovered, or lease.completed events. If a process crashes during a two-file mutation, access fails closed with LEASE_TRANSACTION_PENDING until task recover-pending <channel> --as <agent> explicitly rolls back an unapplied marker or finishes cleanup of a published transaction. A legacy v1 marker with phase: applied and no transaction-specific audit proof returns LEASE_TRANSACTION_PUBLICATION_UNKNOWN; rerun with --resolve-publication rollback or published after operator inspection.

Read the full file on GitHub · 163 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. 3d ago First seen · 163 lines · 15 tokens per session scan A e26053228eec

Subscribe to this mod's changes

agent-chat is a command published in the GitHub repository n24q02m/claude-plugins (3 stars, last pushed 3d ago), licensed Apache-2.0. It adds 15 tokens to every session and 2,248 once invoked, about $0.0001 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-31.