@howaboua/pi-auto-reasoning-tool
Pi package that gives agents a change_reasoning tool for adjusting reasoning level when substantial work is likely.
Package details
Install @howaboua/pi-auto-reasoning-tool from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@howaboua/pi-auto-reasoning-tool- Package
@howaboua/pi-auto-reasoning-tool- Version
0.1.11- Published
- Jul 18, 2026
- Downloads
- 863/mo · 361/wk
- Author
- howaboua
- License
- MIT
- Types
- extension
- Size
- 8.6 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@howaboua/pi-auto-reasoning-tool
Adds an agent-callable change_reasoning tool. The agent may raise its reasoning effort when the work gets harder, but the user's level at the start of the turn remains the minimum.
Install
pi install npm:@howaboua/pi-auto-reasoning-tool
Behavior
The tool accepts one parameter:
change_reasoning({ level: "low" | "medium" | "high" })
- Requests below the user's turn baseline keep the baseline.
- Users may select
xhighormax; agents cannot select those levels or lower them. - Pi may clamp a requested level when the current model does not support it. The result reports the applied level.
- After the full agent run settles—including retries, compaction recovery, and queued follow-ups—the extension restores the user's turn baseline.
The model guidance asks agents to change reasoning by work phase, not around individual tool calls.
Local development
bun install
bun run check
pi -e ./src/index.ts