Ask about the code you’re reading

Point at a line, a block, a function, a folder or a box on a diagram, ask, and read the answer right where you are.

2 min read · Video walkthrough

Before you start

  • A model under Settings → AI: the Claude Code, Codex or Gemini CLI you’re signed in to, a Gemini API key, or a local model.
A question about the package declaration in Money.kt, answered under the line. The model is a scripted local one in this recording.

Ask about a line#

  1. Point at the code.

    Select a line or a block, then press ⌘I (Ask AI about the selection) or use the ninja that appears beside the selection. You can also ⌥-click a line, or a box on a diagram, to ask about exactly that.

  2. Ask a concrete question.

    “What happens if this call returns an empty list?” works better than “explain this”. The thread opens under the code, and WTFCode has already sent what you pointed at, so you never paste code or name the file.

  3. Check the answer against the source.

    Follow the source links in the reply. Ask a follow-up in the same thread if it leaves an error case unexplained.

Inline or the chat#

There are two ways to ask, and they look the same.

InlineThe chat
ForOne question about one thingA conversation, a task, anything
WhereBeside the thing, and gone with itOne place, always there: ⌘⌥L
KnowsWhat you pointed at, fixed when it opensWhere you are when you send
Start it⌘I, ⌥-click, the selection’s ninja⌘⇧I (Ask about this in Chat)

Either way, the agent that knows the subject answers: the code agent in the editor, the cloud agent on a Terraform block, the database agent on a table.

Pick the model for a thread#

The pill at the top of a thread names the provider and effort it uses. Click it to pick another model, search the list, or slide the effort. A thinking level you pick in the chat shows in the thread’s pill too.

Where you can ask#

  • The editor: a selection, a line, a function, a class.
  • The Explorer: a file or a folder.
  • Code Review: a hunk or a line of the diff.
  • Diagrams and canvases: a box on a code flow, a node of the Terraform map, a step of a scene.
  • Logs and data: a log line in the Run panel, a table in a database you connected.

What the model sees#

Next steps#

Something unclear or out of date? Tell us; a person on the team reads every note.

Search every guide: features, settings, keys and troubleshooting.

Try