From 0762a37d1c183cd223fb0378fbeeb05bca7179fc Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Tue, 14 Apr 2026 17:58:13 +0200 Subject: [PATCH] eager-load edit-text skill; document eager-loading rationale Skills are loaded into the system prompt from the first turn as an alternative to encoding guidance in MCP schemas. Co-Authored-By: Claude Sonnet 4.6 --- pkg/agent/core.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/agent/core.go b/pkg/agent/core.go index 77a17ae..c239974 100644 --- a/pkg/agent/core.go +++ b/pkg/agent/core.go @@ -48,7 +48,11 @@ func systemPrompt(cwd string) string { "SessionID": os.Getenv("OLLIE_SESSION_ID"), }) - for _, name := range []string{"reasoning", "memory", "task"} { + // These skills are intentionally eager-loaded into the system prompt so the + // bot uses the right tools from the first turn. This is an alternative to + // encoding tool guidance in MCP schemas — skills are richer, human-readable, + // and can be updated without changing server code. + for _, name := range []string{"reasoning", "memory", "task", "edit-text"} { data, err := skills.Read(name) if err == nil { fmt.Fprintf(&buf, "\n\n---\n\n%s", data)