# Workspaces, branches, and pull requests without a task

> A Workspaces page, worktrees you create and clean up, a Branches tab that pushes and opens pull requests as you, and a Reset that never loses a commit.

Published: 2026-12-03 · Topics: Product, Security · Canonical: https://nested.me/blog/workspaces-branches-pull-requests

## Small git jobs needed a task

An agent finished a fix on a branch. To push it, you asked the agent. To open a pull request, you asked the agent again. To delete a branch you no longer needed, you opened a terminal. Every small git job became a turn, with a model call and a wait.

Worse, **Reset** on a worktree threw away local commits. It said so in the confirm dialog, but a dialog is easy to accept.

This release makes workspaces a place you can manage yourself.

## The Workspaces page

**Workspaces** in the sidebar, or **Manage workspaces** in the workspace picker, opens a list of every workspace you own, on any agent. It shows the type, the number of tasks, and the last activity. From the row menu you can **Open**, **Rename**, and **Delete** a workspace. Rename changes only the name; the repository and the tasks stay as they are. Before, a folder workspace could not be deleted in the app at all.

A workspace page has an **Agent** picker, because each agent has its own copy of the files. A repository workspace has four tabs: **Files**, **Changes**, **Worktrees**, and **Branches**. Markdown files in **Files** open as a rendered **Preview**, with tables, task lists, and Mermaid diagrams. **Source** shows the text.

## Worktrees you create and clean up

A worktree gives a task its own copy of the repository, so parallel tasks do not edit the same files. On **Worktrees**:

- **New worktree** creates one on a new or an existing branch. A branch that is checked out somewhere else is refused, because git allows a branch in one place only.
- Each row lists the tasks that use it. **Tasks done** shows when they are all finished. **Start task here** opens the composer on that worktree.
- **Clean up** removes the worktrees with no uncommitted changes whose tasks are all done. It lists them and asks first. Branches with commits stay.

A workspace holds up to 10 worktrees on one agent. Nested never removes a worktree when a task ends. That is your decision.

## Branches and pull requests, as you

The **Branches** tab lists the branches in the agent’s copy, with badges for where each one lives: the workspace branch, the main checkout, a worktree, merged, pushed, local only, or remote only.

- **Push** never forces. If the remote has commits the branch does not have, Nested says so and asks you to sync first.
- **Open pull request** asks for a title, a description, the target branch, and whether it is a draft. It opens on GitHub, GitLab, or Gitea with your own connected account, through the same git service that automations use. No task runs, and no model is called. If the branch already has an open pull request, you get that one.
- **Delete** refuses the workspace branch and any branch that is checked out. A branch with unmerged commits needs an explicit tick, and **Also delete on the remote** is a separate choice.

Push and remote delete go through the agent’s git proxy, like clone and fetch. The token is never in the checkout. There is no merge button: merging is a review decision, and it belongs in your git server.

## Reset never loses a commit

**Reset** moves a worktree back to its base. It now keeps every commit:

- A branch with its own commits stays where it is. The worktree moves to a new branch at the base.
- Otherwise, the commits that no other branch holds are first saved on a `nested/backup/…` branch.

Only uncommitted changes are discarded. When a **Sync** cannot keep your local work, it offers **Discard and sync**. When a **Delete** finds uncommitted changes, it offers **Discard and delete**. Both keep the commits. A worktree that a running task uses is never removed.

We also found that git before 2.48 can delete local objects during automatic garbage collection in a partial clone. The agent’s shared clone now turns automatic gc off, and older clones get the setting the next time they are used.

## The agent reads the workspace guide

In a repository workspace, the coding agent starts inside the checkout, where it cannot see the workspace’s own guide. Nested now puts the guide in the session’s first prompt, and again after the conversation is compacted. Instructions in the guide, such as when to answer with a card, now apply in repository workspaces too.

## Closing

Agents still do the coding. The work around it — a branch, a push, a pull request, a cleanup — is now one click and no wait. Read [Chat, workspaces, and tasks](https://nested.me/docs/chat) for the Workspaces page, and [The task panel, changes, and worktrees](https://nested.me/docs/task-panel) for worktrees.

## Questions

### Can I open a pull request in Nested without asking an agent?

Yes. On a repository workspace’s Branches tab, select Open pull request. Nested opens it with your own connected account on GitHub, GitLab, or Gitea, and no task runs.

### Does Reset delete my local commits?

No. Reset keeps every commit on a branch and discards only uncommitted changes.

### Does Nested remove worktrees when a task ends?

No. Use Clean up on the Worktrees tab to remove finished worktrees that have no uncommitted changes.
