gcloud skill: add agent management commands (birth, logs, stop, kill)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -121,6 +121,34 @@ gcloud compute ssh gitea-vm --zone=europe-west1-b --project=apes-platform \
|
|||||||
--command='sudo docker exec -u git gitea gitea admin user create --username <user> --password "<pass>" --email "<email>"'
|
--command='sudo docker exec -u git gitea gitea admin user create --username <user> --password "<pass>" --email "<email>"'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Agent Management
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install CLI binaries on VM (first time only, ~5min)
|
||||||
|
gcloud compute ssh colony-vm --zone=europe-west1-b --project=apes-platform \
|
||||||
|
--command='sudo bash -c "cd /opt/colony-src && git pull && source /root/.cargo/env && cargo build --release -p colony-cli -p colony-agent && cp target/release/colony target/release/colony-agent /usr/local/bin/"'
|
||||||
|
|
||||||
|
# Birth a new agent
|
||||||
|
gcloud compute ssh colony-vm --zone=europe-west1-b --project=apes-platform \
|
||||||
|
--command='sudo bash /opt/colony-src/scripts/birth.sh scout "help with research"'
|
||||||
|
|
||||||
|
# Check agent status
|
||||||
|
gcloud compute ssh colony-vm --zone=europe-west1-b --project=apes-platform \
|
||||||
|
--command='systemctl status agent-scout-worker && systemctl status agent-scout-dream.timer'
|
||||||
|
|
||||||
|
# View agent logs
|
||||||
|
gcloud compute ssh colony-vm --zone=europe-west1-b --project=apes-platform \
|
||||||
|
--command='tail -50 /home/agents/scout/memory/worker.log'
|
||||||
|
|
||||||
|
# Stop/start agent
|
||||||
|
gcloud compute ssh colony-vm --zone=europe-west1-b --project=apes-platform \
|
||||||
|
--command='sudo systemctl stop agent-scout-worker'
|
||||||
|
|
||||||
|
# Kill agent (remove everything)
|
||||||
|
gcloud compute ssh colony-vm --zone=europe-west1-b --project=apes-platform \
|
||||||
|
--command='sudo systemctl disable --now agent-scout-worker agent-scout-dream.timer && sudo userdel -r scout'
|
||||||
|
```
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
| Error | Fix |
|
| Error | Fix |
|
||||||
|
|||||||
Reference in New Issue
Block a user