All posts

Take back a prompt with /revise, or start over with /clear

Two new slash commands: /revise undoes your last prompt and puts it back in the composer, and /clear starts a fresh chat.

You send a prompt, read the first lines of the reply, and see the problem. You forgot to name the file, or you asked for the wrong thing. Before, you had two choices: let the agent finish and argue with it, or dig through checkpoints to roll back.

Tarsk now has two slash commands for this moment. /revise takes back your last prompt. /clear starts the chat over.

/revise: undo the last prompt and edit it

Type /revise in the composer and press Enter. Tarsk then:

  1. Removes your last prompt and the agent’s reply from the conversation.
  2. Restores the files in the workspace to the state they had before that prompt, if Tarsk saved a checkpoint for it.
  3. Puts the prompt text and its attachments back in the composer.

A toast confirms the result. Last prompt removed with Files and conversation are back to before that prompt. Edit it and send again. means Tarsk also rolled back the files. When the turn had no checkpoint, the toast says Edit the prompt and send again. and your files stay as they are.

Fix the prompt and send it. The agent sees the conversation as if the first attempt never happened, so it does not carry your mistake into the new answer.

You can run /revise more than once. Each run takes back one more prompt, newest first.

When /revise refuses

  • The agent is still working. Tarsk shows Agent is busy: stop the agent or wait for it to finish, then revise. A turn that you stopped halfway counts as finished, so you can revise it.
  • The chat is empty. The command does not appear in the slash menu until the chat has a message.
  • The last turn is a compaction. After /compact, Tarsk tells you The last turn is a compaction summary and cannot be revised. The summary replaced the older turns, so there is nothing earlier to restore.
  • A side pane. /revise works in the main chat of a workspace. In an extra pane, Tarsk asks you to use it in the main chat.

If Tarsk cannot restore the files, for example because the workspace is not a Git repository, the revise stops and your prompt goes back in the composer unchanged. Nothing gets half-undone.

/clear: start a new chat

/clear does the same thing as the New chat button. Tarsk stops the agent if it runs, and opens an empty conversation in the same workspace. Your files do not change.

Use it when the chat has drifted far from the task and a long history only adds cost and noise. The command appears in the slash menu once the chat has a message.

Which one to use

Pick /revise when one prompt went wrong and the rest of the chat is good. Pick /clear when you want the agent to forget the whole conversation but keep the work on disk.

Open a chat, send a prompt you plan to change, and type /revise. Your words come back in the composer, ready to edit.

  • /revise removes the last prompt and reply, rolls back the files from its checkpoint, and returns the prompt to the composer.
  • /clear opens a new chat in the same workspace and leaves the files alone.
  • Both commands appear in the slash menu after the first message.