Added: Ability to hide subagents from primary agents system prompt. (#4773)

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
Sewer.
2026-01-07 04:29:17 +00:00
committed by GitHub
parent eaa0826e7f
commit fd7b7eacd3
8 changed files with 580 additions and 6 deletions

View File

@@ -232,6 +232,7 @@ export namespace PermissionNext {
const result = new Set<string>()
for (const tool of tools) {
const permission = EDIT_TOOLS.includes(tool) ? "edit" : tool
const rule = ruleset.findLast((r) => Wildcard.match(permission, r.permission))
if (!rule) continue
if (rule.pattern === "*" && rule.action === "deny") result.add(tool)