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()
|
||||
}
|
||||
|
||||
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()
|
||||
|
|
|
|||
Reference in New Issue