refactor: rename agent directories to match agent IDs

Renombrar directorios de agentes para que coincidan exactamente con el
agent.id del config.yaml, eliminando la disonancia entre nombres:
- agents/assistant/ → agents/assistant-bot/ (ID: assistant-bot)
- agents/asistente2/ → agents/asistente-2/ (ID: asistente-2)

Se actualizan los imports en cmd/launcher/main.go, los store_path de
crypto, los paths de storage/logs/audit en ambos configs para que
apunten a ./agents/<agent-id>/data/. También se corrige el memory.db
que se creaba en directorios fantasma fuera del directorio real del
agente.

Se eliminan las referencias a devops-bot en el config de assistant-bot
(peers, delegation).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 00:55:09 +00:00
parent cb9489e633
commit 08dcb332b7
7 changed files with 40 additions and 27 deletions
@@ -109,6 +109,16 @@ tools:
port: 0 port: 0
tools: [] tools: []
memory:
enabled: true
# ============================================
# MEMORIA — ventana de conversación + hechos
# ============================================
memory:
enabled: true
window_size: 30
# ============================================ # ============================================
# MATRIX — CONEXIÓN Y ROOMS # MATRIX — CONEXIÓN Y ROOMS
# ============================================ # ============================================
@@ -120,7 +130,7 @@ matrix:
encryption: encryption:
enabled: true enabled: true
store_path: "./agents/asistente2/data/crypto/" store_path: "./agents/asistente-2/data/crypto/"
pickle_key_env: PICKLE_KEY_ASISTENTE_2 pickle_key_env: PICKLE_KEY_ASISTENTE_2
trust_mode: tofu trust_mode: tofu
recovery_key_env: SSSS_RECOVERY_KEY_ASISTENTE_2 recovery_key_env: SSSS_RECOVERY_KEY_ASISTENTE_2
@@ -186,7 +196,7 @@ security:
audit: audit:
enabled: false enabled: false
log_file: "./data/audit.log" log_file: "./agents/asistente-2/data/audit.log"
log_to_room: "" log_to_room: ""
include: [] include: []
@@ -206,7 +216,7 @@ observability:
level: info level: info
format: json format: json
output: stdout output: stdout
file: "./data/asistente2.log" file: "./agents/asistente-2/data/asistente-2.log"
metrics: metrics:
enabled: false enabled: false
@@ -256,7 +266,7 @@ resilience:
storage: storage:
state: state:
backend: sqlite backend: sqlite
path: "./data/asistente2.db" path: "./agents/asistente-2/data/asistente-2.db"
cache: cache:
enabled: true enabled: true
@@ -266,5 +276,5 @@ storage:
history: history:
backend: sqlite backend: sqlite
path: "./data/history.db" path: "./agents/asistente-2/data/history.db"
retention: 168h # 7 días retention: 168h # 7 días
@@ -19,8 +19,7 @@ func Rules() []decision.Rule {
Content: "Soy tu asistente. Escríbeme directamente lo que necesitas:\n" + Content: "Soy tu asistente. Escríbeme directamente lo que necesitas:\n" +
"- Preguntas, explicaciones, resúmenes\n" + "- Preguntas, explicaciones, resúmenes\n" +
"- Ayuda con código\n" + "- Ayuda con código\n" +
"- Redacción de textos\n\n" + "- Redacción de textos",
"Para tareas de infraestructura, habla con @devops-bot.",
}, },
}}, }},
}, },
@@ -31,7 +31,7 @@ personality:
behavior: behavior:
proactive: false proactive: false
ask_confirmation: false # el assistant no pide confirmación, solo el devops ask_confirmation: false
show_reasoning: false show_reasoning: false
thread_replies: true thread_replies: true
typing_indicator: true typing_indicator: true
@@ -64,8 +64,8 @@ llm:
memory_messages: 30 # mantiene 30 mensajes de historia por room/DM memory_messages: 30 # mantiene 30 mensajes de historia por room/DM
tool_use: tool_use:
enabled: false # el assistant no usa tools por ahora enabled: true
max_iterations: 3 max_iterations: 5
parallel_calls: false parallel_calls: false
rate_limit: rate_limit:
@@ -110,6 +110,16 @@ tools:
port: 0 port: 0
tools: [] tools: []
memory:
enabled: true
# ============================================
# MEMORIA — ventana de conversación + hechos
# ============================================
memory:
enabled: true
window_size: 30
# ============================================ # ============================================
# MATRIX — CONEXIÓN Y ROOMS # MATRIX — CONEXIÓN Y ROOMS
# ============================================ # ============================================
@@ -121,7 +131,7 @@ matrix:
encryption: encryption:
enabled: true enabled: true
store_path: "./agents/assistant/data/crypto/" store_path: "./agents/assistant-bot/data/crypto/"
pickle_key_env: PICKLE_KEY_ASSISTANT_BOT pickle_key_env: PICKLE_KEY_ASSISTANT_BOT
trust_mode: tofu trust_mode: tofu
recovery_key_env: SSSS_RECOVERY_KEY_ASSISTANT_BOT recovery_key_env: SSSS_RECOVERY_KEY_ASSISTANT_BOT
@@ -143,15 +153,12 @@ matrix:
# COMUNICACIÓN INTER-AGENTES # COMUNICACIÓN INTER-AGENTES
# ============================================ # ============================================
agents: agents:
peers: peers: []
- id: devops-bot
capabilities: [deploy, ssh, healthcheck]
room: "" # sin room interno por ahora
delegation: delegation:
enabled: false # el assistant no delega aún enabled: false
can_delegate_to: [] can_delegate_to: []
can_receive_from: [devops-bot] can_receive_from: []
max_delegation_depth: 1 max_delegation_depth: 1
timeout: 30s timeout: 30s
@@ -187,7 +194,7 @@ security:
audit: audit:
enabled: false enabled: false
log_file: "./data/audit.log" log_file: "./agents/assistant-bot/data/audit.log"
log_to_room: "" log_to_room: ""
include: [] include: []
@@ -207,7 +214,7 @@ observability:
level: info level: info
format: json format: json
output: stdout output: stdout
file: "./data/assistant.log" file: "./agents/assistant-bot/data/assistant.log"
metrics: metrics:
enabled: false enabled: false
@@ -257,7 +264,7 @@ resilience:
storage: storage:
state: state:
backend: sqlite backend: sqlite
path: "./data/assistant.db" path: "./agents/assistant-bot/data/assistant.db"
cache: cache:
enabled: true enabled: true
@@ -267,5 +274,5 @@ storage:
history: history:
backend: sqlite backend: sqlite
path: "./data/history.db" path: "./agents/assistant-bot/data/history.db"
retention: 168h # 7 días retention: 168h # 7 días
@@ -11,8 +11,7 @@ Eres un asistente conversacional amigable y directo. Operas en Matrix, respondie
## Limitaciones ## Limitaciones
- No tienes acceso a internet ni herramientas externas en esta configuración - No tienes acceso a internet ni herramientas externas en esta configuración
- No ejecutas comandos ni accedes a servidores (eso es tarea del devops-bot) - No ejecutas comandos ni accedes a servidores
- Si alguien pide algo que requiere infraestructura, redirige al devops-bot
## Estilo ## Estilo
- Respuestas concisas por defecto. Si necesitas extensión, pregunta primero. - Respuestas concisas por defecto. Si necesitas extensión, pregunta primero.
+2 -4
View File
@@ -18,9 +18,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/enmanuel/agents/agents" "github.com/enmanuel/agents/agents"
assistantagent "github.com/enmanuel/agents/agents/assistant" assistantagent "github.com/enmanuel/agents/agents/assistant-bot"
asistente2agent "github.com/enmanuel/agents/agents/asistente2" asistente2agent "github.com/enmanuel/agents/agents/asistente-2"
devopsagent "github.com/enmanuel/agents/agents/devops"
"github.com/enmanuel/agents/internal/config" "github.com/enmanuel/agents/internal/config"
"github.com/enmanuel/agents/pkg/decision" "github.com/enmanuel/agents/pkg/decision"
) )
@@ -30,7 +29,6 @@ import (
var rulesRegistry = map[string]func() []decision.Rule{ var rulesRegistry = map[string]func() []decision.Rule{
"assistant-bot": assistantagent.Rules, "assistant-bot": assistantagent.Rules,
"asistente-2": asistente2agent.Rules, "asistente-2": asistente2agent.Rules,
"devops-bot": devopsagent.Rules,
} }
func main() { func main() {