Agent Controlling UI & Agent Window Exposure

Feature request for product/service

Cursor IDE

Describe the request

Making Agent’s have more control Over The Agent Window Itself:

My usual workflow is I have a request doc that specifies the worktree which is already created and the branch is known. But I don’t want to add the worktree folder to agent window workspace and start agent there because worktree is temp and used only for the task.
I need to pre-created it because I have other workflow running setup there, which involves cli agents like claude code or codex and interactive sessions, like design and feature planning. Which cannot be simply done by cursor’s auto setup script.
Once I started the agent in cursor, the implementation workflow kicks in, but the diff view and files preview etc provided kindly by cursor’s agent window UI cannot locate to the worktree folder the agent actually work with, which renders them useless most the the time.
If you can let the main agent running the session has capability to control the preset of this session (which is apparent and known by the session owner agent, they just don’t have the interface to set it), letting it set the work directory so that the diff tools, inline editor and the file viewer can work automatically.
An agent first system should expose as much interface as possible to the underlying agents to control.

1 Like

Hey @perplexityunion!

Thanks for the feedback. Just to summarize your ask: you want to start an agent, have it discover/switch to your pre-created worktree mid-session (so far, this should work), and have the Glass UI – diffs, file tree, inline editors, Review Changes – automatically follow along to that worktree.

exactly

Thanks @perplexityunion! We have a ticket open for this and I’ve added your request.