Skip to content

Support regex patterns for shell_command in markdown agent tools#436

Merged
ericdallo merged 1 commit intomasterfrom
agents-md-tool-args-matchers
Apr 29, 2026
Merged

Support regex patterns for shell_command in markdown agent tools#436
ericdallo merged 1 commit intomasterfrom
agents-md-tool-args-matchers

Conversation

@zikajk
Copy link
Copy Markdown
Member

@zikajk zikajk commented Apr 28, 2026

Add tool(regex) syntax to markdown agent allow/ask/deny lists to restrict approvals by argument pattern. Currently limited to eca__shell_command (matched against its command arg); on other tools the pattern is ignored with a warning. Repeated entries for the same tool are merged into one argsMatchers list. For broader argsMatchers use (other tools, multiple args), use JSON toolCall config

  • I added a entry in changelog under unreleased section.
  • This is not an AI slop.

@zikajk zikajk force-pushed the agents-md-tool-args-matchers branch from 85e286c to dbb1972 Compare April 28, 2026 16:05
Add `tool(regex)` syntax to markdown agent allow/ask/deny lists
to restrict approvals by argument pattern. Currently limited to
`eca__shell_command` (matched against its `command` arg); on
other tools the pattern is ignored with a warning. Repeated
entries for the same tool are merged into one argsMatchers list.
For broader argsMatchers use (other tools, multiple args), use
JSON `toolCall` config
@zikajk zikajk force-pushed the agents-md-tool-args-matchers branch from dbb1972 to 0c798fa Compare April 29, 2026 12:09
Copy link
Copy Markdown
Member

@ericdallo ericdallo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ericdallo ericdallo merged commit 6b364bd into master Apr 29, 2026
17 of 18 checks passed
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.

2 participants