What it does
/explain provides structured explanations of code, technical concepts, system behavior, and errors. It calibrates depth to the level you specify — or infers the appropriate level from context if you don’t.
When to use
Use/explain when you want to understand what a piece of code does, why it’s written a certain way, how a concept works, how system components interact, or what an error means and how to fix it.
Prerequisites
- No specific prerequisites. Point
/explainat any code, error message, or concept.
Conversation mode
Either mode works.What happens
Calibrate explanation level
If you specify a level (
--level basic|intermediate|advanced), that level is used. Otherwise, Antigravity infers the appropriate level from context — your question phrasing, the complexity of what you’re asking about, and any visible code.Build with examples
Examples are used to make the concept concrete, connected to things you already know.
Skills invoked
No skills are invoked./explain is a direct workflow.
Explanation levels
| Level | What you get |
|---|---|
| Basic | Core concept only, plain language, minimal jargon |
| Intermediate | Mechanics and patterns, some technical depth |
| Advanced | Implementation details, trade-offs, edge cases |
What you can explain
- Code — what it does, why it’s written this way, how to use it
- Concepts — technical ideas, patterns, algorithms
- Systems — how components interact, data flow, architecture
- Errors — what went wrong, why, and how to fix it
Usage
Example
Related commands
/analyze
For a structured quality review of code rather than a conceptual explanation.
/research
When you need sourced, current information rather than a conceptual explanation.
/troubleshoot
When an error needs systematic debugging rather than just explanation.
/document
Turn an explanation into persistent documentation.