diff --git a/dot_pi/agent/extensions/default-tools.ts b/dot_pi/agent/extensions/default-tools.ts new file mode 100644 index 00000000..d950aefb --- /dev/null +++ b/dot_pi/agent/extensions/default-tools.ts @@ -0,0 +1,18 @@ +/** + * Enable All Built-in Tools + * + * Activates grep (rg) and find (fd) tools on session start, + * in addition to the default read, bash, edit, write. + */ + +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; + +export default function defaultTools(pi: ExtensionAPI) { + pi.on("session_start", () => { + const current = new Set(pi.getActiveTools()); + current.add("grep"); + current.add("find"); + + pi.setActiveTools(Array.from(current)); + }); +}