Commit e21e3e5
perf: optimize security-guard token usage
- Restrict GitHub toolsets from [default] (52 tools) to
[pull_requests, repos] (only tools actually used)
- Add pre-compute step to fetch PR diff before agent starts,
reducing tool calls needed for initial PR analysis
- Add max-turns: 15 to prevent runaway token consumption
- Add explicit network: allowed: [github] to restrict egress
- Update prompt to reference pre-fetched diff data
Closes #1647
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b097547 commit e21e3e5
File tree
3 files changed
+496
-379
lines changed- .github
- aw
- workflows
3 files changed
+496
-379
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| |||
0 commit comments