What would you like to be added?
I would like it if the gemini CLI would allow you to specific a UUID, just like claude does, at the command line. For example, claude let's you do:
claude --session-id <some-uuid> -p "please take a look at..."
which can then be fed back in via the -r <uuid> flag in claude.
Why is this needed?
This flag is needed for better automation of Gemini when abstracted. Right now, if a user has another bot or system that shells out to Gemini for an edit, and a follow up needs to happen, we can't pre-seed a path for a codebase location with a UUID, because the UUID is not known until Gemini runs. With Claude, we can do:
-
Generate a UUIDv4
-
Checkout our code into /path/to/sandbox/<uuid>
-
Open claude with the session id set to <uuid>
-
Revisit the work/checkout with the same UUID.
With Gemini, we would need to
-
Generate a UUIDv4
-
Checkout our code into /path/to/sandbox/<uuid>
-
Open Gemini and run the prompt
-
Capture the UUID returned by Gemini via -o json
-
Store both the folder location UUID and the Gemini UUID as a pair so that we can map a folder -> session
By letting us provide our own session id, we can remove a step of complexity that's not needed.
Additional context
Please and thank you :)
What would you like to be added?
I would like it if the gemini CLI would allow you to specific a UUID, just like claude does, at the command line. For example, claude let's you do:
which can then be fed back in via the
-r <uuid>flag in claude.Why is this needed?
This flag is needed for better automation of Gemini when abstracted. Right now, if a user has another bot or system that shells out to Gemini for an edit, and a follow up needs to happen, we can't pre-seed a path for a codebase location with a UUID, because the UUID is not known until Gemini runs. With Claude, we can do:
Generate a UUIDv4
Checkout our code into
/path/to/sandbox/<uuid>Open claude with the session id set to
<uuid>Revisit the work/checkout with the same UUID.
With Gemini, we would need to
Generate a UUIDv4
Checkout our code into
/path/to/sandbox/<uuid>Open Gemini and run the prompt
Capture the UUID returned by Gemini via
-o jsonStore both the folder location UUID and the Gemini UUID as a pair so that we can map a folder -> session
By letting us provide our own session id, we can remove a step of complexity that's not needed.
Additional context
Please and thank you :)