8 "github.com/stretchr/testify/require"
11 // daemonChildConfig writes a complete child config in its own directory.
12 func daemonChildConfig(t *testing.T, dir, name string) string {
15 root, err := openAgent(filepath.Join(dir, daemonAgentDirName))
16 require.NoError(t, err)
18 path := filepath.Join(root.dir, "children", name)
19 child, err := openAgent(path)
20 require.NoError(t, err)
22 config := child.config
24 config.Model = "gpt-test-" + strings.ToLower(name)
25 config.Effort = "high"
26 config.Parent = root.config.Name
27 config.Responsibility = "Keep the plans and decisions for " + name + "."
29 agentWriteTestConfig(t, path, config)