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:
jochen
2026-10-09 09:41:52 +02:00
parent c613efe189
commit e139fb4dd9
9 changed files with 267 additions and 23 deletions
@@ -127,6 +127,8 @@ func RenderNow(p Paths, write WriteManaged) ([]string, error) {
var items map[string]Item
_ = readJSON(p.config(), &items)
config := ConfigOf(Taken(items))
var leftOut []string
config.Terminal, leftOut = terminalText(p)
mesh := ReadMeshTools(p)
if mesh != nil {
mesh.Refused = RefusedCounts(GuardDataOf(p, mesh).Log)
@@ -165,6 +167,9 @@ func RenderNow(p Paths, write WriteManaged) ([]string, error) {
for _, line := range left {
out = append(out, "home "+line)
}
for _, line := range leftOut {
out = append(out, "left out of the terminal's shared text: "+line)
}
return out, errors.Join(failed...)
}