fix: improve skill loading feedback to prevent subagent hallucination (#564)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-16 09:04:31 -08:00
committed by GitHub
parent 3482d7d11a
commit a60340c589
2 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -324,7 +324,9 @@ export async function skill(args: SkillArgs): Promise<SkillResult> {
// 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