Skip to content

[Feature Request] Continuous review sessions with live updates and agent replies #1116

Open

Description

@rrei

Continuous review sessions with live updates and agent replies

Summary

Today, submitting feedback ends the session: the decision resolves, the server stops, the tab is done. The core ask is for the review/annotate surface to stay live after a submit so you can keep exploring the material and keep sending comments to the agent while it works on the feedback you already sent - and for the agent to reply and for the material to update live. A one-shot handoff becomes an ongoing review conversation.

Core behaviour - continue reviewing after submit

  • After a submit, the tab does not close. The session stays live; you keep browsing and adding comments.
  • Delivery-mode config knob:
    • manual - during the live session, comments are delivered only when you explicitly send one or more via the Send button (what happens to unsent comments on Accept/End is left open below);
    • automatic - each comment is queued for delivery immediately and reaches the agent at its next contact point (e.g. a PreToolUse hook).
  • The agent keeps working on feedback already received; new comments are additional input, not a blocking gate.

Session controls

The single "submit" button is replaced by explicit controls:

  • Send - deliver the current batch of pending comments and keep the session alive.
  • Accept - final user approval; ends the session. May also carry any pending/unsent comments.
  • End - ends the session without approval; the agent is notified (queued immediately, received at its next contact point).
  • Close the tab - ends without approval implicitly; a keepalive timeout is picked up by the agent.

Agent replies

Once the session is live, the agent can reply to user feedback. It only replies to existing user comments - it never opens new comments or annotations of its own. Each reply states one of:

  • accepted and addressed, linking the respective commit(s) and specific line ranges, if applicable;
  • pushback on the feedback;
  • request for clarification / more info.

A reply is sent only after committing the associated changes. The only exceptions - where the agent replies without making any changes - are when it needs clarification / additional context, or wants to push back on the feedback.

Rendered GitHub PR-thread-style, and the user can mark comments/threads as resolved (purely UI/Plannotator state; no message is sent to the agent).

Live change detection

Change detection is unified on git. For plannotator annotate, use a disposable git repo so every surface reduces to the same mechanism:

  • plannotator review - the existing git workspace (working tree / PR head).
  • plannotator annotate <file|dir> - versioned in a temporary git repo.
  • plannotator annotate <url> - download the page to a temp dir, then version that dir as a temporary git repo.

Locate these temporary repos under the plugin's data dir, where the agent host (e.g. Claude Code) usually already has write permission, so the agent can commit without blocking on a permission prompt (writability is host-dependent - see Open questions).

For plannotator annotate, every commit to the temp repo is synced back to the original location (the file or directory). URL-backed sessions are the exception - there is no writable origin to sync to.

The surface refreshes as new commits are detected.

Comment delivery and freshness

  • Each comment is stamped with the revision it was authored against (a revision identifier; its exact representation is left open below).
  • At delivery time (hook-based), check whether the targeted lines changed since that revision.
  • Stale-target config knob:
    • hold - don't deliver; report status back to the browser;
    • deliver-with-note - deliver anyway, annotated "this may be stale - it referenced revision <id>, since changed".
  • Every comment carries a delivery status shown in the browser (WhatsApp-style): queued, delivered, delivered-stale, held-stale.
  • A held-stale comment isn't a dead end - you can re-anchor it to the current revision, edit and resend it, or discard it.

Acceptance criteria

  • A mode exists where submitting feedback does not terminate the session; the tab stays open and keeps accepting comments.
  • Session controls: Send (flush pending, stay live), Accept (approve and end, optionally carrying any pending comments), End / tab-close (end without approval, agent notified).
  • Delivery-mode knob selects manual (explicit Send) vs automatic (each comment delivered at the next possible delivery point).
  • The agent posts replies to user feedback - accepted (with commit link) / pushback / clarification - and nothing else.
  • For plannotator annotate, the agent commits its changes to the temporary git repo (under the plugin's data dir) before replying, except for clarification-only or pushback-only replies.
  • For plannotator annotate, committed changes are synced back to the original file/directory (URL-backed sessions excepted).
  • The UI renders PR-style threads and supports marking comments/threads resolved (UI-only; not sent to the agent).
  • Change detection is unified on git, including a disposable repo for plannotator annotate file/dir/URL.
  • Every comment carries the revision id it was authored against and a delivery status (queued / delivered / delivered-stale / held-stale).
  • A stale-target policy knob selects hold vs deliver-with-note.

Open questions

I'm a user filing a feature request, not prescribing an implementation - these are the design questions I know I'm hand-waving, left for whoever picks this up:

  • URL-backed annotate sync. The local copy is a normal temp repo, so the agent edits and commits there as usual; there's simply no writable origin to sync those commits back to. What, if anything, should happen to them - discard, or offer an export?
  • Snapshot identity in review. A bare commit hash can't uniquely pin a comment authored against a dirty working tree. Some fuller snapshot (a synthetic commit/tree, plus path and diff side) is probably needed.
  • Stale-range algorithm. "Did the targeted lines change" needs a real definition: mapping an old line range onto the new revision across renames, deletions, overlapping edits, and diff side (old vs new).
  • Delivery semantics when the agent isn't running. What does delivered mean between turns, when stopped, or if no further hook fires? Ordering, retries, idempotency (duplicate hook fires), and offline queuing are all unspecified.
  • Accept/End with pending comments. If queued or held-stale comments remain at Accept/End, are they flushed, discarded, or does approval block until they resolve?
  • Reply commit links. A throwaway local repo has no browser-addressable commit URL - how does a reply's "linked commit" become navigable?
  • Plugin data-dir writability. Assumed writable by the agent host; this is host-dependent. What's the fallback when it isn't?
  • Concurrency. An agent commit or a live refresh can race with an in-progress line selection - the displayed revision a comment anchors to should be captured atomically at annotation time.

Activity

  1. changed the title [-]Continuous review sessions with live updates and agent replies[/-] [+][Feature Request] Continuous review sessions with live updates and agent replies[/+] on Jul 23, 2026
  2. LiranBri commented on Aug 4, 2026

    @LiranBri

    +1
    I think it should be more similar to Crit where you comment, then after feedback your comment is answered by the coding agent, and you can have a discussion on it until the comment is "Resolved" and only then it goes away

  3. franky47 commented on Aug 27, 2026

    @franky47

    Another good example of this kind of interaction is sideshow.sh (for remote architecture review) and hunk.dev (for local human+agent code review).

  4. mkielar commented on Oct 5, 2026

    @mkielar

    Our flow:

    1. Agent creates a document/code change, and opens a review session in my browser.
    2. I comment on the things I don't like.
    3. I pass that back to the agent
    4. Agent has a chance to answer to my comments or apply requested changes and reopen the review session again.
    5. Steps 3 and 4 continue until we settle on the final shape of the thing.

    This is currently how I use hunk and what am checking out crit for. From the three, Plannotator has the best commenting functionality (comment on text selection, not on line or markdown block), and I'd really like to switch to it. This feature is the only thing that stops me.

  5. backnotprop commented on Oct 5, 2026

    @backnotprop
    Owner

    Thanks for the detailed write-up, this is really helpful.

    Part of this loop shipped in 0.28. On Claude Code (2.1.287+), Pi and OpenCode 2, Plannotator now stays connected to the agent session that opened it. The agent doesn't wait while you review, and your decision arrives as a message. For plan review, a revised plan updates the same open tab and keeps your comments. You can also ask the agent about a comment directly from the review ("Ask this session"). Short demo: https://x.com/plannotator/status/2106875215170899992

    The rest of your loop is what we're scoping now:

    • sending a comment to the agent without ending the review,
    • the agent answering under each comment or updating the file in place,
    • marking threads resolved.

    We'll update this issue when it lands.

  6. added
    enhancement
    on Oct 21, 2026
  7. ruaridhw commented on Oct 22, 2026

    @ruaridhw
    Contributor

    Related request (happy to open a new issue if needed):

    Would be amazing to have this for plannotator last: keep the tab open and pick up new agent messages.

    Currently my workflow is continually opening a new last after each message when it would be ideal to utilise hooks or similar for "hot reload" style:

    • a new assistant message from the session that opened the tab shows up there, in the message picker as the newest entry
    • comments I've already made on earlier messages stay put,
    • the session stays open until I submit, and the submit carries feedback on whichever messages I annotated, but ultimately stays open waiting for new assistant messages (with the current round of annotations cleared). I think the Inbox does something very similar tbh.
  8. Flamintus commented on Oct 29, 2026

    @Flamintus

    In reply to @backnotprop this comment:

    Thanks for the detailed write-up, this is really helpful.

    Part of this loop shipped in 0.28. On Claude Code (2.1.287+), Pi and OpenCode 2, Plannotator now stays connected to the agent session that opened it. The agent doesn't wait while you review, and your decision arrives as a message. For plan review, a revised plan updates the same open tab and keeps your comments. You can also ask the agent about a comment directly from the review ("Ask this session"). Short demo: https://x.com/plannotator/status/2106875215170899992

    The rest of your loop is what we're scoping now:

    • sending a comment to the agent without ending the review,
    • the agent answering under each comment or updating the file in place,
    • marking threads resolved.

    We'll update this issue when it lands.

    Lovely to read this, I can't wait! Here is some input for the scoping. I use Crit daily with Claude Code and contribute to it on this exact topic (sub-threads, tomasz-tomczyk/crit#1071). I also really like Plannotator's interface (commenting on a text selection, the overall polish), and I would love to have the same loop available here. I also work in Herdr with herdr-annotate, and I would love to see it evolve in the same direction, so the loop also works right next to the agent's pane. Below: the workflow I rely on today, the contract that makes it work, and where Plannotator already is as far as I can tell from main.

    The workflow I use today (Crit, my fork, a small Claude Code skill)

    The review target is a file, a plan, a diff, or the agent's last message. For a message, a skill copies it verbatim into a throwaway file, reviews that file in Crit and deletes it on approval: the plannotator last case from ruaridhw's comment above.

    1. I comment. I select passages and comment on them; each comment is a thread anchored to its passage. Then I click Finish Review.
    2. The agent gets the open threads, with ids. The command the agent is waiting on returns the unresolved comments as JSON, each with a stable id, the quoted text and its anchor.
    3. The agent handles every comment in that same round. A question gets its answer in the thread. A requested change is made in the real project files, then the thread says what was done, or why not. A request about the message itself ("rephrase this") edits the copied text, and the browser shows the new version live. Replies go through crit comment --reply-to <id>, and the agent never resolves: resolving is mine. The agent then signals the end of its round and the browser refreshes.
    4. Next round, same tab. I read each reply in its thread, then resolve it, reply again, or select a passage of the agent's reply and open a sub-thread on it (my fork). When a file changed, comments follow their text; a lost anchor is flagged as drifted, never dropped.
    5. Approval is a finish with nothing left open; an open sub-thread counts as unresolved and holds approval back. The review data is then cleaned up.

    The contract behind it

    What I would love to see in the scoping, as acceptance criteria:

    1. Feedback carries a stable id per annotation, and the agent can write back to it: a reply(id, body) action on the tool (or a CLI command or route), so replies land under the right annotation, not in the chat.
    2. The agent answers under each comment, and updates the file in place when needed, rather than "answering under each comment or updating the file in place". Every comment then gets a visible outcome in its own thread.
    3. The review outlives a send: same tab, same annotations; agent replies and file edits arrive in place, and the next round starts from there.
    4. Resolution belongs to the human, per thread; the agent never resolves. Approval means nothing is left open.
    5. Anchors follow the text across rounds; a lost anchor is flagged, not silently dropped.
    6. Sub-threads on any message: select a passage of any message in a thread, mine or the agent's, and comment on it. This opens a sub-thread with the same features as a top-level thread (replies, resolve, further sub-threads, no depth limit), resolved independently from its parent. Agent replies are often long and cover several points; without this, discussing one point means quoting it by hand into one flat thread, where the points get mixed up.
    7. The agent's last message is a first-class target: plannotator last stays live like the other modes, with no throwaway file.

    Plannotator's mod-based delivery is a great fit for this loop: the agent does not block while I review, so what is missing is mostly for the review itself to persist across rounds on top of it.

    Where Plannotator already is (reading main at 92c62d3)

    Most of the pieces seem to be there:

    • inReplyTo exists on annotations, renders nested and exports grouped (types.ts#L103).
    • The "Ask this session" bridge already keeps a live channel between the tab and the session, but it closes once the review settles (controller.ts#L1645-L1646).
    • A revised plan keeps its comments in the open tab (App.tsx#L4464), and annotate creates a version when the file changes on disk (annotate-live-version.ts).

    The gaps I noticed:

    • The export numbers annotations 1, 2, 3 without their ids (parser.ts#L1260, #L1297), so the agent cannot point back to one.
    • The plannotator tool has no reply action, only annotate | review | last | list | close (tool.ts#L15).
    • The annotate server stops right after the decision (annotate-command.ts#L46-L48).
    • Annotations have no resolved state.

    The sub-thread behaviour is described in detail in tomasz-tomczyk/crit#1071 (crit-web counterpart: tomasz-tomczyk/crit-web#469), and the message-review use case in tomasz-tomczyk/crit#1052. I am happy to test early builds and give feedback on this loop, in Plannotator as well as in herdr-annotate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions