Skip to content

Managing LLM agents using a dedicated micro service #4492

Closed

Description

@bobbai00

Task Summary

Movitation

#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.

Proposed architecture

Image

Priority

P2 – Medium

Task Type

  • Code Implementation
  • Documentation
  • Refactor / Cleanup
  • Testing / QA
  • DevOps / Deployment

Activity

  1. added theissue type on Apr 24, 2026
  2. self-assigned this
    on Apr 24, 2026
  3. aleksandarperak33-hub commented on Apr 26, 2026

    @aleksandarperak33-hub

    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

  4. added a commit that references this issue on Apr 28, 2026
    dd39f93
  5. added a commit that references this issue on Jun 22, 2026
    7c557c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions