- commands/remote.md for remote execution - remote-exec.sh script - skills: claudeception, kubernetes-latest-tag-image-pull, react-hooks-order-early-return
1.2 KiB
1.2 KiB
| name | description |
|---|---|
| remote | Execute commands on the remote dev VM (10.0.10.10) |
Remote Command Execution Skill
Execute commands on the remote host via the remote-exec daemon.
Prerequisites
The daemon must be running in a terminal (outside sandbox):
~/.claude/remote-exec.sh daemon
Instructions
When the user invokes /remote <command>:
- Generate a unique filename:
cmd-$(date +%s%N).txt - Write the command to
~/.claude/remote-commands/<filename> - Wait for result in
~/.claude/remote-results/<filename> - Display the result (ends with
---andEXIT_CODE: <n>)
Usage Examples
/remote pytest tests/ -v
/remote python main.py dump-listings
/remote "cd frontend && npm run build"
Parallel Execution
For parallel commands, first line should be --parallel:
--parallel
pytest tests/unit/
pytest tests/integration/
Configuration
Default host/workdir is built into the script. To change:
~/.claude/remote-exec.sh config <host> <workdir>
Execution Steps
- Write command to
~/.claude/remote-commands/cmd-<timestamp>.txt - Poll
~/.claude/remote-results/every 0.5s (timeout: 120s) - Once EXIT_CODE appears, display output
- Report success/failure based on exit code