From eb1f02f668f35287c28307c0c67174538f6bdc21 Mon Sep 17 00:00:00 2001 From: Grivn Date: Wed, 27 May 2026 13:28:26 +0000 Subject: [PATCH] fix(claude): use valid memory subagent type Replace the Claude memory guidance's invalid Bash subagent type with the built-in general-purpose agent. This keeps setup-generated instructions aligned with Claude Code's available Task/Agent subagents while preserving the Sonnet model guidance. Validation: go build -o mnemon . --- docs/diagrams/mnemon-architecture.drawio | 2 +- internal/setup/assets/claude/guide.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/diagrams/mnemon-architecture.drawio b/docs/diagrams/mnemon-architecture.drawio index ac924c1..b45e782 100644 --- a/docs/diagrams/mnemon-architecture.drawio +++ b/docs/diagrams/mnemon-architecture.drawio @@ -1114,7 +1114,7 @@ - + diff --git a/internal/setup/assets/claude/guide.md b/internal/setup/assets/claude/guide.md index af6dc6e..a626f4f 100644 --- a/internal/setup/assets/claude/guide.md +++ b/internal/setup/assets/claude/guide.md @@ -53,7 +53,7 @@ Aim for a rough distribution: ~20% at 4-5, ~50% at 2-3, ~30% at 1. Avoid defaulting everything to 4-5 — that defeats the scoring system. **What to store**: both conclusions AND context. Prefer storing a little too much over missing something useful. -**How to store**: delegate to a Task sub-agent (`subagent_type="Bash"`, `model="sonnet"`). +**How to store**: delegate to a Task sub-agent (`subagent_type="general-purpose"`, `model="sonnet"`). Only provide what to store — content, category, importance, entities, and create/update intent. The sub-agent will read the mnemon skill and execute the correct commands itself.