Three issues were causing errors when running `gt rig add`: 1. **bd init flag**: Removed non-existent `--no-agents` flag from bd init command that was causing silent failures. 2. **BEADS_DIR for init**: Added explicit BEADS_DIR to bd init and migrate commands to prevent bd from finding parent directory databases. 3. **Agent beads location**: Agent beads now go in town beads (gt-* prefix) instead of rig beads. This is necessary because: - Agent IDs use canonical gt-* prefix (e.g., gt-tribal-witness) - Rig beads use rig-specific prefixes (e.g., tr-*) - bd strictly validates ID prefix against database prefix - Town beads must be initialized with `gt` prefix 4. **beads.run() BEADS_DIR**: Modified to explicitly pass BEADS_DIR in child process environment to ensure bd uses the correct database. 5. **Agent ID prefix**: Use WitnessBeadID/RefineryBeadID (canonical gt-*) instead of WithPrefix variants. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 KiB
24 KiB