Skip to content

[Feature]: Support Detached Agent Runs (Durable Jobs with Bounded Iterations) #29

@aviyaeli

Description

@aviyaeli

Feature Request

Introduce a first-class “Run / Job” primitive in CUGA:

  • Detached execution (run_id)
  • Persisted state & checkpoints
  • Bounded iteration support (e.g., max 20 loops)
  • Status tracking (RUNNING / PAUSED / FAILED / COMPLETED)
  • Ability to pause and request user input
  • Safe cancellation & expiry

Motivation / Problem

Today, CUGA agents only operate within an active chat session. Users want to run multi-step processes that:

  • Execute for several minutes (5–10 min)
  • Repeat multiple times (e.g., 10–20 iterations
  • Continue running after the UI session end
  • Report progress & final results
  • Pause to request additional user input if needed
  • Terminate safely on their own

This limits real-world automation scenarios and batch-style workflows.

Use Case

See: #26

Proposed Solution

TBD

Alternatives Considered

No response

Priority

Medium - Would be helpful

Implementation Complexity (if known)

Very Complex - Major architectural changes

Additional Context

No response

Checklist

  • I have searched existing issues and feature requests to ensure this is not a duplicate
  • I have provided a clear use case and motivation for this feature
  • I am willing to help test this feature once implemented
  • I am interested in contributing to the implementation of this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions