Skip to content

Editing Messages

While the agent is running, you can compose and queue additional messages. They will be delivered to the agent one at a time, in the order they were queued, after the agent finishes its current turn. This lets you:

  • Line up several follow-up instructions without waiting for each one to complete.
  • Change your mind and edit or remove a queued message before it is acted on.
  • Send a message immediately, skipping the queue, if you need the agent to act on it right away.

Queued messages are persisted to disk (queued_messages.json inside the task directory), so they survive a reload.

Built-in slash commands keep their command behavior while queued. For example, if you submit /compact or /newtask while the agent is still running, Kodik runs the command after the current turn finishes instead of sending it to the model as normal text.

Editing a Sent Message (Checkpoint Restore)

Section titled “Editing a Sent Message (Checkpoint Restore)”

If the agent has already acted on a message you want to change, use the checkpoint restore flow instead. This rewinds both the conversation history and the file state to the point just before that message was processed, then lets you re-send a revised version.

If you edit while the previous response is still streaming, Kodik stops that response as part of the restore and sends the revised message immediately; it is not left in the message queue.

See Checkpoints for details.