# Template: config.yaml para robots

Config minimalista para robots (command-only, sin LLM).

## Template base

```yaml
# ============================================
# ROBOT: <bot-id>
# ============================================

agent:
  id: "<bot-id>"
  name: "<display-name>"
  version: "1.0.0"
  type: robot
  enabled: true
  description: "<description>"
  tags: [robot]

# ============================================
# PERSONALIDAD (minima para robots)
# ============================================
personality:
  prefix: "<emoji>"
  language: es

# ============================================
# MATRIX
# ============================================
matrix:
  homeserver: "https://matrix-af2f3d.organic-machine.com"
  user_id: "@<bot-id>:matrix-af2f3d.organic-machine.com"
  access_token_env: MATRIX_TOKEN_<NORM>
  device_id: "<BOT-ID>"

  encryption:
    enabled: true
    store_path: "./agents/<bot-id>/data/crypto/"
    pickle_key_env: PICKLE_KEY_<NORM>
    trust_mode: tofu
    recovery_key_env: SSSS_RECOVERY_KEY_<NORM>

  rooms:
    listen: []
    respond: []
    admin: []

  filters:
    command_prefix: "!"
    mention_respond: false
    dm_respond: false
    ignore_bots: true
    ignore_users: []
    unauthorized_response: silent
    min_power_level: 0

  threads:
    enabled: true
    auto_thread: false
```

## Regla de normalizacion de env vars

`<NORM>` = bot-id en mayusculas, guiones → underscores. **Nunca eliminar sufijos.**

| bot-id | NORM | Ejemplo env var |
|--------|------|-----------------|
| `ping-bot` | `PING_BOT` | `MATRIX_TOKEN_PING_BOT` |
| `monitor` | `MONITOR` | `MATRIX_TOKEN_MONITOR` |
| `mi-bot-2` | `MI_BOT_2` | `MATRIX_TOKEN_MI_BOT_2` |
