@vtstech/pi-react-fallback
ReAct fallback extension for Pi Coding Agent
Package details
Install @vtstech/pi-react-fallback from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@vtstech/pi-react-fallback- Package
@vtstech/pi-react-fallback- Version
1.2.1- Published
- May 5, 2026
- Downloads
- 2,298/mo · 26/wk
- Author
- vtstech
- License
- MIT
- Types
- extension
- Size
- 11.4 KB
- Dependencies
- 1 dependency · 1 peer
Pi manifest JSON
{
"extensions": [
"./react-fallback.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@vtstech/pi-react-fallback
ReAct fallback extension for the Pi Coding Agent.
Text-based tool calling bridge for models without native function calling support.
Install
pi install "npm:@vtstech/pi-react-fallback"
How It Works
Automatically loaded — no commands needed. When a model lacks native tool calling:
- Parses
Thought:,Action:,Action Input:patterns from model output - Multi-dialect support: classic ReAct (
Action:), Function (Function:), Tool (Tool:), Call (Call:) — each with dynamically-built regex patterns - Multiple regex strategies including parenthetical style and loose matching
- Bridges text-based tool calls into Pi's native tool execution pipeline
- Falls back when native tool calls fail
- Disabled by default; toggle via
/react-modewith persistent config across restarts
Links
License
MIT — VTSTech