using-commands.mdx 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. ---
  2. title: "Using Commands"
  3. sidebarTitle: "Using Commands"
  4. description: "Built-in slash commands to manage context, plan implementations, and create reusable workflows."
  5. ---
  6. Cline provides slash commands in chat that help you manage your conversation and plan complex implementations.
  7. <Tip>
  8. **New to slash commands?** Watch our [quick video walkthrough](https://youtu.be/MxS5Jerpf-o) to see these commands in action.
  9. </Tip>
  10. ## Slash Commands
  11. Type `/` in the chat input to see available slash commands:
  12. | Command | What It Does |
  13. |---------|--------------|
  14. | `/newtask` | Start fresh task with distilled context from current conversation |
  15. | `/smol` | Compress conversation history while preserving essential context |
  16. | `/newrule` | Create a rule file to teach Cline your preferences |
  17. | `/deep-planning` | Investigate codebase, plan thoroughly, then create implementation task |
  18. | `/explain-changes` | Generate AI explanations for any git diff (VS Code only) |
  19. | `/reportbug` | Report a bug with diagnostic info |
  20. ### /newtask
  21. `/newtask` works like a developer handoff. It packages what matters (overall plan, work accomplished, relevant files, next steps) into a fresh task with a clean context window, leaving behind the noise of tool calls and implementation details.
  22. I use `/newtask` when working through complex implementations. If I've completed 3 steps of a 10-step process and my context is already 75% full, I use `/newtask` to extract key decisions, file changes, and progress without all the noise.
  23. ### /smol
  24. `/smol` (or its alias `/compact`) compresses your conversation history while preserving essential context. Unlike `/newtask` which creates a new task, `/smol` condenses your current conversation into a comprehensive summary, freeing up context window space while allowing you to continue working in the same task.
  25. Use `/smol` when you're deep into a debugging session or brainstorming and need to continue in the same task without losing the insights you've gained. For more details, see [Smol Command](#smol).
  26. ### /newrule
  27. `/newrule` creates a rule file that teaches Cline your preferences. Cline will guide you through setting up guidelines for communication style, coding standards, project context, and workflows. The rule is saved to your `.clinerules` directory and automatically loaded for future conversations.
  28. Use `/newrule` when you find yourself repeating the same instructions across tasks. For more about rules, see [Cline Rules](/customization/cline-rules).
  29. ### /deep-planning
  30. Transform Cline into a meticulous architect who investigates your codebase, asks clarifying questions, and creates a comprehensive implementation plan before writing any code. Deep planning follows a four-step process:
  31. 1. **Silent Investigation** - Cline explores your codebase structure and patterns
  32. 2. **Discussion** - Targeted questions about requirements and approach
  33. 3. **Plan Creation** - Generates `implementation_plan.md` with detailed specifications
  34. 4. **Task Creation** - Creates a new task with trackable implementation steps
  35. Use `/deep-planning` for features touching multiple parts of your codebase, architectural changes, or complex integrations. For detailed documentation, see [Deep Planning](/features/deep-planning).
  36. ### /explain-changes
  37. <Note>
  38. This command is only available in VS Code.
  39. </Note>
  40. `/explain-changes` generates AI-powered explanations for any git diff. You can explain the last commit, uncommitted work, staged changes, specific commits, branches, PRs, or any range of changes.
  41. Use `/explain-changes` when reviewing code, onboarding to a new codebase, or understanding what changed. For the full list of use cases and examples, see [Explain Changes Command](#explain-changes).
  42. ### /reportbug
  43. `/reportbug` collects diagnostic information and helps you report issues with Cline. It gathers relevant context like your configuration, recent errors, and system details to make bug reports more useful for the development team.
  44. Use `/reportbug` when you encounter unexpected behavior, crashes, or bugs you want to report.
  45. ## Custom Workflows
  46. Beyond the built-in slash commands, you can create your own workflow files that work the same way. Store Markdown files in `.clinerules/workflows/` and invoke them with `/your-workflow.md`.
  47. For a complete guide on creating and managing custom workflows, see [Workflows](/customization/workflows).