feat(workflows): add user-defined slash command macros - #6786
Open
sincera7 wants to merge 1 commit into
Open
Conversation
Signed-off-by: bradmcauley <mcauley.brad@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
slash_commandworkflow trigger for exact bare commands{{trigger.command}}and{{trigger.args}}@Agent /commandas ACP pass-throughbuzz-cliskill so managed agents can create, update, remove, and collision-check macros from natural-language requestsCloses #6785.
Example
/new-task Build feature XYZruns the workflow withtrigger.args = Build feature XYZ./new-task-extradoes not match, and@Hermes /new-task ...remains an agent-runtime command.Design notes
No new event kind or execution path is introduced. The trigger reuses stored kind-9 messages, the existing workflow engine, existing action authorization, loop suppression, and
buzz workflows create/update/deleteCLI.This does not weaken ACP author policy. Default owner-only wake behavior for workflow-generated agent mentions remains tracked independently in #3858 and its competing fix PRs. Composer autocomplete is likewise separate (#2528, #5700, #6567).
Verification
cargo test -p buzz-workflow— 176 passed, 2 Postgres-only ignoredcargo clippy -p buzz-workflow --all-targets -- -D warningscargo check -p buzz-relaypnpm --dir desktop test— 5,456 passedpnpm --dir desktop typecheckjust desktop-checkjust fmt-checkjust file-size-checkEnvironment-limited checks:
just check-compilereaches an unrelated OpenSSL native dependency and stops becauseopenssl.pcis absent. The narrower relay and workflow compile checks pass.