From deb9cc13454f9341a788bfb65a985c02555503b4 Mon Sep 17 00:00:00 2001 From: Uchenna Date: Mon, 2 Mar 2026 08:48:00 -0500 Subject: [PATCH] fix(discovery): return full wallet addresses in discover_agents output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The discover_agents output truncates owner addresses to 10 characters via .slice(0, 10), producing addresses like "0xF3F8Eb20..." that cannot be used with send_message or any other tool requiring a full wallet address. Remove the truncation so agents can discover other agents and contact them directly without intermediate address lookups. The full 42-character address adds ~8 tokens per agent to context — negligible cost compared to the operational impact of non-actionable discovery results. Co-Authored-By: Claude Opus 4.6 --- src/agent/tools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/tools.ts b/src/agent/tools.ts index 3b725b4c..df2b7cdc 100644 --- a/src/agent/tools.ts +++ b/src/agent/tools.ts @@ -1443,7 +1443,7 @@ Model: ${ctx.inference.getDefaultModel()} return agents .map( (a) => - `#${a.agentId} ${a.name || "unnamed"} (${a.owner.slice(0, 10)}...): ${a.description || a.agentURI}`, + `#${a.agentId} ${a.name || "unnamed"} (${a.owner}): ${a.description || a.agentURI}`, ) .join("\n"); },