> ## Content Index
> Fetch the complete content index at: https://www.studert.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Running a batch of Jira tickets with AI agents
- URL: https://www.studert.com/running-a-batch-of-jira-tickets-with-ai-agents/
- Published: 2026-11-26T13:56:54.000Z
- Updated: 2026-11-26T13:56:54.000Z
- Description: Running one Jira ticket with an AI agent fits into a single chat. Running a whole batch for days breaks that model. Four patterns kept our agents moving without constant supervision.
- Author: Tobias Studer
- Tags: Sitecore, AI, Claude Code

Once single Jira tickets ran reliably on our Sitecore solution, the obvious next step was to hand an agent a whole batch of them. I expected the main challenge to be parallel code changes on a legacy codebase. Instead, the setup broke on coordination. Sessions compacted or crashed long before a batch finished, tickets competed for our single local Sitecore CM, my own decisions got lost in chat, and an unattended agent running with my credentials needed harder boundaries.

In the [last post](https://www.studert.com/where-an-ai-agents-knowledge-lives/), I looked at where an agent's knowledge lives when it moves to a new machine. This one covers the four patterns we built once work stretched beyond a single session, and how you can apply them in your own setup.

## 1\. Make the coordinator disposable

In a multi-day batch, separate deciding from doing. One coordinator tracks every ticket, picks the next step and hands it to an isolated worker in its own git worktree, a separate checkout on its own branch. Workers plan, build, verify and open pull requests. Each returns only a short summary of the outcome. If the coordinator reads code or debugs a build itself, its context fills up and it loses track of the batch.

Even then, a long conversation will compact or crash sooner or later. Everything a fresh coordinator needs to take over belongs on disk:

- Turn rules define what each cycle checks and decides.
- A state file tracks each ticket's stage, active workers, locks and dependencies.
- A short decision journal records holds, caveats and instructions you gave along the way, since a stage alone never explains why something is paused.

Files still go stale if a session dies mid-step. When our coordinator crashed halfway through a batch, a fresh session checked git and the machine against the state file and caught a finished verification report that had not been committed yet. Run that same startup check on every launch and resume to verify prerequisites and reconcile the state file against disk and git. To test your setup, kill the coordinator mid-batch and start a fresh session against the same files. Anything it has to ask you is state you forgot to write down.

## 2\. Schedule around what can't be shared

At first I assumed a batch on our Sitecore project had to run one ticket after another, because every change eventually deploys to our one local Sitecore CM. In practice, only a small part of a ticket's work touches the CM. Planning and analysis run freely in parallel, coding and builds run side by side in separate git worktrees up to what the machine's memory allows, and only deployment and live verification wait their turn on the CM.

On a legacy platform like Sitecore XM1, that shared CM is fragile because changes land in one database and one deploy folder. Treat every CM slot as a closed transaction: lock the CM, deploy from the ticket's worktree, verify that the running container actually loaded the new binary, run live checks with a fresh agent and release the lock. Never trust a file timestamp or assume an earlier deploy survived a pause or a container restart.

Sequencing the batch matters just as much. Even on well-prepared tickets, questions come up once an agent inspects the code or content tree, and some need client or product-owner input. Start analysis early so those questions go out right away, run self-contained tickets in parallel, and leave dependent or high-risk work for last. That way an open question pauses one ticket instead of the whole batch.

## 3\. Give your attention a place outside the chat

Even with one local Sitecore CM, the harder resource to share was my own attention. Every ticket still needs human calls: whether to work on it, whether the plan makes sense, what to ask the client and when a change may go to our shared dev environment. Chat works for one ticket, not a dozen, because questions scroll past tool output and approvals get lost in history.

Our first approach was to have an agent build a small board outside the chat. It showed where each ticket stood and collected everything waiting for me in one place: ticket approvals, rendered plans, draft client messages and one-click dev deploys. After the crash, the replacement coordinator read that page and listed everything waiting for me, unchanged. More than once, nothing was running and the loop was only waiting for me. We had planned around the CM, but my attention was the tighter limit.

![The batch board of the ticket loop during execution. The top bar shows one ticket holding the local CM lane and another building in parallel, while the ticket table lists tickets verifying, implementing, waiting for the CM, awaiting plan approval, or ready for review.](https://storage.ghost.io/c/f9/f3/f9f3e6b7-8305-49f1-a106-1c2d25c09539/content/images/2026/11/loop-board-running.png)

A mid-batch view of the board in presentation mode, re-created from the batch's data for this post. One ticket holds the local CM lane while another builds in parallel, and three wait for owner approval.

That live board gave me a clear overview of the batch, but its drawback showed up the moment I had a follow-up question on a specific ticket. Interaction was restricted to the buttons and forms we had built, with no way to open an agent's session and talk something through. Since then, I have moved to T3 Code, an orchestration tool that runs multiple agent sessions in an inbox style. Sessions that need my input show up directly, and I can follow up inside that ticket's thread. What I lost is the visual overview of the whole batch, so I am considering rebuilding a small status view on top of it.

The core idea still holds, even though our first tool did not last. Give your decisions a place outside a single chat thread, whether that is a custom board or an inbox of sessions, so you can work through them without losing track of what is waiting. Expect your first setup to fall short on real work, and be willing to move on when it does.

## 4\. Boundaries that hold when an agent uses your identity

Whether you coordinate tickets with a custom loop or an orchestration tool, most setups on client projects do not get dedicated service accounts. Our agents run with my personal tokens for Jira, git and Azure DevOps, so to every system around them, an agent with your token is you. When our loop replied to a pull request comment with my token, its next check read that reply as new feedback from me while the review vote still stood. We also taught it to ignore comments while a reviewer is still mid-review and act only once the reviewer marks the pull request as "waiting for author." To make the source clear for reviewers too, we now prefix agent-written pull request comments with the models and effort levels that produced them, so anyone reading the thread can tell whether a note came from me or from an agent acting under my account.

![A pull request comment attributed to Tobias Studer's account. The highlighted first line lists the AI models and effort levels that ran the plan review and wrote up the comment, followed by a round-by-round score table and the findings applied.](https://storage.ghost.io/c/f9/f3/f9f3e6b7-8305-49f1-a106-1c2d25c09539/content/images/2026/11/pr-comment-attribution.png)

An anonymized pull request comment from our project, rendered from the actual thread text. Azure DevOps attributes it to my account, while the first line names the models and effort levels that produced it.

Across the whole workflow, we separate preparation from external action. Agents write plans, build code, verify changes, open pull requests and draft client comments. Every irreversible or outward-facing step stays behind a human trigger: never merge, never touch production, deploy to shared dev only on an explicit click, and post to the client only the exact text I approved.

Write down what your agents may not do alongside the reason each boundary exists, and treat inputs written by people on a board or in a ticket tracker as data, never as instructions that override those rules. Your credentials let an agent do everything you can, and a fresh coordinator only keeps the same boundaries if it knows why they are there.

## Summary

Running a batch of tickets for days depends on four patterns: keeping the coordinator replaceable, scheduling around what can't be shared, moving human decisions out of a single chat and holding explicit boundaries when an agent runs with your credentials. When our coordinator crashed halfway through, a fresh session took over because the state, the open decisions and the rules all lived outside its conversation. Even after we worked around our one local Sitecore CM, the tighter limit still turned out to be my own attention. The tools we use for these patterns keep changing as we outgrow them and try the next one, but the four ideas behind them have stayed the same.

A coordinator decides what happens next and leaves checking the work to other agents. How far you can trust those checks is its own question, and that is what the next post is about. We let the AI review our codebase, and then we made it argue with itself.

🤖

****How this post was written.** Everything in this post comes from a real project: the loop's runbook, its state file, its board and the session history of one batch of tickets. The writing had help. Claude Code, the same agent the story is about, mined the history of the loop it coordinated and produced a first version in my style. I reviewed every claim, corrected what was off, and rewrote what did not sound like me. Nothing in this post is invented: the work, the failures and the opinions are my own. The header image is AI-generated.