React Agent Hooks
github.com
github.com
For the UI, we can show stuff dynamically with JSX; and the JSX would include actions that let user modify the state; the updated the state would trigger a re-rendering of UI to reflect the latest the state.
What if we can apply this paradigm to model Human + AI interacting with a shared piece of state? We can let React and LLM see the same state and use the same tools to change that change.
Maybe useEffect can help agent stay in an infinite loop? The "foot gun" is finally useful!