It sounds like two different ideas, one for the Flux / uniflow pattern, and the other for using the react hooks as an interface. These are two separate things.
Personally I'm not fond of the React hook pattern. It's actually breaking the functional programming approach (because it's literally side effects). That said, it has proven to be an interface that is easy to use, and an intuitive abstraction (although I think it's the wrong abstraction if the objective is more functional approach).
The suggestion to use the Flux pattern to build agents is really interesting. Redux would be a good library to use here. On a more meta level, if AI is going to continue getting smarter and having more agentic features, then using patterns to build agents is probably a short term solution, since eventually this will all be handled by one AI as they get smarter and more capable.
React hooks can help manage the state and tools for LLM agents. Hooks are good abstraction for dynamically composing data and behavior for both human user and LLM. It also lets human and LLM collaborate on the same UI without communication overhead.
Personally I'm not fond of the React hook pattern. It's actually breaking the functional programming approach (because it's literally side effects). That said, it has proven to be an interface that is easy to use, and an intuitive abstraction (although I think it's the wrong abstraction if the objective is more functional approach).
The suggestion to use the Flux pattern to build agents is really interesting. Redux would be a good library to use here. On a more meta level, if AI is going to continue getting smarter and having more agentic features, then using patterns to build agents is probably a short term solution, since eventually this will all be handled by one AI as they get smarter and more capable.
Source code and demos: https://github.com/chuanqisun/react-agent-hooks