Blocks as Context
Attach blocks from your terminal as context so Warp’s Agent can understand errors, outputs, or previous commands when responding to your queries.
Attaching blocks as context
Warp’s Agent can use blocks from your Agent conversations as context to better understand your queries and generate more relevant responses.
You can attach a block directly from the terminal blocklist by clicking the AI sparkles icon on it and selecting “Attach as context.”

The most common use case is to ask the AI to fix an error. You can attach the error in a query to Agent Mode and type "fix it."
If you're already in Agent Mode, use the following ways to attach or clear context from your query:
Attach a previous block
To attach blocks to a query, you can use
CMD-UPto attach the previous block as context to the query. While holdingCMD, you can then use yourUP/DOWNkeys to pick another block to attach.You may also use your mouse to attach blocks in your session. Hold
CMDas you click on other blocks to extend your block selection.
Clear a previous block
To clear blocks from a query, you can use
CMD-DOWNuntil the blocks are removed from context.You may also use your mouse to clear blocks in your session. Hold
CMDas you click on an attached block to clear it.
Attach a previous block
To attach blocks to a query, you can use
CTRL-UPto attach the previous block as context to the query. While holdingCTRL, you can then use yourUP/DOWNkeys to pick another block to attach.You may also use your mouse to select blocks in your session. Hold
CTRLas you click on other blocks to extend your block selection.
Clear a previous block
To clear blocks from a query, you can use
CTRL-DOWNuntil the blocks are removed from context.You may also use your mouse to clear blocks in your session. Hold
CTRLas you click on an attached block to clear it.
Attach a previous block
To attach blocks to a query, you can use
CTRL-UPto attach the previous block as context to the query. While holdingCTRL, you can then use yourUP/DOWNkeys to pick another block to attach.You may also use your mouse to select blocks in your session. Hold
CTRLas you click on other blocks to extend your block selection.
Clear a previous block
To clear blocks from a query, you can use
CTRL-DOWNuntil the blocks are removed from context.You may also use your mouse to clear blocks in your session. Hold
CTRLas you click on an attached block to clear it.
Last updated
Was this helpful?