fix: include TOOLS.md in agent context
TOOLS.md was listed in openclaw's migrateable files but was never actually loaded into the agent context. This commit adds TOOLS.md to: 1. LoadBootstrapFiles() - reads and injects TOOLS.md content into system prompt 2. sourcePaths() - tracks TOOLS.md for cache invalidation Now users can document custom tool usage instructions in TOOLS.md and they will be properly included in the LLM context. Fixes #1315 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6460a0a7c7
commit
85fdd7ba14
1 changed files with 2 additions and 0 deletions
|
|
@ -227,6 +227,7 @@ func (cb *ContextBuilder) sourcePaths() []string {
|
|||
filepath.Join(cb.workspace, "SOUL.md"),
|
||||
filepath.Join(cb.workspace, "USER.md"),
|
||||
filepath.Join(cb.workspace, "IDENTITY.md"),
|
||||
filepath.Join(cb.workspace, "TOOLS.md"),
|
||||
filepath.Join(cb.workspace, "memory", "MEMORY.md"),
|
||||
}
|
||||
}
|
||||
|
|
@ -437,6 +438,7 @@ func (cb *ContextBuilder) LoadBootstrapFiles() string {
|
|||
"SOUL.md",
|
||||
"USER.md",
|
||||
"IDENTITY.md",
|
||||
"TOOLS.md",
|
||||
}
|
||||
|
||||
var sb strings.Builder
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue