Using Pomegr
Task queue
The queue starts tasks without you, from the top of Ready, one after another. It works only while Pomegr is open. For the main path, see Tasks.
The queue is Off for every project until you select On in the Queue switch of the Tasks header. Add a task with Add to queue in its task window. With the queue off, queued tasks start only when you start them. Turning it off never touches a running session. The switch stops Aril too: even when your agreement allows Start, Aril starts no Ready card while the queue is off, blocked, or paused. Work that has already started goes on: Aril still sends work back, reviews, merges, and resumes a session a restart cut off. You can also ask Aril to turn the queue on or off: see Turn the queue on or off from the chat.
Sessions the queue starts run with your own provider account, under that provider's terms. Check that your plan allows unattended use. A provider may require its API key for automated use.
The Ready column shows what runs when. It reads top to bottom, and a frame marked Parallel surrounds cards that start together (see Parallel tasks and Runs after). To change the order, see Queued cards stay in Ready.
Order. The queue starts the top waiting card of Ready, whatever its feature. When that card is in a parallel group, it starts the group's other waiting cards in the same check, one after another.
One at a time. While a task is running, the queue starts nothing outside that task's own group. It starts the next card only when every task of the running group has reported and is in Review or Done. A task in Review is finished work that waits for you, so the next card starts.
The queue does not skip a card. If a start gate holds the top card, the cards after it wait, and the Board marks that card Next with the reasons. Cards of its own group still start.
Started tasks. A task whose session has started is no longer shown as next or as waiting. It keeps its state and shows its session's state. While it runs, a waiting card outside its group says which task is running, and the queue starts nothing else.
Timing. The desktop app asks for the next start every 15 seconds, so the queue works only while Pomegr is open.
The queue strip says what happens next, such as "Next: T-25, after T-21 is done". A card that waits for another task says "After T-21". To read every reason a card has not started, open it and read Queue: its place in the start order, one line for each reason, and every task that starts first.
| The task window says | What it means |
|---|---|
| earlier tasks start first (T-3, …) | Those cards are above it in Ready, so they start first. The cards of its own parallel group are not listed: they start with it. |
| runs after T-13, which is not done | It runs after that task. It starts once that task is Done or deleted. |
| T-5 is running | A started task, or a parallel group that runs, holds the queue until it is in Review or Done. |
| the queue is off | You have not turned the queue on. Nothing is wrong. |
| the queue is blocked by T-2 | That task stalled or was blocked by its agent. Resolve it first. |
| the queue is paused at T-3 | A start failed. See If a start fails. |
| a start gate, such as "the working tree state is not known yet" | A start gate holds the start. |
| the queue starts Oct 9, 22:00 | The queue's own start or stop time holds it. |
| the reason is not known yet | Pomegr has no fact that explains the wait. It never assumes that a gate passed. |
To run a task sooner, move its card up in Ready, or start it by hand with Start session.
A scheduled task shows its time on the Starts line. A reading that Pomegr has not observed yet reads "not known yet" and holds the start, like a failed gate. The task window of the next task reads "Nothing known holds it." when Pomegr knows no hold: the queue starts it at its next check, while the desktop app is open.
A task that stalled or was blocked by its agent stops the whole queue. A banner reads Queue blocked and names the task. Nothing new starts until you resolve that task; sessions already running continue. Open the task and choose one of two actions. In the desktop app, the banner also offers them, as Mark done and resume and Requeue T-n.
Mark done and resume queue accepts the task as done, keeps its report and session link, and closes the task window.
Requeue task puts it back in the queue as Queued with its card last in Ready, clears its report and session link, and lets a new session report once more. A task whose latest review failed goes back to its builder instead; see Requeue after a failed review.
A stalled task can also release the queue by itself when its session did not really end: the session reports complete, or Pomegr confirms that it works again. The queue then goes on. See How a report is checked.
A task whose session never reports holds the queue too. Pomegr never marks it done or stalled by itself while it cannot tell that the session ended, for example after the computer or Pomegr restarted. The queue never moves past it, because the task can matter to the whole feature. Open the task and choose Mark done or Requeue task; the task window says "The session has not reported. Mark done ends it; Requeue does not."
Mark done accepts the task and ends the session Pomegr started for it. If the session is still working, Pomegr asks first: End session or Keep it running. Either way the task is done, and a later report from that session changes nothing.
Requeue task clears the session link, so a later report from the old session is not accepted. It does not stop the session at once: once that session has stayed idle for two minutes and the task is not In progress, Pomegr ends it (Idle sessions end).
When the latest review of a task failed, Requeue task sends that review's findings to the session that built the task, so the work goes on where it stopped:
A builder that still runs gets the findings as a message. A builder that has ended is continued in its own folder, and then gets the findings as a message from Pomegr.
A Codex builder shows that message as Sent by Codex from task pomegr, and gets it when its current turn ends. An older Codex shows it as text that starts with
Pomegr (not the user):.When another session works in the project folder the builder ran in, Pomegr continues the builder in the task's own worktree, on the builder's branch.
The card returns to In progress with the same session, and the send-back count starts again.
If Pomegr cannot continue that session, for example because its history is gone, the task goes back to the queue, and the new session gets the findings in its first message and in
get_task.The task log says which way it went: Review findings sent to its builder or Builder could not continue: requeued for a new session.
The message keeps the findings and adds one line: a session whose plugin has
get_task_inbox(0.9.22 or later) reads the whole review thread there and answers each finding withreply_to_reviewbefore it reports.
A builder that reports complete without a new commit after the failed review is refused. The agent is told to fix the findings, commit and push, and report again, and the task log shows Report refused: no commit since the failed review.
A completion enters Review, whether its conditions passed or not. You can mark a task done, or Aril can do so under an agreement that allows it. A completion after a block moves the task to Review and retains the queue hold. Choose Mark done or Requeue task to resolve it. A task in review without an earlier block does not stop the queue. Its card waits in Review, and the queue goes on to the next waiting card once every task of its group is in Review or Done. Open the task when you have time and choose Mark done or Requeue task. If the agent asked for your attention, the panel at the top of the task window shows its line, in the agent's own words.
Each checked condition shows one of three results in the task window:
| Result | Meaning |
|---|---|
| Passed | Pomegr read the repository and the condition holds. |
| Not passed | Pomegr read the repository and the condition does not hold. |
| Not verified | Pomegr had no current reading. The condition is not known to fail. |
Not verified appears, for example, when Pomegr cannot read the session's repository, or when a command of the session still runs. Look at the pull request yourself, then choose Mark done or Requeue task.
Note
Pomegr checks a report once, against the repository and its pull requests as it reads them when the report arrives. A condition that comes true later, such as CI that finishes after the agent reported, still reads Not passed in the task window though the condition now holds. Choose Mark done, or ask the agent to report completion again. Pomegr repeats the check only when another completion report arrives.
A start that fails pauses the queue. The Queue paused banner names the task and one of these reasons. Fix it, then select On again to retry.
| Reason | What to do |
|---|---|
| The provider's command-line tool was not found. | Install Claude Code or Codex on this computer. |
| The Pomegr plugin is not installed in this project, or needs an update. | Install it, or update it to 0.9.0 or later; see Reporting plugins. |
| Starting sessions is available on Windows only. | Start tasks from a Windows computer. |
| Its worktree has uncommitted changes, and Pomegr never removes them. | Select Open folder in the banner (desktop app, Windows), commit or discard the changes there, then select On again. |
| The Windows environment is too large for a session, or has a variable name a session cannot take. | Shorten or remove the variable in Windows environment variables, then select On again. |
| The terminal window could not be opened. | Select On to retry. |
| The terminal opened, but the session never appeared before the process exited. | Open the task's terminal to read why the program stopped, then select On again. |
Without the plugin, with a plugin older than 0.9.0, or when Pomegr cannot read its version, a start is refused with "Install or update the Pomegr plugin in this project to start sessions."
If Pomegr cannot find the Claude Code or Codex program, a start says "The provider's command-line tool was not found on this computer."
Codex runs plugin hooks only after you trust them. Linking a session Pomegr started does not depend on them.
On Windows, each session Pomegr starts gets your user and system environment variables as they are at that start. A variable you add or remove takes effect at the next start without restarting Pomegr.