Mention Mode
In any Issue or PR comment, mention @xgopilot followed by a natural language description of what you need. No specific syntax required — just describe the problem or question in plain language.
@xgopilot <your request in natural language>
When to Use Mention Mode
Mention Mode is for conversation — XGopilot always responds with text: analysis, explanations, recommendations, or open-ended discussion. It does not write code or open PRs in this mode.
Use it when:
- You have a bug but aren't sure what's causing it — Describe the symptom, let XGopilot analyze the root cause
- You want AI to explain code — Paste a snippet or point to a file and ask what it does
- You're exploring a design decision — Discuss tradeoffs before committing to an approach
When you're ready to take action (write code, review a PR, generate a plan), switch to Commands →.
Example: Analyze a bug
@xgopilot The login endpoint is returning 401 for valid tokens
after our Redis upgrade. Can you check what might have changed?
XGopilot will look at recent changes to the auth code and the Redis client configuration, then explain the likely cause.
Example: Explain code
@xgopilot Can you explain what the `reconcileState` function does
and why it loops three times?
Example: Discuss a design decision
@xgopilot We're deciding between using a message queue vs direct
HTTP calls for our notification service. Given our current
architecture, what do you recommend?
Example: Ask about next steps
@xgopilot The PR has two failing tests. What should I do to fix them
without breaking the existing behavior?
Mention Mode vs Commands
| Mention Mode | Commands (/code, /review, etc.) | |
|---|---|---|
| Input | Natural language | Slash command |
| Output | Text response only | Code PR, review comments, plan doc |
| Best for | Analysis, discussion, exploration | Specific actions with clear outcomes |