MCPcopy Create free account
hub / github.com/AI45Lab/Code / general_permissions

Function general_permissions

core/src/subagent.rs:1036–1055  ·  view source on GitHub ↗

Permission policy for general agent (full access except task)

()

Source from the content-addressed store, hash-verified

1034
1035/// Permission policy for general agent (full access except task)
1036fn general_permissions() -> PermissionPolicy {
1037 PermissionPolicy::new()
1038 .allow_all(&[
1039 "read",
1040 "write",
1041 "edit",
1042 "grep",
1043 "glob",
1044 "ls",
1045 "bash",
1046 "web_fetch",
1047 "web_search",
1048 "git",
1049 "patch",
1050 "batch",
1051 "generate_object",
1052 ])
1053 .deny("task")
1054 .deny("parallel_task")
1055}
1056
1057/// Permission policy for plan agent (read-only)
1058fn plan_permissions() -> PermissionPolicy {

Callers 1

default_permissionsMethod · 0.85

Calls 2

denyMethod · 0.80
allow_allMethod · 0.80

Tested by

no test coverage detected