@vtstech/pi-react-fallback
v1.2.0
Published
ReAct fallback extension for Pi Coding Agent
Downloads
2,272
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
