agent: add OllieMountPath to system prompt template data
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
74a6715cd7
commit
82ceaebbe6
|
|
@ -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()
|
||||||
|
|
|
||||||
Reference in New Issue