Why documents, code and images open right in the agent’s terminal window
I like how a terminal conversation keeps moving. I ask a question, the agent responds, and I follow an idea into the next question. Together we focus on new ideas as they appear where my eyes already are.
AgentTerm adds direct commenting on the agent's output: I can send an occasional question or correction back to the agent with the quoted passage. If we keep returning to the same passages, especially when those discussions interleave, I ask the agent to continue in a document.
The conversation is mostly append-only: new responses follow earlier ones. That works well while I am exploring. As I get closer to a result, my focus shifts to refinement and verification. I am examining incremental changes to what we have already agreed on. I want those adjustments shown in place, with their justification beside them.
In AgentTerm, the same window supports both. We brainstorm through terminal prompts and output; our agreement is recorded in documents rendered in the same window and revised in place.
A stable place to refine the result
When a plan starts to take shape, I ask the agent to write it to a Markdown file. It opens as a rendered document in that agent's window, automatically or when I click the file name.
Now I can find a passage on the rendered page, comment on it or write directly on it to propose a change. The agent works on the file, and the page shows the revision in place, with its reply beside the passage. I can see what changed and keep refining it.
Many rounds of revisions across different passages are hard to follow in a plain terminal conversation. The agent gives each document a descriptive name and saves it in a known location. When I need to revisit one, I type a few letters in AgentTerm to find it.
This works for designs, essays and other drafts. Code review uses the same feedback loop, with a presentation and interaction model tuned to code and diffs (curated code review). More types of content can be supported later. The goal is to let agents do more for me and make collaboration easier than in interfaces designed before AI agents existed.
Images open and close
An image is something I may look at more than once. A diagram can take a few rounds to fully understand, or I might need to see it again while discussing the design. I want it available when I need it later.
Some terminals already render images directly. Ghostty supports the Kitty graphics protocol, for example. In AgentTerm, I open an image as a file in the viewer. It has a name I can look up, and a view I can close as my focus changes, then bring forward again without scrolling. The same area can show PDFs, video and local pages.
One window, changing focus
I could open a document in an editor or an image in another app, but keeping it in the agent's window lets me design its placement and size to support the user's focus.
The document can fill the window while I read it. When I send feedback, the view shrinks so I can see the agent pick it up. When I return to the terminal conversation, it rolls up. The agent's revised document comes forward again when it is ready to review.
I want the whole window available for the part of the work I am focused on. The conversation and the document take turns occupying it.
Quick lookup
Closing a view leaves the file available. The viewer picker prioritizes what I have opened and what the session has shown. I can type part of a name to find a document or image again. It also searches nearby files, starting with the project, so I can open something the agent has never mentioned. This lets me bring in earlier information from outside the current session.
Technical notes on asynchronous document review
While the agent revises one passage, I can already be drafting feedback on another. That overlap shapes how AgentTerm records the discussion and when it shows me a new revision.
Event sourcing
When I send a proposed edit, the viewer saves my suggestion and the passage it refers to. The agent is the sole writer of the Markdown file. Once it revises the passage, it records its explanation and marks the proposal as addressed. I can then read the revision alongside my suggestion and the agent’s reasoning.
The agent’s side of this exchange uses event sourcing. The viewer keeps a snapshot of my feedback, and the agent appends its replies and decisions to a separate journal. If the agent rewrites the sentence I selected, it can record where the discussion belongs in the revised text. The viewer applies those events in order so the explanation stays beside the passage even as the wording changes. Agent Threads protocol
The storage design notes explain how these records are kept.
Concurrency
The agent can save a revision while I’m composing feedback. Loading it would rebuild the page and could interrupt my work.
While I’m still working on a comment, I need to see the words I’m commenting on. If the agent rewrites those words, the viewer keeps the original passage on screen until I send or discard the comment.
Deferring a refresh involves a trade-off. It preserves my selection, but I won’t see the agent’s revision until later. One possible optimization is to keep the paragraph I’m commenting on in place while other paragraphs refresh. Live update design notes
A writing tool
These features have made AgentTerm a drafting tool in its own right. Try it.

