claude-code: set shared agent text at the controller's terminal, for now
Instructions, output styles, skills, commands and subagents for every node or some reach every session as the mesh's own word, and the tools cannot tell an agent from the operator; the operator decided they are set at the terminal until a surface of their own updates them (hq issue 340). They are settings keys, each text a list of lines; the home scope stays free.
This commit is contained in:
@@ -91,9 +91,15 @@ func Registrations(p Paths, servers ServerState, config ConfigState) (map[string
|
||||
|
||||
var settings Settings
|
||||
_ = readJSON(p.Settings, &settings)
|
||||
text, leftOut := terminalText(p)
|
||||
shared := []string{}
|
||||
for _, it := range text {
|
||||
shared = append(shared, it.Kind+" "+it.Name)
|
||||
}
|
||||
return map[string]any{
|
||||
"set at the controller's terminal, as this node composes it": map[string]any{
|
||||
"managed_settings": settings.ManagedSettings, "mcp_servers": settings.MCPServers},
|
||||
"managed_settings": settings.ManagedSettings, "mcp_servers": settings.MCPServers,
|
||||
"shared text": shared, "shared text left out": leftOut},
|
||||
"tool servers registered through this module": registered,
|
||||
"configuration registered through this module": items,
|
||||
"by": ByIs,
|
||||
|
||||
Reference in New Issue
Block a user