Sessions
A session is one conversation with Inspect plus the isolated sandbox it works in. Each coding session gets its own checkout of a repository, its own branch, and at most one open pull request per repository. The transcript, branch, and pull request stay linked, so you can return days later and continue from where the work stopped.
Start a session
You can start a session from any connected surface. The session behaves the same way regardless of where it started; the surface decides where Inspect posts its replies.
Web app
Write a prompt and pick a repository.
Slack
Mention @Inspect in a channel or thread.
Send or copy inspect@inspect.com.
Linear
Assign or mention Inspect on an issue.
GitHub
Mention @inspect on a pull request.
API
POST /api/v2/sessions.
MCP
A client connected to the Inspect MCP server.
When you pick (Auto) as the repository, Inspect infers it from your prompt. If nothing matches, it falls back to the repository you use most. Pick Chat for sessions that need no repository, such as research or writing.
The sandbox
Each session runs in its own VM sandbox with a checkout of the repository at its base branch (the repository's default branch unless you choose another). The sandbox includes Git, Docker, Node.js, Python, ripgrep, jq, and a Chromium browser, plus whatever your repository's build installs. Repository environment variables scoped to Runtime are available as environment variables.
Inspect prepares the checkout, environment, and Git credentials in the background when the session starts, so the agent can begin reading code before setup finishes.
Idle, snapshot, and restore
- A sandbox stops after an hour with no activity. Inspect snapshots the sandbox after turns and restores it when you send the next prompt, so files and uncommitted work normally survive.
- If a sandbox cannot be restored, Inspect provisions a new one and checks out the session's saved branch. Work that was never committed and pushed is lost in that case.
- Use Terminate sandbox in a session's menu to stop the sandbox immediately. The next prompt starts a fresh sandbox. The session owner, its participants, and admins can terminate a sandbox.
Archive
Archiving stops any running turn, clears queued prompts, stops the sandbox, and hides the session from default lists. By default, archiving also closes the session's open pull requests; pass close_pull_request=false to the API to keep them open. Sending a prompt to an archived session unarchives it. The session owner and its participants can archive or unarchive a session.
Branches and pull requests
Before its first commit, the agent creates a branch named <your-email-name>/inspect-<description>-<4 hex characters>, for example jane-doe/inspect-fix-ci-timeout-3f9a. Commits and pull requests are made as you through your linked GitHub account.
- New pull requests open as drafts unless you turn on Create Pull Requests as Ready for Review in Settings → Agent. The setting of the session's owner applies.
- Inspect adds links to the session and, when one exists, the Slack thread to the pull request description.
- After a pull request merges or closes, new work in the same session starts on a fresh branch from the latest base branch and becomes a new pull request.
- The agent can attach an existing open pull request to the session when you ask it to continue that pull request.
- The agent merges only when you explicitly ask. "Get it ready to merge" is not a merge request.
See Reviewing changes for the diff, merge, and conflict tools, and Code review for how the session responds to review comments and CI failures.
Sending prompts while a session runs
Prompts you send while the agent is working are delivered right away and steer the current turn. You can also queue a prompt so it runs after the current work finishes. Queued prompts can be sent immediately or discarded before they run. Stopping a session's active turn cancels any queued prompts.
Sharing and access
Sessions are public by default: anyone in your organization can open one, and anyone with a connected GitHub account can prompt it. People without a connected GitHub account can prompt only read-only sessions.
Make private limits a session to you, the collaborators you add with Manage collaborators, and people with the View all sessions role, who can read but not prompt it. Private sessions stay out of other people's session lists and exports. A private session cannot be made public again, and anything it already posted (a pull request, a Slack reply) stays as visible as the place it was posted.
Link to transcript text
Select text in a transcript to link to it. Copy link copies a URL that opens the session at that message with the text highlighted. Add to chat quotes the selection in your next prompt.
What the agent can reach
- The repository checkout, a shell, and the network from inside the sandbox.
- GitHub, acting as you through your linked account.
- Connectors you and your organization have connected, such as Linear, Notion, or Datadog.
- Other sessions you can access, so it can read an earlier session when you reference it.
- A browser it drives and you can watch or control. See Browser.
- Subagents and child sessions for parallel work.
Every new session starts with your custom instructions, your memories, and the repository's instructions. Spend is capped by your organization's spend limits.
Troubleshooting
Link GitHub in your settings, or start your own session.
The browser of an archived session is stopped. Send a prompt or unarchive the session first.
The sandbox was replaced instead of restored. Ask the agent to check git status and the branch;
pushed commits are intact.