Files
agents_and_robots/agents/_specials/father-bot/agent.go
T
egutierrez be88c6ce7e feat: father-bot — agente del sistema que crea otros agentes via Matrix
Primer agente privilegiado en agents/_specials/. Usa provider claude-code
con acceso completo al repositorio para ejecutar el pipeline de creacion
de agentes de forma autonoma (scaffold, build, register, verify, restart).

Archivos:
- agent.go: reglas puras (DM/mention → LLM)
- config.yaml: claude-code provider, bypassPermissions, E2EE, audit
- prompts/system.md: guia completa de creacion con decision tree,
  convencion de IDs, validaciones y seccion anti-injection

Config: claude-code con working_dir al repo, allowed_tools restringido,
model sonnet, timeout 10m, add_dirs con templates y referencias.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 22:05:23 +00:00

31 lines
794 B
Go

// Package father defines the pure rules for Father Bot, the system agent
// that creates other agents and robots via Matrix.
package father
import (
"github.com/enmanuel/agents/devagents"
"github.com/enmanuel/agents/pkg/decision"
)
func init() {
devagents.Register("father-bot", Rules)
}
// Rules returns the decision rules for Father Bot.
// Simple: any DM or mention routes to the LLM (claude-code subprocess).
// All creation logic lives in the system prompt + claude-code capabilities.
func Rules() []decision.Rule {
return []decision.Rule{
{
Name: "llm-all",
Match: func(ctx decision.MessageContext) bool {
return ctx.IsDirectMsg || ctx.IsMention
},
Actions: []decision.Action{{
Kind: decision.ActionKindLLM,
LLM: &decision.LLMAction{},
}},
},
}
}