piagent_
← ~/map

$ cat ~/map/pi-tool-timeout.md

pi-tool-timeout

Timeout overlay for foreground tools: bash and powershell default to 300s, grep and find get a wrapped deadline.

extensions✓ Sep 18

Facts

repository
github.com/GhabiX/pi-tool-timeout ↗
GitHub Stars
★ 0
Forks
0
license
Apache-2.0
npm / mo
—
last push
Sep 17, 2026

install

Run pi install git:github.com/GhabiX/pi-tool-timeout (local-path and project-local installs are documented too); targets pi 0.85.x and needs Node 22.19.0 or newer, then restart pi or run /reload

## TL;DR

A pi extension that gives foreground tool calls a default timeout: bash and powershell run with 300 seconds when no explicit budget is set, grep and find are wrapped with a wall-clock deadline, and explicit timeouts are always honored.

## Key points

## FAQ

Q What timeout do my bash commands get?

300 seconds when the call sets no explicit timeout; an explicit positive value is honored as-is. The only technical upper bound is Node's timer limit of roughly 24.8 days, matching pi's native bash timer.

Q Does installing it change which tools are active?

No. The wrapped grep and find registration restores the previous active set, so installing the package does not enable them; the wrap applies when you enable those tools yourself.

Q Can it sit on top of another extension that already overrides bash?

No — same-name extension tools are first-wins in pi. The overlay wraps the builtins only when no earlier extension registered the same name.

## References

## Related entries

## Guides

Last updated: Sep 18, 2026