fix: config search uses CoreRoot() — ~/Code/.core/agents.yaml

Config now found at:
1. ~/Code/.core/agents.yaml (shared, portable)
2. ~/Code/core/agent/config/agents.yaml (repo fallback)

Both Cladius and Charon find the same config.

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Snider 2026-03-17 18:57:02 +00:00
parent 8c76f496ed
commit 327d78d08f

View file

@ -42,9 +42,8 @@ type AgentsConfig struct {
// loadAgentsConfig reads config/agents.yaml from the code path.
func (s *PrepSubsystem) loadAgentsConfig() *AgentsConfig {
paths := []string{
filepath.Join(CoreRoot(), "agents.yaml"),
filepath.Join(s.codePath, "core", "agent", "config", "agents.yaml"),
filepath.Join(s.codePath, "core", "agent", ".core", "agents.yaml"),
filepath.Join(s.codePath, "host-uk", "core", ".core", "agents.yaml"),
}
for _, path := range paths {