Feature request: Support for antigravity CLI (agy.exe)
Environment
- System: Windows 11 and Linux (DGX Spark)
- Setup: The
antigravityCLI (agy) runs on both and is controlled viaherdr.
Problem
herdr-annotate(plannotator-tui) currently lacks native support foragy.- Since
plannotator-tuiparses agent transcript files directly and there is no mapping foragy, the feature to "pick up the latest reply" does not function. - The current workaround—having the agent save the reply to
/tmp/reply.mdand clicking thefile://link to triggerplannotator-tui—adds friction to the workflow.
Request
- Please add native transcript parsing support for the
antigravityCLI (agy.exe) inplannotator-tui. - This would allow direct annotation of
agyreplies without relying on the document review workaround.
Thanks @mfujita47! Where does agy store its conversation transcripts (the path on Windows and on Linux)? A small sample transcript with anything private removed would let us add an Antigravity host.
Thanks @backnotprop! Here are the paths and a sample transcript.
Paths
- Linux / macOS:
~/.gemini/antigravity-cli/brain/<conversation_id>/.system_generated/logs/transcript_full.jsonl - Windows:
%USERPROFILE%\.gemini\antigravity-cli\brain\<conversation_id>\.system_generated\logs\transcript_full.jsonl - (Override env var:
ANTIGRAVITY_CLI_HOME.transcript.jsonlin the same folder truncates longcontentfields;transcript_full.jsonlis untruncated.)
Sample (transcript_full.jsonl)
{"step_index":0,"source":"USER_EXPLICIT","type":"USER_INPUT","status":"DONE","created_at":"2026-10-21T06:00:34Z","content":"<USER_REQUEST>\nFix the video settings in retroarch.cfg.\n</USER_REQUEST>\n<ADDITIONAL_METADATA>\nThe current local time is: 2026-10-21T15:00:34+09:00.\n</ADDITIONAL_METADATA>"}
{"step_index":1,"source":"MODEL","type":"PLANNER_RESPONSE","status":"DONE","created_at":"2026-10-21T06:00:36Z","input_tokens":10372,"cache_read_tokens":0,"output_tokens":114,"thinking":"Let's inspect retroarch.cfg first.","tool_calls":[{"name":"read_file","args":{"Path":"\"/home/user/.config/retroarch/retroarch.cfg\""}}]}
{"step_index":2,"source":"MODEL","type":"GENERIC","status":"DONE","created_at":"2026-10-21T06:00:38Z","content":"Created At: 2026-10-21T15:00:38+09:00\nCompleted At: 2026-10-21T15:00:39+09:00\nShowing lines 1-20 of 20\n..."}
{"step_index":3,"source":"MODEL","type":"PLANNER_RESPONSE","status":"DONE","created_at":"2026-10-21T06:00:45Z","input_tokens":4978,"cache_read_tokens":10373,"output_tokens":320,"content":"Here is the recommended configuration update:\n\n### Changes\n- Set `video_threaded = \"false\"`\n- Set `video_vsync = \"true\"`"}
- User prompts:
type == "USER_INPUT"(contentstring) - Assistant replies:
type == "PLANNER_RESPONSE"wherecontentis a non-empty string (tool-call-only steps omitcontent)
Discovery Notes
- Herdr:
herdr:antigravity_clialready reportsagent: "agy"andagent_session: { "kind": "id", "value": "<conversation_id>" }. - Active session lock:
<app_data_dir>/presence/<conversation_id>.lock - CWD / recent index:
<app_data_dir>/conversation_summaries.db(SQLite tableconversation_summarieswithconversation_id,workspace_urisas JSON["file:///..."], andlast_modified_time).
Thanks @mfujita47, the paths, sample transcript and discovery notes were exactly what we needed. Antigravity CLI support is now merged into plannotator-tui (plannotator/plannotator-tui#116):
- When Herdr reports the conversation id, the review action reads that conversation's
transcript_full.jsonl. - Without the id, it picks the conversation whose workspace matches the pane's folder, using
conversation_summaries.dbandhistory.jsonl. - It respects
ANTIGRAVITY_CLI_HOMEand works on Windows paths.
It will be available in herdr-annotate after the next plannotator-tui release.
Antigravity CLI support is now live: plannotator-tui 0.9.6 is released and herdr-annotate 0.9.6 pins it. Update the plugin and last / annotate-last-reply will pick up agy conversations. Thanks again for the transcript sample, @mfujita47.
Thanks @backnotprop! Updated to 0.9.6 and confirmed last works natively with agy.
A few small things noticed while testing:
-
parse_messages(jsonl, n)countsUSER_INPUTtowardnbeforelocate()filters forRole::Assistant:- In
newest_with_messages,!parse_messages(&text, 1).is_empty()matches a newly started conversation that only has aUSER_INPUTstep, causinglocate()to fail withhas no assistant messages yetinstead of picking the previous conversation in that cwd. - Similarly, when the latest step is
USER_INPUT,--pick 1returns only that prompt and fails withhas no assistant messages yeteven if earlier replies exist.
- In
-
Subshell env vars (
ANTIGRAVITY_AGENT=1,ANTIGRAVITY_CONVERSATION_ID=<uuid>):agyexports these alongsideANTIGRAVITY_APP_DATA_DIR, sodetect_host()andfallback::readcould use them (likeCODEX_THREAD_ID) when runningplannotator-tui lastinside anagysubshell.
-
Process fallback (
agy.exeon Windows //proc/<pid>/fdon Linux):known_host()inherdr/launch.rsonly matches"agy"after/, missing"agy.exe"or\paths on Windows.- On Linux, while
presence/<id>.lockfiles on disk outlive sessions, a runningagyprocess keeps an open fd to its activepresence/<id>.lockin/proc/<pid>/fd.
Thanks @mfujita47, these were precise and easy to act on. All three are fixed in plannotator/plannotator-tui#119:
ncounted prompts.--picknow counts assistant replies only, and folder discovery passes over a conversation that has no reply yet. A just-started conversation falls back to the previous one in that cwd, and a waitingUSER_INPUTno longer hides the reply before it. The same pattern was in the other readers (Claude Code, pi / OMP / Command Code, Copilot, Droid, Hermes, OpenCode), so they are fixed too.- Subshell env vars.
ANTIGRAVITY_AGENTorANTIGRAVITY_CONVERSATION_IDnow selects agy. The exported conversation id is read exactly, the same wayCODEX_THREAD_IDis, soplannotator-tui lastinside an agy shell opens that conversation.ANTIGRAVITY_APP_DATA_DIRwas already honoured. - Windows process names. The Herdr process fallback now matches
agy.exeand\-separated paths, and the same applies to every other known agent.
I did not add the /proc/<pid>/fd presence-lock scan. Herdr already reports the conversation id for agy panes, and agy shells now carry it too. That leaves only Linux panes where Herdr has no id, and the scan would need lock-file handling that we have not checked against a live agy. If that case turns out to be common, we can add it.
These fixes ship in the next plannotator-tui release.
Updated to herdr-annotate 0.9.7 (plannotator-tui 0.9.7) and confirmed all three fixes work out-of-the-box without any local wrapper patches.
For reference on /proc/<pid>/fd against a live agy (in case it's ever needed):
- Each running
agyprocess holds exactly one open fd to<app_data_dir>/presence/<conversation_id>.lock(flockadvisory write lock):/proc/619137/fd/38 -> /home/user/.gemini/antigravity-cli/presence/c15a7fae-0ba4-4488-a205-f0632e42d31e.lock # /proc/619137/fdinfo/38: lock: 1: FLOCK ADVISORY WRITE 619137 ... 0 EOF - Subagent conversations (
parent_conversation_id != "") never create or open apresence/<id>.lockfile, and exited sessions' descriptors are closed, so a plainread_linkscan on/proc/<pid>/fdforpresence/<uuid>.lockyields a single<conversation_id>without needing lock inspection.
That said, with Herdr's agent_session and ANTIGRAVITY_CONVERSATION_ID both supported in 0.9.7, everything we use is already covered. Thanks again for the quick turnaround!