/autocompact
Sets the auto-compact window size for automatic context compaction.
What /autocompact does
Sets the auto-compact window, defining how full the context window gets before Claude Code automatically compacts it. You can specify a size or use "auto" for model-tuned settings. The value is saved to user settings and applied to the current session.
Syntax
/autocompactQuick drill
Three cards from the /cards deck. Open each to check your answer.
Which command sets the auto-compact window size for automatic context compaction?
- Manually compacts the context window.
- Displays current context window usage.
- Disables automatic context compaction.
- Sets auto-compact window size.
Show answer
/autocompact: Sets auto-compact window size.
Which command spawns a cloud session to automatically fix PR issues from CI or reviews?
- Spawns session to autofix PR issues.
- Manually applies PR review comments.
- Creates a new pull request.
- Generates a CI/CD configuration.
Show answer
/autofix-pr: Spawns session to autofix PR issues.
Which command detaches the current session to run as a background agent?
- Terminates the current session.
- Forks the session into a new one.
- Lists all active background agents.
- Detaches session to run in background.
Show answer
/background: Detaches session to run in background.
Drill all 112 commands in /cards
Spaced repetition so the right command comes to mind in your terminal.