Commit dc482f7
feat: register shell.exec tool — PowerShell full-mode access for Cato
- Register shell.exec in agent_loop.py via _register_shell_tools()
- Auto-upgrade powershell/pwsh commands to full mode (unrestricted, any cwd)
- Gateway/sandbox modes still clamped to workspace root
- exec-approvals.json created with powershell, pwsh, cmd in allowlist
- TOOLS.md updated: shell.exec usage, PowerShell examples, elevation note
Cato now has full elevated PowerShell access on this Windows Server machine.
Verified: powershell -Command whoami returns Administrator.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 169b1a1 commit dc482f7
2 files changed
Lines changed: 37 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
138 | 153 | | |
139 | 154 | | |
140 | 155 | | |
| |||
400 | 415 | | |
401 | 416 | | |
402 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
403 | 421 | | |
404 | 422 | | |
405 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
79 | 89 | | |
80 | 90 | | |
81 | 91 | | |
| |||
0 commit comments