Skip to content

AI Toolbox Explain Code

refact-planner edited this page Jun 7, 2026 · 1 revision

Explain Code

Explain selected code with the default toolbox command.

The default /explain toolbox command asks the model to explain the selected code. It includes the current file and cursor location so the explanation can use nearby context.

Use it when:

  • A function, branch, or expression is hard to follow.
  • You want a concise explanation without starting a broader investigation.
  • You are reviewing unfamiliar code and need a quick summary.

If the answer needs dependencies, call sites, or runtime behavior, use Explore or Learn mode so Refact can inspect more of the project.

Clone this wiki locally