From 82ceaebbe6ee422e559046af4ccf87fc58318f2b Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Tue, 14 Apr 2026 19:41:27 +0200 Subject: [PATCH] agent: add OllieMountPath to system prompt template data Co-Authored-By: Claude Sonnet 4.6 --- pkg/agent/core.go | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkg/agent/core.go b/pkg/agent/core.go index a8f3f77..a65a98c 100644 --- a/pkg/agent/core.go +++ b/pkg/agent/core.go @@ -34,12 +34,19 @@ func systemPrompt(cwd string) string { cwd, _ = os.Getwd() } + ollieMountPath := os.Getenv("OLLIE") + if ollieMountPath == "" { + home, _ := os.UserHomeDir() + ollieMountPath = home + "/mnt/ollie" + } + data := map[string]string{ - "CWD": cwd, - "Platform": runtime.GOOS, - "Date": time.Now().Format("2006-01-02"), - "IsGitRepo": "unknown", - "SessionID": os.Getenv("OLLIE_SESSION_ID"), + "CWD": cwd, + "Platform": runtime.GOOS, + "Date": time.Now().Format("2006-01-02"), + "IsGitRepo": "unknown", + "SessionID": os.Getenv("OLLIE_SESSION_ID"), + "OllieMountPath": ollieMountPath, } dir := DefaultPromptsDir()