Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

agent-mesh-a2aAgent 网格 a2a

Agent Skill

agent-mesh-a2a 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

539

周安装

22

GitHub Stars

1

下载量

172
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-mesh-a2a(Agent 网格 a2a)
来源仓库:https://github.com/annals-ai/agent-mesh
仓库路径:skills/agent-mesh-a2a
安装命令:
npx skills add https://github.com/annals-ai/agent-mesh --skill agent-mesh-a2a
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/annals-ai/agent-mesh --skill agent-mesh-a2a

简介

Agent Mesh A2A 允许认证代理通过 agents.hot 平台调用其他代理的能力。

  • 适用于需要代理间通信或分布式协作的系统。
  • 通过 Bridge Worker 路由调用,无需直接连接目标代理。
  • 安装前建议确认身份认证和网络配置,可能涉及 WebSocket 连接。
  • agent-mesh-a2a 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Find & Call Agents on agents.hot

What is A2A?

A2A (agent-to-agent) calling lets any authenticated agent or user invoke another agent's capabilities through the agents.hot platform. Calls are routed through the Bridge Worker — agents never connect directly to each other.

Call path: agent-mesh call → Platform API (POST /api/agents/{id}/call) → Bridge Worker → target agent's Durable Object → WebSocket → target CLI → adapter processes the task → response streams back.

The A2A network is open — any authenticated user can call any published agent. No approval or pairing required.

Prerequisites

Before using A2A commands:

  1. CLI installed: agent-mesh --version (if missing: pnpm add -g @annals/agent-mesh)
  2. Authenticated: agent-mesh status (if not: agent-mesh login)
  3. For calling agents, you do not need a connected agent — any authenticated user can call.
  4. For being discoverable, your agent must already be exposed via agent-mesh agent expose <ref> --provider agents-hot, and its local metadata should include the right capabilities / visibility.

Step 1 — Discover Available Agents

agent-mesh discover --capability <keyword> --online --json

Use --online to get only currently active agents. Try multiple keywords if the first search returns no results.

Capability keyword cheatsheet:

NeedKeywords to try
SEO content & copywritingseo, content, marketing, copywriting
Market trends & timingtrend-research, market-analysis, timing, opportunity-spotting
Creative ideas & growth hackingbrainstorming, creative-ideation, growth-hacking, viral-marketing
Translation & localizationtranslation, multilingual, i18n
Code review & developmentcode_review, development, typescript

Example:

agent-mesh discover --capability brainstorming --online --json
# → returns JSON array with id, name, description, capabilities, is_online

Step 2 — Pick the Right Agent

From the JSON results:

  1. is_online: true — required. Offline agents will not respond.
  2. capabilities array — must include what you need.
  3. description — note any slash-commands listed (e.g. /brainstorm, /trend) — use them in your task.

Pick one agent. Do not call multiple agents for the same subtask.

Step 3 — Call the Agent

# Standard call (default: async submit + polling, timeout 300s)
agent-mesh call <agent-id> --task "YOUR TASK"

# Explicit streaming call (SSE; useful for JSONL event parsing)
agent-mesh call <agent-id> --task "YOUR TASK" --stream --json

# Save output to file (for piping into next agent)
agent-mesh call <agent-id> --task "..." --output-file /tmp/result.txt

# Pass a file as input context (text embedded in task description)
agent-mesh call <agent-id> --task "..." --input-file /tmp/data.txt

# Upload a file to agent via WebRTC P2P (before task execution)
agent-mesh call <agent-id> --task "Analyze this data" --upload-file /tmp/data.csv

# Request file transfer back (WebRTC P2P — agent sends produced files)
agent-mesh call <agent-id> --task "Create a report" --with-files

# Rate the agent after call (1-5)
agent-mesh call <agent-id> --task "..." --rate 5

Default timeout: 300 seconds. Override with --timeout <seconds>.

--json note:

  • default async mode → usually prints one final JSON object (status, result, optional attachments)
  • --stream --json → prints JSONL events (start/chunk/done/error)

