Skip to content

Resolve @self in queue commands to avoid simple_expansion prompts#31

Merged
blipinsk merged 6 commits into
mainfrom
resolve-self-in-queue
Apr 7, 2026
Merged

Resolve @self in queue commands to avoid simple_expansion prompts#31
blipinsk merged 6 commits into
mainfrom
resolve-self-in-queue

Conversation

@blipinsk

@blipinsk blipinsk commented Apr 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Add @self keyword that codemob queue resolves internally to the current mob name via CurrentMobName()
  • Update /remove and /drop slash commands to use codemob queue remove @self instead of codemob queue remove "$CODEMOB_MOB"
  • Eliminates Claude's simple_expansion permission prompt since the command is now a plain literal string with no variable expansion

Closes #29

Test plan

  • Run /drop from inside a mob - should queue remove without permission prompt
  • Run /remove and select the current mob - same behavior
  • Run codemob queue remove @self manually from inside a mob - resolves correctly
  • Run codemob queue remove @self outside a mob - errors with "@self: not inside a mob"
  • Run codemob init and verify regenerated slash commands use @self

Slash commands used "$CODEMOB_MOB" which triggered Claude's
simple_expansion permission prompt. Replace with @self keyword
that codemob resolves internally via CurrentMobName().

Closes #29
@blipinsk

blipinsk commented Apr 6, 2026

Copy link
Copy Markdown
Member Author

Q: does codemob info clear queue 🤔

@blipinsk blipinsk merged commit 2cae6ed into main Apr 7, 2026
1 check passed
@blipinsk blipinsk deleted the resolve-self-in-queue branch April 7, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve claude setup to reduce the need for prompts about simple_expansion

1 participant