Available CodeLens actions
”Ask Hermes about this file”
This action appears at the very top of every file you open. Clicking it pre-fills the chat input with a prompt asking Hermes about the file’s overall purpose, structure, key components, and any potential risks or issues. The prompt includes the active file path so Hermes knows exactly which file to analyze.”Explain this” / “Explain this class”
These actions appear above everyfunction and class declaration in your file. Clicking Explain this above a function pre-fills a prompt asking Hermes to explain what that specific function does, how it works, and what edge cases are involved. Explain this class works the same way for class declarations. Both prompts include the symbol name and its location in the file.
How to use them
- Open any source file. The CodeLens actions appear automatically above applicable code blocks.
- Click the action you want (for example, 💬 Ask Hermes about this file or 🤖 Explain this).
- The chat panel opens (or focuses if it is already open) with the prompt pre-filled in the input box.
- Add any additional context or follow-up question, then press Enter to send.
Command Palette equivalents
You can trigger the same actions without CodeLens using the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):