Skip to content

feat: add tool permission guard#2463

Merged
hsluoyz merged 1 commit into
the-open-agent:masterfrom
lulululu-debug:feat/tool-permission-guard
Jul 22, 2026
Merged

feat: add tool permission guard#2463
hsluoyz merged 1 commit into
the-open-agent:masterfrom
lulululu-debug:feat/tool-permission-guard

Conversation

@lulululu-debug

@lulululu-debug lulululu-debug commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What

Add a standalone, host-agnostic permission engine for agent tool calls:

  • guard/ — decides allow/ask/deny for a tool call from a set of policy rules. No dependency on OpenAgent (no object/model/beego), so it can be reused as-is by other agents.
  • shellcmd/ — extracts the executables a shell command line would run, so a permission layer can allow/deny by program name (git, rm, sudo, …) instead of fragile substring matching.

Both packages ship with unit tests and are not yet wired into the tool-call path — that lands in follow-up PRs for issue #2462.

Ref: #2462

@lulululu-debug
lulululu-debug force-pushed the feat/tool-permission-guard branch from 3151607 to 848ef89 Compare July 22, 2026 15:48
@hsluoyz hsluoyz changed the title feat: add host-agnostic tool permission guard engine feat: add tool permission guard engine Jul 22, 2026
@hsluoyz hsluoyz changed the title feat: add tool permission guard engine feat: add tool permission guard Jul 22, 2026
@hsluoyz
hsluoyz merged commit 485a90a into the-open-agent:master Jul 22, 2026
7 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