Six Gemini Slash Commands That Go Beyond /plan and /goal
A couple of days ago, while I was having Gemini execute a task, it suddenly wrote a small line after finishing.
"You can use the /learn command to save this image-hosting habit."
I found this quite interesting; the /learn command isn't something you see every day.
Then I entered /learn, and discovered it directly distilled my requirement into an on-demand Skill.

You can see that after I entered /learn, Gemini did three things: wrote to the global GEMINI.md to enforce image-hosting uploads; added a drawing skill, using a decent architecture-diagram color scheme skill I cooked up; and added a GitHub article writing style preference skill.
Then when you start a new session or run /skills reload in the CLI, it loads these rules.
Speaking of making AI remember your habits, many people might say other Agents have this too, but the underlying approaches of the three differ quite a bit:

- ChatGPT: Tends to remember scattered habits like "who you are and how you like to chat," making it hard to turn into reusable development norms.
- Claude Code: Relies on manually editing
CLAUDE.mdplus automatic notes (MEMORY.md) to store rules, but everything is flat in documents; when it grows, it consumes context and doesn't auto-split by scenario. - Gemini
/learn: Automatically routes — must-follow red lines go into the globalGEMINI.md, specific task flows are split into on-demandSKILL.mdfiles (not occupying context normally), and it gives you a review confirmation before saving.
Beyond that, I found several other interesting commands in Gemini.
/grill-me
This is one I highly recommend.
You've probably encountered this scenario: you have a vague idea in your head but can't fully describe it; if you send it to an Agent, its output often differs wildly from what you want.
At this point, try /grill-me. With this command, the Agent doesn't just start writing; instead it interviews you, asking one by one about vague details and trade-offs, clarifying all the pitfalls before doing anything. Whether you're defining a product plan or choosing an angle for a long-form article, it's extremely useful.
For example, I asked Gemini 4 Neon about how to develop a 3A game.
Gemini 4 Neon asks me detailed questions about my game development plan.
After roughly ten rounds of questions via /grill-me, it finally produced a conclusion.
The final conclusion was that I could not make a 3A blockbuster with 1 member + a budget under 100k + no outsourcing + a development cycle of 2-4 years.
Finally, Gemini 4 Neon still gave very detailed advice; here's the whole grill-me process for everyone.

A genuine takeaway after using it: many people debate whether to chain
/grill-meand/plan. From my testing,/grill-meitself, after the questioning, directly produces a complete conclusion report with boundary constraints, technical trade-offs, and an implementation roadmap, so for daily use I don't think you need to add/plan. Only for large multi-day projects where you need to keep an implementation checklist tracked in the project for a long time is it necessary to chain/plan.
/run-workflow
This is a command that uses Python code to orchestrate multiple Agents, i.e., dynamic workflows.
Usually, subagents are assigned entirely by the large model, but /run-workflow directly has the Agent write a Python orchestration script on the fly and hand it to the underlying engine to run.
For example, I used /run-workflow to do a round of parallel interactive review on one of my previous game projects; this task directly spun up 8 subagents running in parallel.

After it finished, the review plan was extremely high quality; I could follow this execution plan for distributed optimization.
This run-workflow review centered on 8 Agents consumed a modest amount of quota.

- Heavy lifting went to low-priced high-cache tier: The top-level orchestration and final chief architect summary used the high-end tier Gemini 4 Neon (xhigh), running 21 rounds in total, while the 8 concurrent module reviewers that actually consumed context were routed in the script to the lightweight tier Gemini 4 Hydrogen, running 73 rounds.
- Converted to weekly quota consumption: Measured against Google AI Pro quota, the whole 8-way review consumed roughly 8%-10% of a single 5-hour window, translating to about 1.5%-2% of the weekly quota. Not only did concurrency multiply speed, but because each subagent avoided the snowballing context growth of a single session, the total consumption actually saved tokens compared to single-threaded hard-core reading of 15k lines of code with the main model.
/swarm
After discussing /run-workflow, I must mention /swarm, which also involves multiple Agents but is positioned completely differently.
If run-workflow is a deterministic pipeline where steps are strictly defined by a Python script, /swarm is more like assembling a research-and-development group with a work chat: members use @mention to directly communicate, question, and accept each other's work; idle members automatically enter a waiting state that doesn't burn tokens, only waking when @'d.
To see its real operation, I opened a new session and did an analysis test on the project's snow scene and torch rendering modules:
From the image above, the main coordinator coordinator instantly brought up three roles: snow-analyst, torch-analyst, and verifier, all running on Gemini 4 Hydrogen xhigh, plus a watchdog monitor to prevent deadlocks, which the system assigned Claude Sonnet 5.5. It stays silent usually and only appears when the whole team falls into an infinite loop.
Point-to-point relay, no passing through the coordinator: the coordinator posted rounds 1-4 to the message board and then finished; two minutes later, torch-analyst and snow-analyst directly @verifier on the message board to submit.
If the task boundary is clear and you need stable batch processing and a fixed pipeline, use /run-workflow; if requirements are open and you need dev ↔ review ↔ testing back-and-forth, use /swarm.
/btw
One-sentence summary: can interrupt anytime, but never interrupts the main task.
btw has a very obvious advantage: it instantly forks a read-only branch from the current context and replies in the background, neither interrupting the running main task nor writing into the main conversation history.
That means using btw does not pollute your context.
It's great for casual questions and digging into side details.
For example, in the screenshot below, the main Agent is creating a repair plan, and I opened a /btw to ask about the model collision strategy mentioned earlier.
You can see that the round of request just made with /btw is listed as Side Questions.

It wasn't merged into the main context.
I digged into the underlying transcript log of the main session: the main Agent was continuously scanning source code and generating a repair plan, completely uninterrupted by this question, and no record of "collision model strategy" was mixed into the log; meanwhile, the /btw Side Questions fully shared the context up to that moment.
/generative_ui
One-sentence summary: can directly generate interactive HTML components with sliders and state toggles in the chat stream or sidebar.
Perfect for interactive prototypes.
I tested it in a separate session: combining the previous Web 3D game optimization scenario, I directly used /generative_ui to generate an inline interactive prototype.
This way, dry explanations become interactive prototypes. Previously, asking AI to discuss performance trade-offs or state transitions would only yield a big block of dry text and formulas; with /generative_ui, reviewing options or quickly validating prototypes is very convenient.
Final Thoughts
Besides the well-known /plan, /goal, /compact, the 6 commands above are the ones I found interesting.
Here's a quick reference chart to help everyone identify and use them faster.
My personal suggestion: start with /grill-me and /btw; they're almost zero-barrier but give the biggest daily boost. When you hit large projects with dozens of files, bring out /run-workflow and /swarm for maximum efficiency.
Top 1 from juejin.cn, machine-translated. The original thread is authoritative.
Like