re_act
ReAct (Reason + Act) pattern for intelligent agents
What it does
The re_act plugin implements the ReAct pattern:
Acknowledge (after_user_input)
Before taking any action, the agent acknowledges the request in 1-2 sentences to show it understood — planning itself is left to the main agent.
Reflect (after_tools)
After each tool execution, the agent reflects on results and decides next steps.
Quick Start
Want to customize? Run co copy re_act to get an editable copy.
How it works
1. Acknowledge Phase
After receiving user input, the plugin acknowledges the request (not a plan — just confirms understanding):
2. Reflection Phase
After each batch of tools executes, the plugin reflects on the most recent result:
Combined with Eval Plugin
For debugging and testing, combine with the eval plugin:
Events Used
| Event | Handler | Purpose |
|---|---|---|
after_user_input | acknowledge_request | Acknowledge what the user is asking for |
after_tools | reflect | Reflect on tool results |
Source
connectonion/useful_plugins/re_act.py
ConnectOnion