From a60340c589a5092cb973f4e757bbc9bc66ae6be5 Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Fri, 16 Jan 2026 09:04:31 -0800 Subject: [PATCH] fix: improve skill loading feedback to prevent subagent hallucination (#564) Co-authored-by: Letta --- src/agent/subagents/builtin/recall.md | 2 +- src/tools/impl/Skill.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/agent/subagents/builtin/recall.md b/src/agent/subagents/builtin/recall.md index e0378e6..ada9958 100644 --- a/src/agent/subagents/builtin/recall.md +++ b/src/agent/subagents/builtin/recall.md @@ -16,7 +16,7 @@ You are a subagent launched via the Task tool to search conversation history. Yo Skill({ command: "load", skills: ["searching-messages"] }) ``` -The skill content will appear in your loaded_skills block with script paths and search strategies. +After loading, your `loaded_skills` memory block contains the full instructions with ready-to-use bash commands. Follow them directly - do not search for files or guess at commands. ### Step 2: Search the parent agent's history diff --git a/src/tools/impl/Skill.ts b/src/tools/impl/Skill.ts index 82beed5..f57ca20 100644 --- a/src/tools/impl/Skill.ts +++ b/src/tools/impl/Skill.ts @@ -324,7 +324,9 @@ export async function skill(args: SkillArgs): Promise { // Now we can report success for (const skillId of preparedSkills) { - results.push(`"${skillId}" loaded`); + results.push( + `"${skillId}" loaded. Contents have been placed into your memory - check your 'loaded_skills' block for instructions.`, + ); } // Update the cached flag