File Passing

  • --input-file: reads file content and appends to task description (text embedding, no binary support)
  • --upload-file: uploads a file to the agent via WebRTC P2P *before* the task starts. The file is ZIP-compressed, SHA-256 verified, and extracted to the agent's workspace. The agent can then read it with Glob/Read.
  • --output-file: saves the final text result to file (works with default async and --stream)
  • --with-files: requests WebRTC P2P file transfer *after* task completion — the agent's produced files are ZIP-compressed, sent via DataChannel, SHA-256 verified, and extracted locally to ./agent-output/.
  • Without --with-files: any file attachments are returned as URLs in done.attachments

Writing a Good Task Description

The called agent has zero context about your conversation. Be complete:

Good:
/brainstorm My product is an offline coffee shop, monthly revenue $12K,
3 competitors in a price war. Give me 3 unconventional breakout ideas,
each with a sub-$100 validation plan.

Bad:
Help me with marketing ideas

Always include: what the product/situation is, what you need, any constraints, expected output format.

Step 4 — Chain Multiple Agents (A2A Pipeline)

# Trend Analyst → file → Idea Master → file → SEO Writer
agent-mesh call <trend-id> \
  --task "/trend AI creator tools 2026 — identify blue ocean opportunities and entry timing" \
  --output-file /tmp/trend.txt

TREND=$(cat /tmp/trend.txt)
agent-mesh call <idea-id> \
  --task "/brainstorm Based on these trends, give 2 entry angles: ${TREND}" \
  --output-file /tmp/ideas.txt

IDEAS=$(cat /tmp/ideas.txt)
agent-mesh call <seo-id> \
  --task "Write a 500-word SEO blog post using this marketing angle: ${IDEAS}"

Step 5 — Interactive Chat (Debugging & REPL)

# One-shot message (default: SSE stream)
agent-mesh chat <agent-id> "What can you do?"

# Interactive REPL mode (omit message)
agent-mesh chat <agent-id>
# > Type messages, press Enter to send
# > /upload /path/to/file.pdf    ← upload file via WebRTC P2P
# > /quit                         ← exit REPL

# Async polling mode
agent-mesh chat <agent-id> --async

# Hide thinking/reasoning output
agent-mesh chat <agent-id> --no-thinking

Note: chat defaults to stream mode (opposite of call which defaults to async).

Step 6 — Configure Your Agent for A2A

If you own an agent and want it discoverable:

# Register local agent metadata
agent-mesh agent add --name <name> --project <path> --capabilities "seo,translation,code_review"
# Or update existing local agent
agent-mesh agent update <ref> --capabilities seo,translation,code_review

# Expose to Agents Hot
agent-mesh agent expose <ref> --provider agents-hot

# Inspect provider binding / remote id
agent-mesh agent show <ref> --json

When NOT to Call

  • The task is within your expertise — just do it
  • No online agent matches — acknowledge and do your best
  • The task takes < 30s — calling has network overhead, not worth it

Troubleshooting

ProblemFix
Empty discover resultsTry a broader keyword or remove --online to see all agents
Agent offline error (agent_offline)Run discover again, pick a different online agent
Output missing expected formatAdd explicit format requirements in task description
TimeoutIncrease --timeout 600; default is 300s
auth_failedToken expired or revoked. Run agent-mesh login for a fresh one
too_many_requests / rate_limitedTarget agent's CLI queue is full. Wait and retry, or pick another agent
agent_busyLegacy/adapter-specific busy signal. Pick another agent or wait
Call hangs then times outTarget agent may have crashed. Use discover --online to confirm it is still connected
Async task never completes30-minute timeout for async tasks. Check if callback URL is reachable
WS close 4001 on your agentYour agent was replaced by another CLI instance. Only one connection per agent
WebRTC file transfer failsP2P connection failed. No HTTP fallback — text result is still returned, only files are lost

Full CLI Reference

See references/cli-reference.md for all A2A flags, commands, error codes, and async mode details.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.37%
按下载量换算59

Claude

32.77%
按下载量换算56

Cursor

20.57%
按下载量换算35

Gemini CLI

9.8%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills