Dashboard › opencode › Distillation
d007a20c-2d80-44d7-9400-adbb3c2ff23a["lore_tm_v1_8xUvUb2Kl7XZs4Q-zJK_zPSt56kskLbyAgpUsytLSLI","lore_tm_v1_PbnjlkyEJEdUJtWatIOv4jxndeHE2Dez96ahhmohRNs"]
default/related text: /home/byk/Code/opencode-v2-pilot/packages/core/src/v1/config/agent.ts line 28 and /home/byk/Code/opencode-v2-pilot/packages/core/src/agent.ts lines 40, 41, 71, and 74./home/byk/Code/opencode-v2-pilot/packages/core/src/v1/config/agent.ts line 28 describes hide as: "Hide this subagent from the @ autocomplete menu (default: false, only applies to mode: subagent)"./home/byk/Code/opencode-v2-pilot/packages/core/src/agent.ts defines Service as Context.Service<Service, Interface>()("@opencode/Agent") and constructs its layer with Layer.effect.Bus.Service and Global.Service, then grants allow permissions for external_directory resources matching SHELL_OUTPUT_GLOB(global.data), TOOL_OUTPUT_GLOB(global.data), path.join(global.tmp, "*"), and path.join(global.config, "*").State.create<Data, Editor>, name "agent", and initial data { agents: new Map() }.list(), get(id), default(id), update(id, fn), and remove(id); default(id) assigns editor.default = id, while remove(id) deletes the matching agent from editor.agents.update(id, fn) in /home/byk/Code/opencode-v2-pilot/packages/core/src/agent.ts obtains Info.default(id), reuses an existing agent when present, or creates a mutable agent by spreading the defaults and combining defaults.permissions with the layer’s additional permissions; it inserts a previously absent agent, invokes fn(current), and finally enforces current.id = id.bus.publish(Agent.Event.Updated, {}).pipe(Effect.asVoid).