run_command
Run a custom shell command in a repository to handle operations outside predefined tasks and read-only actions, while blocking destructive patterns and requiring NPU for build/test commands.
Instructions
Run an ad-hoc shell command in a repository. Prefer run_task for known tasks or git_log/git_diff/read_file for read-only operations.
When no NPU is reachable, build/test commands (cmake, make, ninja, pip install, pytest, …) are refused — those must run inside the sim Docker images, never on the local repo. Read-only commands are unaffected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name from list_repositories(). The command runs with cwd set to that repo's root. | |
| command | Yes | Shell command to execute via bash. Destructive patterns (git reset --hard, rm -rf /) are blocked. | |
| timeout_seconds | No | Execution timeout in seconds (1–7200) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||