원클릭으로
cross-machine-coordination
Enables squad agents on different machines to share work via git-based task queuing
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Enables squad agents on different machines to share work via git-based task queuing
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
{what this skill teaches agents}
{what this skill teaches agents}
{what this skill teaches agents}
{what this skill teaches agents}
Checklist and patterns for wiring new CLI commands into cli-entry.ts
Team initialization flow (Phase 1 proposal + Phase 2 creation)
| name | cross-machine-coordination |
| description | Enables squad agents on different machines to share work via git-based task queuing |
| domain | orchestration |
| confidence | medium |
| source | manual |
Skill ID: cross-machine-coordination
Owner: Ralph (Work Monitor)
Squad Integration: All agents
Status: Specification (ready for implementation)
Enables squad agents running on different machines (laptop, DevBox, Azure VM) to securely share work, coordinate execution, and pass results without manual intervention.
Pattern: Git-based task queuing + GitHub Issues supplement
To assign work to DevBox:
# Create task file
cat > .squad/cross-machine/tasks/2026-03-14T1530Z-laptop-gpu-voice-clone.yaml << 'EOF'
id: gpu-voice-clone-001
source_machine: laptop-machine
target_machine: devbox
priority: high
created_at: 2026-03-14T15:30:00Z
task_type: gpu_workload
payload:
command: "python scripts/voice-clone.py --input voice.wav --output cloned.wav"
expected_duration_min: 15
resources:
gpu: true
memory_gb: 8
status: pending
EOF
# Commit & push
git add .squad/cross-machine/tasks/
git commit -m "Cross-machine task: GPU voice cloning [squad:machine-devbox]"
git push origin main
Ralph on DevBox will:
.squad/cross-machine/results/gpu-voice-clone-001.yamlRalph automatically watches .squad/cross-machine/tasks/ for work targeted at this machine.
On each cycle (5-10 min):
# Pseudo-code (Ralph implementation)
1. git pull origin main
2. Load all .yaml files in .squad/cross-machine/tasks/
3. Filter for status=pending AND target_machine=HOSTNAME
4. For each task:
a. Validate schema (must have: id, source_machine, target_machine, payload)
b. Validate command against whitelist
c. Execute task (with timeout)
d. Write result to .squad/cross-machine/results/{id}.yaml
e. Commit & push result
Use GitHub Issues with squad:machine-{name} label:
# Create issue
gh issue create \
--title "GPU: Clone voice profile from sample.wav" \
--body "Execute voice cloning on DevBox. Input: /path/to/voice-input.wav" \
--label "squad:machine-devbox" \
--label "urgent"
Ralph on DevBox will:
squad:machine-devbox labelLocation: .squad/cross-machine/tasks/{timestamp}-{machine}-{task-id}.yaml
Required Fields:
id: {task-id} # Unique identifier (alphanumeric + dash)
source_machine: {hostname} # Where task was created
target_machine: {hostname} # Where task will execute
priority: high|normal|low # Execution priority
created_at: 2026-03-14T15:30:00Z # ISO 8601 timestamp
task_type: gpu_workload|script|... # Category
payload:
command: "..." # Shell command to execute
expected_duration_min: 15 # Timeout (minutes)
resources:
gpu: true|false
memory_gb: 8
cpu_cores: 4
status: pending|executing|completed|failed
Optional Fields:
description: "Human-readable task description"
timeout_override_min: 120 # Override default timeout
retry_count: 3 # Retry failed tasks
Location: .squad/cross-machine/results/{task-id}.yaml
id: {task-id} # Links back to task
target_machine: devbox # Executed on
completed_at: 2026-03-14T15:45:00Z # When it finished
status: completed|failed|timeout # Outcome
exit_code: 0 # Shell exit code
stdout: "..." # Captured output
stderr: "..." # Captured errors
duration_seconds: 900 # How long it took
artifacts:
- path: "/path/to/artifacts/..." # Location of results
type: audio|text|model|...
size_mb: 2.5
All tasks go through:
Schema Validation
Command Whitelist
../../ escapes)&&, |, >)Resource Limits
Execution Isolation
Audit Trail
| Threat | Mitigation |
|---|---|
| Malicious task injection | Branch protection + PR review before merge |
| Credential leakage | Pre-commit secret scan + environment scrubbing |
| Resource exhaustion | Timeout + memory limits |
| Code injection | Command whitelist + no shell evaluation |
| Result tampering | Git commit history is immutable |
Ralph reads config from .squad/config.json:
{
"cross_machine": {
"enabled": true,
"poll_interval_seconds": 300,
"this_machine": "devbox",
"max_concurrent_tasks": 2,
"task_timeout_minutes": 60,
"command_whitelist": [
"python scripts/voice-clone.py",
"python scripts/data-process.py",
"bash scripts/cleanup.sh"
],
"result_ttl_days": 30
}
}
1. Laptop creates task:
# .squad/cross-machine/tasks/2026-03-14T1530Z-laptop-gpu-001.yaml
id: gpu-voice-clone-001
source_machine: laptop-machine
target_machine: devbox
priority: high
created_at: 2026-03-14T15:30:00Z
task_type: gpu_workload
payload:
command: "python scripts/voice-clone.py --input voice.wav --output cloned.wav"
expected_duration_min: 15
resources:
gpu: true
memory_gb: 8
status: pending
2. Laptop commits & pushes:
git add .squad/cross-machine/tasks/
git commit -m "Task: GPU voice cloning [squad:machine-devbox]"
git push origin main
3. DevBox Ralph (5 min later):
[Ralph Watch Cycle]
- Pulled origin/main
- Detected: gpu-voice-clone-001 (status: pending, target: devbox)
- Validation: ✅ Schema OK, command whitelisted
- Executing: python scripts/voice-clone.py ...
- [15 minutes of processing]
- Completed: exit code 0
- Writing result...
- Committing & pushing...
4. Laptop Ralph (next cycle) sees result:
# .squad/cross-machine/results/gpu-voice-clone-001.yaml
id: gpu-voice-clone-001
target_machine: devbox
completed_at: 2026-03-14T15:45:00Z
status: completed
exit_code: 0
stdout: "Voice cloning completed. Output written to /tmp/cloned.wav"
stderr: ""
duration_seconds: 900
artifacts:
- path: "/path/to/artifacts/voice-clone-001/output.wav"
type: audio
size_mb: 2.5
Create issue:
gh issue create \
--title "DevBox: Debug voice model failure" \
--body "Error: Model failed to load on last run. Please check /tmp/model.log and report findings." \
--label "squad:machine-devbox" \
--label "urgent"
DevBox Ralph detects → executes → comments:
✅ Executed on devbox at 2026-03-14 15:47:00
Command: python scripts/debug-model.py
Result:
------
Model file: /tmp/model-v2.bin (OK)
Checksum: a1b2c3d4e5f6 (matches expected)
Memory available: 12 GB (sufficient)
ERROR FOUND: Config file permission issue
- File: ~/.config/voice/model.yaml
- Permissions: -rw------- (owner-only)
- Expected: -rw-r--r-- (world-readable for service)
FIX: Run: chmod 644 ~/.config/voice/model.yaml
If a task fails (exit code != 0):
status: failed + exit codestatus: pendingIf a task doesn't complete within timeout:
status: timeoutIf git push/pull fails:
ls -la .squad/cross-machine/tasks/
cat .squad/cross-machine/tasks/*.yaml | grep -E "^(id|status|target_machine):"
ls -la .squad/cross-machine/results/
cat .squad/cross-machine/results/{task-id}.yaml
git log --oneline .squad/cross-machine/ | head -20
tail -f .squad/log/ralph-watch.log | grep "cross-machine"
Ralph automatically includes this pattern in its watch loop:
Ralph Watch Cycle (every 5-10 min):
1. Fetch GitHub issues with squad:machine-* labels
2. Poll .squad/cross-machine/tasks/
3. For each matching task:
- Validate
- Execute
- Write result
- Commit & push
4. Update status in issue (if applicable)
5. Sleep until next cycle
No manual Ralph configuration needed — just create task files or issues with the right labels.
Before (today):
After (with this pattern):
Potential expansions (Phase 2+):
Refer to research report: research/active/cross-machine-agents/README.md
Contact: Seven (Research & Docs) or Ralph (Work Monitor)