-
Notifications
You must be signed in to change notification settings - Fork 6.1k
feat: Custom slash command #707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6366439 to
ae629b1
Compare
fix: Use MessageUnion for opencode Messages
fix: merge issues
e902e27 to
7795885
Compare
69763b6 to
1c61494
Compare
|
hey i appreciate how much work you put into this and this is definitely a feature we want to ship. however given it's such a core feature we need to talk internally about its design and that impacts implementation i feel bad but i don't think it saves us too much time by merging this we are discussing it tomorrow and will ship this week |
|
@thdxr Awesome, no worries, I just implemented this for myself and thought I could share it here. Can't wait for you to release this feature, looking forward to it |
Based off Issues #299
Custom slash command feature
Commands location
Checks for the
commandsdirectory under OpenCode's configuration directory.~/.config/opencode/commands/Commands under project directory
$PWD/.opencode/commands/Usage
Should work exactly like Claude Code's Slash Command
/foo:bar:test-command $ARGUMENTSHere is a command file I used to test:
I don't have the
allowed-toolsfrontmatter setup, because I don't think it is needed? Correct me if I am wrong