#Remove blocks from history

3 messages · Page 1 of 1 (latest)

clear patio
#

While talking to Agent. I need to exclude some of the previous blocks. How can we do that ?

forest daggerBOT
#

Hi @clear patio. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Currently, Warp does not provide a built-in feature to permanently delete or exclude individual blocks from your terminal history or session while interacting with Agent Mode. You can clear all blocks in a session using the CMD-K shortcut, but this removes all blocks, not just selected ones.

However, when using Agent Mode, you can control which blocks are attached as context to your query. To exclude certain previous blocks from being sent to the Agent, simply do not attach them:

  • Use CMD-UP (macOS) or CTRL-UP (Windows/Linux) to attach previous blocks as context.
  • To clear attached blocks from your query, use CMD-DOWN (macOS) or CTRL-DOWN (Windows/Linux) until the blocks are removed from context.
  • You can also use your mouse: hold CMD (macOS) or CTRL (Windows/Linux) and click on attached blocks to clear them from the context.

This allows you to selectively include or exclude blocks from the context you send to the Agent, but it does not remove them from your session or history—they are just not included in the current Agent query context. There is currently no way to permanently delete or hide individual blocks from your session or history through the UI or Agent Mode, though this is a highly requested feature and is being tracked by the Warp team for future developmentAttaching blocks as context, Add the ability to delete a block.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: