# Ctrl+X Ctrl+K Shortcut

> Two keys, pressed in turn, that stop all the subagents that run in the back.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Ctrl+X Ctrl+K, stop all background subagents, kill agents shortcut

## Think of it like

It is like calling all the kids in from the yard at once.

## Definition

Ctrl+X Ctrl+K is the Claude Code shortcut that stops every subagent that runs in the background in this session. It also stops replies to artifacts for the rest of the session. Press it twice in 3 seconds to confirm. It works even while a subagent in the background asks for permission.

## Example

Mia started five subagents, and they are all on the wrong path. She presses Ctrl+X Ctrl+K twice, and they all stop.

## Why it matters

One chord stops them all, so you do not have to stop each one.

## Common mistake

Pressing it once and thinking it worked. It needs a second press to confirm.

## Three principles

- **Stops all background subagents.** At once.
- **Confirm twice.** Within 3 seconds.
- **Ends auto-replies.** For the session.

## Related terms

- [Subagent](https://learn.benibix.com/term/ai/subagent)
- [TaskStop Tool](https://learn.benibix.com/term/ai/task-stop-tool)
- [Ctrl+B Shortcut](https://learn.benibix.com/term/ai/ctrl-b-shortcut)

## Taught in

- [Checkpoints and Control Keys](https://learn.benibix.com/learn/ai-claude-code/checkpoints-and-control-keys): Claude Code, 3/16

---

Source: https://learn.benibix.com/term/ai/ctrl-x-ctrl-k-shortcut
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
