added gemini cli custom commands!#549
Conversation
I made a PR for Gemini CLI implementing case insensitive fuzzy command matching, and it will be in 4.x. Next week I suppose. https://github.com/google-gemini/gemini-cli/releases/tag/v0.4.0-preview So maybe we should do the same setup as in Claude Code IDE setup? At the moment it is |
|
Also let's look at: This is an opportunity for a simpler setup where the agent's content would be inserted directly using this directive from the .bmad-core directory. So in that case dev custom command would be: If you have the time and willingness, I look forward to your PR. |
|
Let's keep the same or similar setups within similar IDE solutions. And qwen will have the same setup. Fuzzy matching makes this easy.
We had that discussion: #541 |
Yep, thats cool. The on the flight loading is interesting: What are your thoughts? |
What do you mean by "copy paste" in this case? |
From my understanding of gemini-cli (not a good one) This is myfile.txt
would get translated in the gemini-cli react application to: and the calculation to do that runs every time you call a prompt with @{}. I can make the argument that because we don't change the agent command, it should be pre-computed. But honslty, I dont think its a big deal. just thinking out loud. |
Not sure I got you right: so here you want to have the folder structure to be: .gemini/extensions/bmad/commands/bmad/agents instead of .gemini/extensions/bmad/commands/agents so when you write the command it would look: bmad:agents:sm insted of agents:dev ? |
|
The point of file injection is - why would you construct whole agent definition via complex JS function in
when you can just insert it dynamically from
This is not meant to change the agent's definition dynamically, but rather to avoid having the same content in two places if we don't have to. I think Brian has an idea for v5 how to add possibility to add something to agent definition. The .toml files are not re-read or re-parsed on every command invocation. Try adding or changing a custom command (or inserted file) while running the Gemini CLI and see if you'll have a change. So:
|
No. Custom commands location is in For bmad if we want the same setup like Claude Code we should have: With fuzzy matching you don't have to start typing |
|
cool, I tend to like bmad more for the folder |
|
@dracic - made the changes we discussed. |
Not my preference, just if Claude has BMad currently, let's go with it. I'll rather have consistency if it doesn't break anything, and then if we change our mind, let's change all at once. |
|
Thanks @yoav0gal ! |
|
Cool, I asked because the rest is mostly bad (cursor, Auggie) BTW - in the gemini-cli the readPathFromWorkspace function does run every time (checked that) - I still don't think its an issue. i think keeping the @{} is ok can we move Gemini CLI higher on the select menu? |
|
I agree with you, the nomenclature should be standardized. On the other hand, not all tools have this capability for hierarchical organization of the commands, so the only difference is in the name of the directory where they are located. The dev agent is |
Yes, now I tried It too. I'm eating humble pie. Ok, Iet's try the difference in speed. |
|
Man, we are talking here about few ms. I just like it so simple. @yoav0gal do we need |
|
About the extension.json I don't think so,... About the ms, yes! That's what's I was saying, I don't think it's a big deal, Initially I just wanted to keep the standards and explain my thoughts on why I didn't go for the @{} at the first place. If you guys think it's better this way or that way I don't really have an opinion about that. The main thing is to get the commands working. |
dracic
left a comment
There was a problem hiding this comment.
It works and I like this!
|
@yoav0gal I was thinking. Now that you're at full speed, you could do something similar for Qwen code in antoher PR. They have now synced to 0.2.1. It seems to me that they are always one week behind compared to the Gemini CLI. We can leave it unmerged until they upgrade. |
* added gemini cli custom commands! * improvements and changes post review * updated bmad to BMad * removed gemini-extension.json --------- Co-authored-by: Brian <bmadcode@gmail.com>
* added gemini cli custom commands! * improvements and changes post review * updated bmad to BMad * removed gemini-extension.json --------- Co-authored-by: Brian <bmadcode@gmail.com>
* added gemini cli custom commands! * improvements and changes post review * updated bmad to BMad * removed gemini-extension.json --------- Co-authored-by: Brian <bmadcode@gmail.com>
* added gemini cli custom commands! * improvements and changes post review * updated bmad to BMad * removed gemini-extension.json --------- Co-authored-by: Brian <bmadcode@gmail.com>


issue: #363
Comment: Currently, the search in gemini-cli is based on the first letters and the commands are /agents:pm, so in order to search, one needs to look for agents instead of just pm.
Can be hacked, so commands will be just /pm or /create-doc - but I don't like it.