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.
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.
Ask about a line#
- 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.
- 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.
- 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.
| Inline | The chat | |
|---|---|---|
| For | One question about one thing | A conversation, a task, anything |
| Where | Beside the thing, and gone with it | One place, always there: ⌘⌥L |
| Knows | What you pointed at, fixed when it opens | Where 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.