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 <noreply@anthropic.com>
This commit is contained in:
Levi Neely 2026-04-14 17:58:13 +02:00
parent 13590a84e7
commit 0762a37d1c
1 changed files with 5 additions and 1 deletions

View File

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