﻿---
title: The inspector
description: The inspector: the selected session's worktrees, pull requests and agent events.
url: https://docs-v3-preview.elastic.dev/sessions/inspector
---

# The inspector
The inspector, on the right of the Sessions view, shows the selected session's surroundings.
![The inspector: worktrees with their upstream and status, pull requests with checks and review, agent events](https://docs-v3-preview.elastic.dev/images/shots/sessions/inspector.png)
- **Worktrees**: each worktree's path, its upstream, how far ahead and behind it is, and whether it has uncommitted
  changes.
- **Pull requests**: each tracked PR with its checks bar, its review state, and whether review feedback is being
  watched. `go` opens the [PR overlay](https://docs-v3-preview.elastic.dev/github/review-feedback).
- **Agent events**: the latest states the agent reported, newest first. A turn's working steps show while it runs and
  fold away once it ends, leaving how it ended.

`zi` collapses and expands the inspector. It also gives way first when the window is narrow.