# Tracking unfinished work across coding agent sessions · Oxagen Research

Source: https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions

[Research](https://oxagen.sh/blog) · [Autonomous agents](https://oxagen.sh/blog/pillars/autonomous-agents)

# Tracking unfinished work across coding agent sessions

Coding agents leave TODOs, skipped tests, and open questions behind. How to track unfinished work across coding agent sessions, by hand and with Oxagen.

Oxagen Research · November 30, 2026 · 7 min read

*   [Autonomous agents](https://oxagen.sh/blog/pillars/autonomous-agents)
*   [Coding agents](https://oxagen.sh/blog/pillars/coding-agents)

On Friday evening an agent ends its run with a green pull request and a closing note. The note says it skipped a flaky retry test and asks whether exports should also retry on a 503. The pull request merges on Monday, and nobody reads the note. Three weeks later a customer's export fails on a 503.

To track unfinished work across coding agent sessions, read every session when it ends. Look for TODO comments and skipped tests in its diff, checklist items it never finished, and questions in its closing message. File each one where your team tracks work, and write each decision where the next agent will read it.

## Where coding agents leave unfinished work

An agent leaves unfinished work in five places, and only two of them ship with the code.

Five places a coding agent leaves unfinished work

*   TODO, FIXME, or XXX commentadded byShips with the codeEasy to miss in a long diffThe run's diff
*   Test marked as skippedadded byPasses CI by not runningThe run's diff
*   Checklist item never finishedlives inVisible only against a written done listThe work item
*   Part of the task left undonelives inWritten after the last stepThe run's summary
*   Choice left to a personlives inOften under a label such as Decisions for youThe agent's last reply

The five places Oxagen's end-of-run read looks. The first two travel with the code. The other three sit in the work item, the run's summary, and the agent's last reply.

Agents leave these comments too. Brahmi and colleagues studied 525 comments in which an AI coding agent admitted a shortcut, a kind of comment researchers call self-admitted technical debt.[1](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-1) Requirement debt, such as a feature still to build, was the largest category at 27.0 percent. Code debt followed at 17.3 percent and design debt at 15.6 percent. Agent comments and human comments alike mostly named a problem and gave little or no guidance on how to fix it.

Developers flag AI-written code in their own comments too. Al Mujahid and Imran searched 6,540 code comments that mention a language model and found 81 that also admitted debt. The common themes were postponed testing, incomplete adaptation, and limited understanding of the code the model wrote.[2](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-2)

The other three places leave no mark in the code. A run's task list shows what is left while the run is live.

The Tasks panel of a run's page, with illustrative data. Two of five tasks are done, one is in progress, and two wait: answering a review and closing the work item once the pull request merges.

A run's task list with three items open

## Why TODOs left by coding agents go unread

Teams have written TODOs for decades, and many of them stay. Storey and colleagues found that developers use TODO comments to track their own tasks and their team's.[3](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-3) Potdar and Shihab studied self-admitted debt in four large open-source projects. Between 26.3 and 63.5 percent of it was removed after it was introduced.[4](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-4)

Agents add speed to that pattern. Watanabe and colleagues studied 567 pull requests made with Claude Code across 157 open-source projects. Maintainers merged 83.8 percent of them, and 54.9 percent of those merged with no further change.[5](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-5) Most agent work lands. Whatever an agent left in its transcript lands with it, out of view.

A skipped test is harder to see than a comment. The test runner reports it as skipped, the check stays green, and the reviewer sees a passing build. Unless someone reads the diff line that added the skip, the gap looks like coverage.

The transcript is also short-lived. Claude Code keeps each session as a plain file on the machine that ran it, and deletes sessions older than 30 days by default.[6](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-6) An agent's closing note about a flaky test lasts a month on one laptop, then it is gone.

Reading it back costs time even while it exists. Parnin and Rugaber studied 10,000 recorded sessions from 85 programmers who resumed interrupted tasks. Only 10 percent had coding activity start within a minute, and only 7 percent involved no navigation to other places in the code before the first edit.[7](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-7) A person picking up an agent's leftovers has the same rebuilding to do.

Anthropic hit the same gap in its own long-running agent work. When an agent ran out of context mid-feature, the next session started with a feature "half-implemented and undocumented" and had to guess at what had happened. The fix was a written handoff: a progress file each session updates, read beside the git history, and a feature list where every item starts as failing.[8](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-8)

## How to track unfinished work by hand

A team can do this with no new tools. It takes five habits:

1.  **Ask for the list.** Put a closing rule in `CLAUDE.md` or `AGENTS.md`, so every session ends with the same two lists.
    
    ```markdown
    ## Before you stop
    End your last reply with two lists:
    - Left undone: each TODO, skipped test, or unfinished part, with its file.
    - Decisions for you: each choice you guessed at or left open, with the options.
    ```
    
2.  **Keep a progress file per task.** Anthropic's agents wrote a summary of their progress to a file and committed with descriptive messages, so the next session read both. They kept the feature list in JSON, because the model was "less likely to inappropriately change or overwrite JSON files compared to Markdown files."[8](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-8)
    
3.  **Scan the diff before merge.** New markers are easy to find in the lines a branch adds:
    
    ```sh
    git diff origin/main...HEAD | rg '^\+.*\b(TODO|FIXME|XXX)\b|^\+.*(\.skip\(|@pytest\.mark\.skip|xit\()'
    ```
    
4.  **File each item where the team tracks work.** Coding agent follow-up work belongs in the same queue as the rest. Link each item to the pull request that left it, so the next person sees where it came from.
    
5.  **Write each decision down for the next agent.** An answered question that lives only in a chat gets asked again. [Decision records for coding agents](https://oxagen.sh/blog/decision-records-for-coding-agents) covers where to keep them so agents read them.
    

The habits work until the count grows. Step 1 depends on every agent following the rule. Steps 3 and 4 depend on a person doing them after every run, including the runs that ended at 2 in the morning.

## How to search coding agent transcripts

Claude Code writes each session to `~/.claude/projects/<project>/<session>.jsonl`, one JSON record per line.[6](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-6) Searching one machine's sessions takes one command:

```sh
rg -l "Decisions for you|Left undone" ~/.claude/projects/
```

Three limits come with it. The cleanup deletes sessions older than `cleanupPeriodDays`, 30 days by default, so raise it in `settings.json` if you want a quarter of history. The files are plaintext: when a command printed a credential, the transcript holds it too.[6](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-6) And the search covers one laptop, so it misses every session that ran on a colleague's machine, in a cloud sandbox, or in another harness.

Oxagen records runs from Claude Code, Codex, Cursor, and Stella on machines enrolled in the workspace, so one list holds runs from every laptop. The Runs page narrows that list by status or a search. The Run page searches one run's whole transcript on the server and opens every row that matches. [Reading a long agent run](https://oxagen.sh/blog/reading-a-long-agent-run) covers that page in detail.

## What Oxagen reads when a run ends

Oxagen does the end-of-run read for you. When a recorded run ends, Stella, the assistant in the Oxagen app, reads it for the work it left unfinished. Stella reads the five places above: added TODO, FIXME, and XXX comments, added tests marked as skipped, Done Checklist items the agent never claimed, the part of the summary that says what was left, and the agent's last reply.

How one TODO reaches the next agent

1.  Run endsThe agent stops and its record closes
2.  ReadStella reads the diff, summary, checklist, and last reply
3.  RaiseOne card per run, one question per item
4.  AnswerFile an issue, send an agent, or record a decision
5.  Next runA sent work item or a merged steering record reaches the next agent

| Stage | retry TODO after the stage |
| --- | --- |
| Run ends | left in diff |
| Read | found |
| Raise | on your card |
| Answer | answered |
| Next run | picked up |

One TODO from a run's diff moves from the ended run to the next agent. A second read, half an hour or more after the run ends, sees the final summary. An item already raised is not raised again.

Stella raises an item only for a concrete defect, a broken or skipped test, a missing piece of the change, or a choice only a person can make. It leaves out steps that CI and review already cover, such as waiting for checks.[9](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-9) One run raises at most 12 items. The items that need an answer share one card in your Console, with one question each, and the run adds one to your count however many it asks. An item whose next step is an issue to file waits under Work item suggestions instead. When the agent's last reply lists choices under a label such as Decisions for you, Stella asks each one.

Each card shows its evidence. When the agent said in its last reply what it left undone, the card quotes it under The agent said. Under Stella's reason, one sentence says why Stella raised the item. You judge the item from the agent's own words, without opening the transcript.

The card offers the step that fits each item:

*   **Create issue** files it in the repository you choose, with a title and body you can edit first.
*   **File an issue and start a fix in a sandbox** files it, then starts a run on the same harness that opens a pull request naming the work item.
*   **Send an agent** sends the work item back to finish its open checklist item.
*   **Accept the work and defer this item** accepts the change and moves the open item to a follow-up work item linked to the original.
*   **Record the decision** answers a choice from two to four options. One option can draft a steering record, the written rule later agents read.

The work item WI-12 on a phone, with illustrative data. It came in from Jira as PLAT-8812. Two of its four Done Checklist items are done. The other two are the retry's attempt limit and its docs page.

A work item's Done Checklist on a phone

Each item is tied to the evidence that raised it and to the work the run did. A relaunch of the same work that leaves the same TODO raises nothing new. An item that is not a decision leaves your queue after three days. A decision waits until a person answers it, and the record keeps both.

What the read covers

Stella reads runs that Oxagen recorded, in workspaces where the Run summaries setting is Always (the default), because each read takes a model call. It reads only what the run's record holds, so a TODO typed outside a recorded run is not in it. Raising an item does not finish the work. A person answers each one, unless you switch on one of the actions Stella may take alone.

## Decisions the next agent should follow

The most expensive leftover is a choice. An agent that guessed whether exports retry on a 503 will guess again next week, and a different agent may guess the other way. A decision answered once and written as a steering record reaches every later agent that reads the workspace's steering, once its pull request merges. When the run worked a tracked work item, Oxagen also posts your answer on that item's issue, so the people who follow the ticket see it too.[9](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fn-9) [Steering drafted from corrections](https://oxagen.sh/blog/steering-drafted-from-corrections) shows how Oxagen drafts those records from the corrections people already make.

With [many Claude Code agents running in parallel](https://oxagen.sh/blog/run-multiple-claude-code-agents-in-parallel), leftovers arrive faster than one person can reread transcripts. To follow agent work from a tracker issue to an accepted change, see how Oxagen tracks [unfinished agent work on the Work page](https://oxagen.sh/product/work).

## References

1.  Brahmi, Z., Ouni, A., Sayagh, M., & Saied, M. A. (2026). _Characterizing self-admitted technical debt generated by AI coding agents_. Proceedings of the 23rd International Conference on Mining Software Repositories (MSR 2026), 852-856. [https://doi.org/10.1145/3793302.3793588](https://doi.org/10.1145/3793302.3793588) [↩](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-1)
    
2.  Al Mujahid, A., & Imran, M. M. (2026). _"TODO: Fix the mess Gemini created": Towards understanding GenAI-induced self-admitted technical debt_. 9th International Conference on Technical Debt (TechDebt 2026). [https://arxiv.org/abs/2601.07786](https://arxiv.org/abs/2601.07786) [↩](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-2)
    
3.  Storey, M.-A., Ryall, J., Bull, R. I., Myers, D., & Singer, J. (2008). _TODO or to bug: Exploring how task annotations play a role in the work practices of software developers_. Proceedings of the 30th International Conference on Software Engineering, 251-260. [https://doi.org/10.1145/1368088.1368123](https://doi.org/10.1145/1368088.1368123) [↩](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-3)
    
4.  Potdar, A., & Shihab, E. (2014). _An exploratory study on self-admitted technical debt_. IEEE International Conference on Software Maintenance and Evolution, 91-100. [https://doi.org/10.1109/ICSME.2014.31](https://doi.org/10.1109/ICSME.2014.31) [↩](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-4)
    
5.  Watanabe, M., Li, H., Kashiwa, Y., Reid, B., Iida, H., & Hassan, A. E. (2025). _On the use of agentic coding: An empirical study of pull requests on GitHub_. arXiv. [https://arxiv.org/abs/2509.14745](https://arxiv.org/abs/2509.14745) [↩](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-5)
    
6.  Anthropic (2026). _Explore the .claude directory: Application data_. Claude Code documentation. [https://code.claude.com/docs/en/claude-directory](https://code.claude.com/docs/en/claude-directory) [↩](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-6) [↩2](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-6-2) [↩3](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-6-3)
    
7.  Parnin, C., & Rugaber, S. (2009). _Resumption strategies for interrupted programming tasks_. IEEE 17th International Conference on Program Comprehension, 80-89. [https://doi.org/10.1109/ICPC.2009.5090030](https://doi.org/10.1109/ICPC.2009.5090030) [↩](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-7)
    
8.  Young, J. (2025). _Effective harnesses for long-running agents_. Anthropic Engineering. [https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents) [↩](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-8) [↩2](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-8-2)
    
9.  Oxagen (2026). _The Stella page_, section Residue. Oxagen documentation. [https://docs.oxagen.sh/docs/stella-page](https://docs.oxagen.sh/docs/stella-page) [↩](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-9) [↩2](https://oxagen.sh/blog/track-unfinished-work-across-coding-agent-sessions#user-content-fnref-9-2)
