From a2a-mod
A2A protocol client for Claude Code: Claude hands tasks to non-Claude worker agents over Agent2Agent and picks up their results.
6 events · 24 calls
Ships in a2a-mod. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callprocess.runhttp.fetchfs.readprompt.submitprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startcommand.run{command=a2a}prompt.submitui.render{component=ToolUse, props=?}ui.render{component=ToolResult, props=?}ui.render{component=AbovePrompt}ui.messageui.render{component=Pane, requestId=a2a-workers}tool.call{tool=mcp__a2a-mod__workers}tool.call{tool=mcp__a2a-mod__add_worker}tool.call{tool=mcp__a2a-mod__remove_worker}tool.call{tool=mcp__a2a-mod__send}tool.call{tool=mcp__a2a-mod__task}Every mods API method its source calls, by namespace
aftereverynowsleepregisterlistreadfetchrunsubmitgetsetgetsetregisteraskclosecopyfocusinvalidateopenresolvestatustoastWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub novusedge/a2a-mod --plugin a2a-mod