Inspect

Writing requests

Inspect reads your prompt alongside context it gathers on its own. Knowing what it already has tells you what you need to write and what you can leave out.

What the agent starts with

On the first prompt of a new session, Inspect adds:

  • Your custom instructions from Settings → Agent.
  • Your directive memories, plus a catalog of fact memories it can look up.
  • The repository's root instruction files (AGENTS.md and its alternatives), once the checkout is ready.
  • The instructions of any skill you invoke as /skill-id in the prompt, plus a manifest of the skills you have enabled.
  • The custom agent's prompt, when the session runs a custom agent.
  • Context from the Slack thread or Linear issue, when the session started there.

The agent searches code, runs commands, and reads your other sessions as needed. You do not need to paste file contents it can read, or decisions recorded in an earlier session; name the session or the decision and the agent can find it.

Building on a decision from an earlier session

What to put in the prompt

Write what the agent cannot discover: the outcome you want, what must not change, and how you will judge the result. Include error text, links, and identifiers verbatim.

Checkout shows a blank page after the last receipt is removed (Safari, 390px wide).
Show the empty state from ReceiptsList instead. Don't change the API response.
Add a regression test.

Say when you want research without code changes. Inspect creates a branch and pull request only when there are changes to commit, so an investigation prompt that says "report, don't change code" ends with a written answer.

Choose a repository

  • Pick a repository when you know it. The agent checks out its default branch unless you choose another base branch.
  • Choosing (Auto) infers the repository from the prompt and falls back to the repository you use most. Name the repository in the prompt when it is ambiguous.
  • Choosing Chat starts a session with no repository.
  • If the guess was wrong and the session has made no changes yet, the agent can switch the session to another onboarded repository. For work that spans repositories, it starts a child session per repository.

Attachments

Attach files in the composer, paste screenshots, or send files with the API's attachments field.

  • Images are sent to the model with your prompt and also saved into the sandbox, so the agent can both see them and process the original bytes.
  • Every other file is saved into the sandbox at a path the agent receives with the prompt. Zip files are saved as archives for the agent to extract.
  • Files up to 10 MiB each, and 20 MiB per prompt in total, are saved before the agent starts. Larger files are not staged up front; the agent downloads the original on demand.
  • The agent can fetch any file attached earlier in the same session, but not files from other sessions.

Attaching a screenshot to a task

Steer a running session

You do not need to wait for a turn to finish. A prompt sent while the agent works is delivered right away and redirects the current turn. Queue a prompt instead when it should run only after the current work is done. Queued prompts can be sent early or discarded.

A follow-up you send from lines in Changes includes the commit, file, and line range, so "make this a constant" is enough.

Troubleshooting