agent: add OllieMountPath to system prompt template data

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Levi Neely 2026-04-14 19:41:27 +02:00
parent 74a6715cd7
commit 82ceaebbe6
1 changed files with 12 additions and 5 deletions

View File

@ -34,12 +34,19 @@ func systemPrompt(cwd string) string {
cwd, _ = os.Getwd() cwd, _ = os.Getwd()
} }
ollieMountPath := os.Getenv("OLLIE")
if ollieMountPath == "" {
home, _ := os.UserHomeDir()
ollieMountPath = home + "/mnt/ollie"
}
data := map[string]string{ data := map[string]string{
"CWD": cwd, "CWD": cwd,
"Platform": runtime.GOOS, "Platform": runtime.GOOS,
"Date": time.Now().Format("2006-01-02"), "Date": time.Now().Format("2006-01-02"),
"IsGitRepo": "unknown", "IsGitRepo": "unknown",
"SessionID": os.Getenv("OLLIE_SESSION_ID"), "SessionID": os.Getenv("OLLIE_SESSION_ID"),
"OllieMountPath": ollieMountPath,
} }
dir := DefaultPromptsDir() dir := DefaultPromptsDir()