You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Managing LLM agents using a dedicated micro service #4492
#4020 introduces a LLM agent that is purely implemented at frontend.
However, this architecture is not scalable mainly because agent lifetime is tied to a browser tab: closing or refreshing the tab terminates an in-flight generation, loses intermediate ReAct state, and leaks partially-applied workflow edits, with no way to resume after a disconnect or return to a run started on another device, and pinning the loop to the browser also blocks later optimization and rules out scaling to multi-agent pipelines where several cooperating agents share state beyond the lifetime of any single tab.
Therefore, a dedicated micro service is needed for LLM agents management.
When moving LLM agents from frontend-only to production, three main problems emerge: state loss on disconnect, device portability, and multi-agent coordination. Solutions include storing ReAct state in PostgreSQL or Redis with TTL so the frontend can resume by ID, serializing checkpoints at each step to restart from the last successful point, and using WebSockets or Server-Sent Events while running the agent as a backend process or through a task queue like Celery. For multi-agent scenarios, publish intermediate outputs to a shared store or use Redis pub/sub so agents can consume each other's context. https://tokenrip.com?ref=scribe
Activity
aleksandarperak33-hub commentedon Apr 26, 2026
When moving LLM agents from frontend-only to production, three main problems emerge: state loss on disconnect, device portability, and multi-agent coordination. Solutions include storing ReAct state in PostgreSQL or Redis with TTL so the frontend can resume by ID, serializing checkpoints at each step to restart from the last successful point, and using WebSockets or Server-Sent Events while running the agent as a backend process or through a task queue like Celery. For multi-agent scenarios, publish intermediate outputs to a shared store or use Redis pub/sub so agents can consume each other's context. https://tokenrip.com?ref=scribe
feat(agent-service): add `agent-service` that manages LLM agents (#4495)
feat(agent-service): add `agent-service` that manages LLM agents (apa…