Beta
Start for free

ResourcesExplainer

To track work handed to AI agents, link it to issues and read pull requests, first CI runs, and reviews

You can track work handed to AI agents by linking it to issues and lining up the pull requests, first CI runs, and review results for each issue. That shows how far each issue has gotten and where it's stuck.

When links are missing, the issue looks as if nothing is happening, however much the agents are doing. Below, we'll cover how to read progress, why tracking breaks down, how to fix it, and its limits.

What does this article cover?

We'll start with how GitHub links pull requests to issues, then look at how tracking broke down in a month of my own records, how to fix it, and the limits of linking work to issues.

How do you read the progress of work handed to AI agents?

Read progress in 2 stages.

  1. Link the work to issues. Link the pull requests an agent opens to the issues that say what the work is for. On GitHub, write a keyword such as Closes #10 in the pull request's description, or link it by hand from the Development section in the sidebar of the issue or pull request1. Only people with write access to the repository can link by hand. When you merge a linked pull request into the default branch, the issue closes automatically.
  2. Line up first CI runs and reviews for each issue. Together, whether the pull request was merged, passed CI on the first run, and needed changes after review show whether the work produced a result.

GitHub can also move an issue's status forward as pull requests are linked. Linking an open draft pull request moves an issue with no status, Backlog, or Todo to In progress. Linking a pull request that's ready for review moves an issue with no status, Backlog, Todo, or In progress to In review2. This feature is in public preview and subject to change.

With both stages in place, you can see for each issue how far the work has gotten and where it's stuck. Stage 2 leaves out session counts and token volume because, for the same result, work that gets stuck uses more of both. More doesn't mean further along.

  1. GitHub, GitHub Docs, "Linking a pull request to an issue" (retrieved November 27, 2026). ↩
  2. GitHub, GitHub Docs, "About issue statuses" (retrieved November 27, 2026). A public preview feature. ↩

Why does tracking break down?

Mostly because the link between the work and the issue is missing. From an issue, you see only the work linked to it.

In my repository, I merged 1,301 pull requests between October 28 and November 27, 2026. Only 3 were linked to an issue. All 3 came from bugfix/ branches and closed an issue filed earlier, with Closes and the issue number in the description. My agent session records tell the same story: of 44 issues updated in the last 30 days, only 2 had a confirmed (not inferred) link to a session, and both were opened automatically by CI, not by a person.

Instead of filing issues, I have an orchestrator session hand work directly to the other sessions. I think filing and managing issues one by one gets in the way of letting agents work through a large volume of tasks. When more than a thousand changes land in a month, managing work through issues can't keep up. With many agents running side by side, I couldn't keep track, and I kept going without being sure which work had started, how far it had gotten, or whether its quality held up.

Treating an agent's completion report as completion also breaks tracking. In my setup, I decide whether work is finished only from the result file each request writes, never from the completion message an agent prints on screen.

Sometimes the keyword doesn't work. GitHub ignores keywords in the description of a pull request that targets a branch other than the default branch, and creates no link1. If you stack pull requests, while an upper layer points at the branch of the layer below, the keyword won't link it to the issue. A keyword in a commit message closes the issue once that commit is merged into the default branch, but the pull request containing it isn't listed as linked to the issue.

  1. GitHub, GitHub Docs, "Linking a pull request to an issue" (retrieved November 27, 2026). ↩

How do you fix it?

The fix isn't for people to link each pull request by hand. Have the agents write the links, and count what's unlinked so you notice the gaps.

If you try this, first, when you have an agent open a pull request, have it name the issue in the description as Closes #number. A pull request that targets the default branch is linked to the issue by that keyword alone, and merging it closes the issue1.

Next, count the pull requests not linked to any issue on a regular schedule. In GitHub search, -linked:issue finds pull requests not linked to an issue by a closing reference, and -linked:pr finds issues not linked to a pull request by a closing reference3. Counting them lets you catch missing links early.

This fix assumes the issue to link to already exists. Work handed off without an issue has nothing to link to, even if the agent writes the keyword. For work handed off without an issue, read the pull request itself, from its first CI run and review results. It won't show up on any issue, but the pull request still records how far the work got.

Link by hand only where the keyword doesn't work. Stacked pull requests that target a branch other than the default get linked by hand from the Development section. Even when linked by hand, merging into a non-default branch doesn't close the issue.

Read progress from the signals in stage 2: whether it passed CI on the first run and whether it needed changes after review. As covered earlier, session counts don't measure progress.

  1. GitHub, GitHub Docs, "Linking a pull request to an issue" (retrieved November 27, 2026). ↩
  2. GitHub, GitHub Docs, "Searching issues and pull requests" (retrieved November 27, 2026). ↩

What are the limits of linking work to issues?

Linking tells you which work is for which issue. Some things links alone don't tell you.

  • Quality of the work: A merged, linked pull request doesn't show whether it solved the issue correctly. When agents also write the tests, the question of whether the tests are right remains.
  • When it will finish: A link shows where the work is now, not when it will be done.
  • Automatic status changes: GitHub's issue statuses are in public preview, and only pull requests in the same repository as the issue, or in a public repository, change its status2.
  • The effort of linking: Someone has to create the link. A pull request missing its keyword, or work done without an issue, stays invisible from the issue side.
  1. GitHub, GitHub Docs, "About issue statuses" (retrieved November 27, 2026). A public preview feature. ↩

How can Harnessforce help?

Work that isn't linked to an issue stays invisible from the issue, however much the agents do. With Harnessforce, everyone on the team can see how far the development you handed to AI has gotten and where it's stuck, so people can make the call and steer.

With Harnessforce, you can:

  • See progress by issue: For each issue, see how far the work you handed to AI has gotten, where it stopped, and how CI and review went. What needs attention comes first, and you can follow it into the session's conversation and traces.
  • Read the history on the issue page: The issue page brings together the linked pull requests, sessions, and how the work unfolded.
  • Link runs to pull requests: Link sessions to issues and pull requests, and line up CI and review results. Links made by inference are marked as inferred, and work that couldn't be linked is marked as unlinked.
  • Use it alongside your tools: Keep the tools you already use and run Harnessforce next to them.

Learn more on the Read the history page, talk to us, or get started today.

This article was written with AI assistance and reviewed by the author.