Skip to content
Source
Sign inSign up

Find and read a run

Software factory / Runs

Find and read a run

An agent ran on a pull request, an issue or the default branch, and you want to know what it did. Find its run in the list of runs, then read its log.

7 min read

You need:

  • Write access to the repository.

1. Open the runs page

Open the repository, then Agents. It opens on Runs under Overview (/<owner>/<repo>/agents/runs).

The page lists the newest runs first, 50 at a time. Each run shows its agent and step, what it ran on (#12, or Default branch) and its status. It also shows the model, the tokens, the cost and when it started.

The runs list with the Agent and Status filters above it. Each run is named by its agent and step, such as PR summary: Classify.

Note

The cost in dollars shows for a run on a model that the forge pays for. For the total of this month and the cost of each agent, see See what your agents cost.

2. Filter the list

  1. Pick an Agent or a Status, or type a number in Issue or pull request.
  2. Click Filter.

An agent shows the runs of all its steps. To see every run again, click Clear the filters.

Click Load more to see 50 more runs. The list goes back to the newest 500 runs.

3. Read the log of a run

  1. Click the name of the agent and step in the list. The page of the run opens.
  2. Read the log as a chat. The agent's messages show as text. Each tool that it used is one short line, for example "Read src/a.ts" or "Ran pnpm test".
  3. To see the input and the result of a tool, click its line. To read the model's reasoning, click Thinking.
  4. To go back to the list, click All factory runs.

If the run is going, read the log live. The page shows what the model writes as it comes, with Thinking…, Writing… or Calling and the name of a tool.

The log of an audit run that is going, as a chat: the agent's text, one line for each tool that it used, and Thinking… as the model streams.

Done

You found the run, and you read what its agent did. When a run is added, starts or ends, the list updates by itself.

The runs of one issue or pull request

  1. Open the issue or the pull request.
  2. In its Factory panel, click All runs. The runs page opens with its number, for example 12, in Issue or pull request.
  3. To narrow the list more, pick an Agent or a Status, then click Filter. The number stays.

On the runs page, you can also type the number in Issue or pull request and click Filter. The address of this list is /<owner>/<repo>/agents/runs?number=12.

To see the runs of every item again, empty the field and click Filter. Clear the filters removes the number too.

See which items have a run now

You do not need the runs page to see that an agent works on an item:

  • The issues list and the pull requests list show a blue badge on each item with a run that is queued or running. The badge says, for example, Triage running or Audit waiting.
  • The header of the item page shows the same badge. A click on it goes to the Factory panel. On a pull request, the click opens the Agents tab of the right column.
  • The badge also shows Screening while screening reads a new item.

Everyone who can read the item sees the badge. See See what runs on an item.

The Factory panel of an item updates by itself when a run is added, starts or ends.

Agent workflow runs

The runs of your agent workflows are in the same list. Each one is marked Agent workflow under the name of the workflow. Click the name to open the run page, with its jobs, outputs and logs.

From a terminal:

src factory agent-run list --workflow linear-fixes
src factory agent-run view <run id>

Find the run behind an agent's pull request

You review a pull request that an agent workflow opened. You want to know which workflow wrote it, and what its agent did.

  1. Read the author of the pull request. It shows the name of the job, for example linear-fixes-fix, with an Agent badge.
  2. Read the last line of the description: TanStack Source bot, linear-fixes workflow, fix job. Comments of the job end with the same line.
  3. Open Agents, then Workflows. Find the workflow, and click its Last run. Or run src factory agent-run list --workflow linear-fixes.
  4. On the run page, click the cell of the job to read its steps and the log of its agent.

The branch of the pull request is agent/<workflow>/<name>. A workflow job pushes only to such branches, and never merges or approves.

An audit with no log

An audit run says Clean, but its page says "This run has no log." The first check of the audit decided the run, and no agent ran. See How the audit decides.

The page of such a run shows:

  • The status Succeeded, and the model workers-ai/@cf/cloudflare/clef.
  • 0 tokens and no cost.
  • The verdict text. It says that Clef read the full diff and found no risk, then lists each risk with its score.

Every score is under 0.2. When one score is 0.2 or more, the audit agent runs, and its run has a log.

From a terminal, src factory run <run id> prints the verdict clean and its text with the scores.

From src, MCP or REST

Your own agent can find runs too:

You wantsrcMCPREST
The runs of the repositorysrc factory runs --agent review --status failedlist_factory_runs, with agent and status and no numberGET /api/v1/repos/{owner}/{repo}/factory/runs?agent=audit&status=failed&limit=20
The runs of one issue or pull requestsrc factory runs 12list_factory_runs with numberGET .../pulls/12/factory, or issues/12/factory for an issue
What runs on one item nowsrc pr view 12 --json activity, or src issue view 12 --json activityget_item_activity, with owner, repo and numberGET .../pulls/12/activity, or issues/12/activity for an issue
What runs on every item nowsrc pr list --json number,activitylist_item_activityGET /api/v1/repos/{owner}/{repo}/activity

The runs of the repository take the same two filters in each tool:

  • agent: the id of an agent, for all its steps, for example review, architecture or custom:docs-check. A step id, for example fixer, gives the runs of that step only.
  • status: one of queued, running, succeeded, failed, skipped or cancelled. A status that is not on the list gets the answer 400.

Each run has agent, the id of its agent, and step, the id of the step that ran. For example, a run of PR review: Fixer has agent review and step fixer. src factory runs shows it as review/fixer. It shows a run of the main step of an agent with the agent id only, for example review.

The activity of an item has screening (true while screening reads the item) and runs, the runs that are queued or running. Everyone who can read the item can read it. To wait until screening and the runs on an item end, read its activity again until nothing runs.