mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
feat(coding-agent): support +name/-name in defaultTools
Entries of only +name/-name modify the inherited tool selection, so "defaultTools": ["+codemode"] enables codemode without repeating the defaults. Project entries layer on top of user settings. Document how to enable codemode without MCP and how to use classifier models from it.
This commit is contained in:
parent
4df1574339
commit
30a1d1849d
14 changed files with 185 additions and 18 deletions
|
|
@ -36,7 +36,8 @@ const resourceLoader = new DefaultResourceLoader({
|
|||
await resourceLoader.reload();
|
||||
|
||||
const settingsManager = SettingsManager.create(cwd);
|
||||
settingsManager.applyOverrides({ defaultTools: ["read", "bash", "edit", "write", "codemode", "tool_search"] });
|
||||
// `+name` adds to the configured default tools instead of replacing them.
|
||||
settingsManager.applyOverrides({ defaultTools: ["+codemode", "+tool_search"] });
|
||||
|
||||
const { session } = await createAgentSession({
|
||||
resourceLoader,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue