Skip to content

Agent Flow: sub-agent hangar and the main UFO controlling from the tower #453

Backlog

Description

@aMonteSl

User story

As a developer watching an agent delegate work to sub-agents in Agent Flow
I want the main UFO to fly to the control tower and coordinate while its sub-agents take off from a hangar, work on their buildings and land back
so that delegation reads at a glance as "the main agent is coordinating, these agents are out working for it", instead of saucers popping out of each other.

Design (approved by Adrián, 3 Dec 2026)

The test-tower corner becomes an airfield: the test tower doubles as the control tower, with a hangar beside it.

  • Delegate: the main UFO flies to the top of the tower and docks in a new control outfit (radar ring around the cab). The hangar doors open and the bays about to be used light up.
  • Before a sub-agent's first step: it waits inside its bay, visible through the doors, without name tag (builds on Agent Flow: one UFO on a delegate, sub-agents appear on their first step #452: it is never stacked on the main UFO).
  • First step: it rolls to its pad on the apron, lifts off and flies to its building; its name tag appears.
  • While out: a dashed radio link in the sub-agent's colour joins the tower to each sub-agent; each of its steps sends a packet back along the link.
  • Last step: it flies back, lands on its pad and rolls into its bay (red bay light if it failed). Doors close when nobody is out.
  • Control rule (derived from the playhead): the main agent is controlling while its latest step is a delegate and at least one of its sub-agents is out. If the main agent works meanwhile (background sub-agents), its real work wins and the links come from its UFO instead of the tower.
  • Bays: max concurrent sub-agents in the session, 1 to 4; more share bays. A returned sub-agent hides inside when the doors close.

Proposal and prototype mockups: project files agent-flow/hangar/.

Acceptance criteria

  • workersAt exposes each sub-agent's phase (in hangar / out / landed) and the main agent's control mode; unit tests.
  • Hangar, doors, bays, apron pads and the tower's control role rendered in the runtime (new manifest part), "control tower" label.
  • Take-off, flight and landing animations; control outfit; radio links and packets.
  • Seeking to any step gives the same scene as stepping there (harness invariant extended to UFO phases, doors and bays).
  • Legends: the hangar card lists each sub-agent (colour, description, steps, status); the tower card says how many sub-agents it is controlling; both pinnable.
  • Reduced motion and low-performance mode: no take-off/packet animation, UFOs placed directly. Works in XR (table-local, reachable by the controller ray).
  • Works in the VS Code extension (v1.3.0) and the Code-XR IDE (ide), shared runtime.
  • docs/agent-flow/hangar.md and test guide section.
  • Adrián's manual check on a session with sub-agents.

Pull requests


Generated by Claude Code

Activity

  1. added
    tfm
    user-story
    area: ide
    area: extension
    area: xr-scene
    on Dec 3, 2026
  2. added 2 commits that reference this issue on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: extensionarea: idearea: xr-scenestream: agent-flowtfmuser-story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions