Start guide
In this tutorial you give Spotlight its first piece of work and watch an AI agent pick it up.
In Spotlight, a piece of work is a task. A task moves through a series of steps, such as triage, then writing a spec, then building it. Spotlight calls the series a line and each step a station. At most stations an AI coding agent does the work, then passes the task on to the next station or stops to ask you a question.
Spotlight keeps track of the work, and the agents run on a computer you provide. Here that is your own computer, which Spotlight calls a host.
By the end you will have:
- created a workspace
- set up your computer so agents can run on it, with Claude Code in the container image they run in
- given a task to the first station of a line, and answered the question its agent asks you
This tutorial uses Spotlight at app.usespotlight.ai. On a
self-hosted Spotlight, use the
deployment's address wherever this tutorial shows app.usespotlight.ai.
Before you start
You need:
- A GitHub account. Spotlight signs you in with GitHub.
- A Mac or Linux computer with Docker Desktop, OrbStack, Colima or Podman installed and running. Spotlight runs each agent inside a container, so the agent can't reach the rest of the computer.
- An Anthropic API key or a Claude subscription, such as Pro or Max. The agents in this tutorial are Claude Code, and they sign in to Claude with one of them.
Create a workspace
A workspace contains everything Spotlight knows about your organisation: its people, its teams, and each team's lines and tasks.
Open app.usespotlight.ai and click Continue with GitHub. Approve the sign-in on GitHub.
Spotlight asks you to name the workspace. Notice that the URL field fills itself in from the name. Click Continue.
Spotlight asks for a first team, a group of people who share lines and an inbox. Name it and click Create workspace.
Spotlight opens the Inbox. This is where anything that needs a person lands, such as an agent's question. It already has one item: Set up your team. Open it. It lists three steps, Install the GitHub App, Connect a host and Set up configuration as code, and none has a check mark yet. A host is a computer that runs agents. A harness is the AI coding tool an agent runs, Claude Code in this tutorial. You come back to the second step later.
In the sidebar, under Your teams, expand your team, then Lines. The team already has two lines. Delivery takes a request from Triage through to Code Review, and Review looks over pull requests. This tutorial uses Delivery.
Get your Claude key ready
Each agent runs in a container, a sandbox, where it is not signed in to Claude. Spotlight keeps a key for it. Use the tab for what you pay Anthropic with:
Have your Anthropic API key ready to paste.
Set up your computer to run agents
Spotlight hands work to a
pool, a group of computers
that all prove who they are with the same secret token. The spotlight
program makes a pool with only your computer in it, and builds the container
image the agents run in, with Claude Code inside.
In a terminal, install the spotlight program:
curl -fsSL https://app.usespotlight.ai/api/install.sh | shThe last lines are next steps. If one of them puts a folder on your PATH,
run it.
Start the set-up:
spotlight host initThe terminal shows the Spotlight dashboard, with Log in to Spotlight and
the address app.usespotlight.ai. Press Enter. Your browser opens a page that
asks Approve the Spotlight CLI?. Check that its code is the same as the
code in the terminal, and click Approve.
The terminal shows Set up this computer as a host, and asks which agents run on it. Press Space to pick Claude Code, then press Enter.
If it asks which workspace the host serves, pick the workspace you created.
It asks which key Claude Code uses. Pick Anthropic API key or Claude subscription token, from claude setup-token, and press Enter. Paste the key or token, and press Enter. The terminal does not show what you paste. Spotlight keeps it as a secret of the workspace, and the agents never see it.
It asks for the pool's name, and shows your computer's name. Press Enter.
It asks how many sandboxes run at once, and shows 5. Press Enter. Five
sandboxes let your computer run five agents at the same time. Use a lower
number if your computer is slow, or a higher number if it has much memory. You
can change the number later with spotlight host config set capacity=<number>.
Press Enter to set up the host. The dashboard saves the key, makes the pool,
then builds the image. The build takes a few minutes, and the dashboard shows
its last line as it goes. Then it sets the program to keep running in the
background, and shows your computer's host. Press q to close the dashboard.
The host keeps running.
If it stops with no container runtime answers, Docker, or whichever of the
tools above you use, isn't running. Start it and press r to try again.
In Spotlight, open the workspace menu at the top of the sidebar, choose Settings, then Runners. This page lists the computers that run agents for the workspace. Within a minute, your computer appears in its own row, with your pool under Serves. Its status reads Idle: it is connected and waiting for work. Harnesses shows the Claude Code logo.
Go back to Inbox and open Set up your team. Connect a host now has a check mark: your computer is ready to take work.
Give Triage a task
Triage is the first station of Delivery. Its agent reads a new task and decides what it needs next.
Open Delivery. The board lists the stations where agents work, one below the other: Triage, Spec, Implementation and Code Review. Each is a section with its tasks underneath. New tasks start in the backlog, where they wait until someone moves them on. Click Backlog at the top of the board to see only the backlog.
Click + beside Backlog. In Task title, enter:
Write a welcome note for new teammatesIn Add description…, enter:
Write a short welcome note for the people joining our team next week.
Only I know who they are and what they'll work on.Click Create task.
The task needs no code. It leaves out something only you know, and when a request leaves something open, Triage's instructions tell its agent to ask a person instead of guessing.
The task waits in the backlog. Notice that nothing happens to it there: no agent picks up a task until it reaches a station where agents work.
Point at the task and tick the box that appears beside it. A bar appears at the bottom of the board. Click Move to Triage.
Click Active. The task is now at Triage, marked In progress: an agent is working on it. On the Runners page, your computer reads Running 1, and its Slots read 1 of 1: one agent runs in the one place it has.
Watch the agent work
Click the task's title to open it. Under Activity there is one row, for Triage. Each row is a run: one session in which an agent works on the task at a station. Click it.
At the top is what the agent was told, collapsed to its first few lines. Click it to see all of Triage's instructions, followed by your task. Below that, the agent's steps appear as it works, each labelled with what it did, such as Read or Thought. For the first few moments nothing appears, while your computer starts a container for the agent.
If the run stops with a message that starts start agent: or
open a session: and names authentication, the sandbox could not sign in to
Claude, most often because the key is wrong.
Give hosts your harness keys
shows how to give the host the right key. Then move the task to Backlog and
back to Triage.
When the agent finishes, its note appears under what it was told. The note ends with a question for you, such as who the new teammates are and what they will work on, and the run now reads Waiting for you.
If the agent passed the task on to Spec instead of asking, its note says why it thought nothing was left open. Open the task, choose Backlog in the station field under Properties, then choose Triage in the same field.
Go back to the board. The task is still at Triage, now marked Waiting for you. It stays there until you answer.
Answer the agent
Open Inbox. There is a new item, Write a welcome note for new teammates, in bold because you haven't read it. Open it. It shows the same run, ending with the agent's question.
In the box at the bottom that reads Reply…, enter:
Two designers, Sam and Priya, who will work on the mobile app. This task was only a test, so there's no need to pass it on.Press Enter.
The agent works again, and the item shows its steps as they happen. When they stop, its new note shows how it used your answer.
Close the task
That is all this tutorial needs from the task, so close it yourself before it goes any further down the line.
Open the task from the board. On the right, under Properties, the first field shows which station the task is at. The panel shows only when the window is wide enough.
Choose Completed from it. If an agent is still working on the task, Spotlight stops it. The task moves to Completed, the end of the line, and the Runners page shows your computer Idle again.
What you built
You created a workspace and set up your own computer to run its agents, in an image with Claude Code in it. You gave a task to Triage. Spotlight sent the work to your computer, which started a container, and Claude Code worked on the task inside it signed in with your key. The agent asked you a question through the inbox, took your answer, and you closed the task by moving it to Completed.
From here:
- Make the factory yours puts the team's lines, which together make up its software factory, in a repository as code, points Delivery at your code and changes how Triage works.
- Lines, stations and tasks explains how a task moves from station to station, and who decides where it goes next.
- Install a host covers running agents on a server, and with coding tools other than Claude Code.