Skip to content
Source
Sign inSign up

Issue agents

Software factory / Issues

Issue agents

Your issue list grows faster than you can read it. Half of the new issues are duplicates, some are fixed already, and the bug reports have no repro.

2 min read

The factory has three issue agents. Each one has its own page:

AgentWhat it doesPage
TriageFinds duplicates, issues that are fixed already, and unclear issues.Close duplicate issues with triage
Issue fixReproduces a bug in a sandbox and saves the repro. Then it can fix the bug and open a pull request.Reproduce and fix a bug
AssignAssigns each new issue and pull request to the experts or the code owners of that part of the code.Assign each new item to an expert

Each agent is off until an admin turns it on. When an agent is on, it works like this by default:

  • Triage only comments.
  • Issue fix reproduces bugs for authors with triage access or more. It opens a fix pull request only when someone adds a label.
  • Assign assigns people.

You turn each agent on in Agents: in the sidebar, click Agents under Software factory. You need admin access to the repository.

The Factory panel on an issue

The agents write their answers in the Factory panel of the issue, in the rows Triage, Investigation, Fix PR, Assign and Spam.

The Factory panel on an issue: Assign: No match, All runs, and 3 agents are off.

What works now

Triage closes duplicates and fixed issues, and asks authors for what is missing. A reproduced bug gets a fix, a test and a pull request. Each new issue and pull request gets up to 2 experts or code owners as assignees.

Good to know

  • Each issue agent runs once on an issue. A run that failed for a temporary cause, such as a busy model provider, gets one retry by itself. A new label starts it again. See Factory runs.
  • To run an agent again, or to start one with no label, see Start an agent run.
  • The agents never read content that screening holds.
  • The comments of the agents are signed "TanStack Source bot", with the name of the agent.
  • On a monorepo, the agents read every member, and Issue fix opens one monorepo pull request across the members that it changed. See Give an agent a monorepo.