Skip to content

Migrate anyterminal_agent off Ray #6434

Open

Description

@linear-code

responses_api_agents/anyterminal_agent declares ray_enabled = True.

How it uses Ray:

  • Each task runs a Gym agent harness inside a Terminal Bench task sandbox, from a Ray task in app.py (scheduling_strategy="SPREAD", num_cpus=0.1, runtime_env={"py_executable": sys.executable}).
  • Tasks that ask for GPUs get num_gpus set on the Ray task.

Proposed replacement: drive the task sandbox through the Sandbox API, with async Gym orchestration and the provider's capacity controls in place of the outer Ray task. First decide whether GPU tasks still need Ray placement.

Done when: the server no longer declares ray_enabled = True on main. Alternatively, its README documents which distributed-systems requirement Ray satisfies and why a sandbox, bounded local concurrency or a persistent endpoint is not enough. Tracked in the checklist on #3669.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions