Skip to content

Agent Flow: pull the worked building out like an accordion, its function floors spread and named #412

Backlog

Description

@aMonteSl

As a developer watching an AI agent in Agent Flow,
I want the building the agent works on to be pulled out of the city like an accordion, its function floors spread apart and named,
so that I can see which function the agent is reading or editing, where it sits in the file and what else in the file it touched, without hovering or losing it behind other buildings.

Part of epic #319. Proposed by Adrián on 2026-12-01 as an idea to explore: keep it only if it helps comprehension. Builds on the per-function floors.

Exploration and verdict

Three variants were prototyped on the sample session (screenshots and video in the project files, agent-flow/accordion/): in-place accordion, focus-only accordion and an extracted accordion that lifts the stack above the neighbours' roof line before opening it. Only the extracted one helps: every floor is visible and named, the worker stands beside the floor it edits, and the opened stack marks where the agent is from the overview. The other two keep the worked floors hidden behind neighbours. Details: docs/agent-flow/accordion.md.

Acceptance criteria

  • A read, write or search step on one file with two or more function floors opens that building: the floors lift above the highest roof around it and spread apart (650 ms); a step that opens nothing folds it back (450 ms); another building closes the old one at once. Seek and reduced motion snap.
  • Each floor carries its function name; with many floors only the worked floors and their neighbours keep a label. The opened span is capped so a long file does not become a mast.
  • The worker stands beside the worked floor; the floating file label sits above the opened stack; the scaffold is hidden while the floors are out; four corner lines tie the stack to its plot.
  • Thinking steps between two steps on the same building keep it open.
  • Files without function data, commands and multi-file steps never open anything (the scene looks as before).
  • Works in the VS Code extension and in the Code-XR IDE (shared scene runtime, no host code).
  • Unit tests for the target, layout and label rules; the Agent Flow browser harness asserts the accordion opens and folds, with screenshots.

Generated by Claude Code

Activity

  1. added
    tfm
    user-story
    area: ide
    area: extension
    on Dec 1, 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: idestream: agent-flowtfmuser-story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions