meshscale-worker-template / RELAY_INSTRUCTIONS_IMPROVEMENTS.md
tostido's picture
Build MeshScale CPU worker template
96ef23c verified
|
Raw History Blame Contribute Delete
2.66 kB

Relay Instructions Improvements

Date: 2026-01-30

Problem

AI agents were getting confused by the relay system, specifically:

  • Commands disappearing after execution
  • Not understanding the queue vs log distinction
  • Looking for executed commands in the file

Solution

Added comprehensive documentation to prevent confusion.


Key Concepts Now Clearly Explained

1. Commands Are Ephemeral

⚠️  COMMANDS ARE AUTOMATICALLY CLEARED AFTER EXECUTION!

This file is a COMMAND QUEUE, not a log:
- Commands execute and vanish
- Only comments persist
- Check tui.log for output, NOT this file

2. Debugging Tips

If you appended a command but don't see it:
✅ GOOD - It was executed! Check tui.log
❌ BAD - Still there after 5+ seconds? TUI might be stuck

3. Common Confusions Addressed

Q: Command disappeared - is it broken?
A: NO! That means it WORKED. Commands are removed after execution.

Q: 'who' shows ABOUT not model list?
A: Correct! Use slots to list models. who = capsule identity.

Q: How do I know if command executed?
A: Three ways:

  1. Command disappears from file
  2. See "🤖 RELAY: " in tui.log
  3. See command output in tui.log

Q: File only has comments?
A: That's CORRECT! Commands are ephemeral, only instructions stay.


Quick Command Reference Added

Identity & Status

  • status - System state and metrics
  • who - Capsule identity (alias for "about")
  • about - Capsule identity and key concepts
  • slots - List all model slots and their status
  • help - Full command reference

Model Management

  • hub search <query> - Search HuggingFace models
  • hub plug <model> - Download and plug model
  • plug <model> - Plug model into slot
  • unplug <slot> - Remove model from slot
  • embed <text> - Generate embedding

GPU Rental

  • vast search <query> - Search for GPUs
  • vast rent <number> - Rent GPU from results
  • vast instances - List rented instances
  • vast connect - Connect to rented GPU
  • vast stop - Stop/destroy instance

Memory & State

  • save - Save current state
  • observe - Start event streaming
  • cascade - Show provenance log

Files Updated

  • ✅ children/.relay_center.cmd - Live file updated
  • ✅ agent_compiler.py - Source updated for future compiles

Impact

  • Agents will understand relay queue behavior
  • No more "where did my command go?" confusion
  • Clear troubleshooting guidance
  • Quick reference for common tasks

Status

✅ Complete - Documentation improvements deployed