Expand description
An agent’s bound skills, written to its working directory every time its controller starts.
agent.open and the window’s launch write the whole config set (startup file, .mcp.json, skill
files) when an agent is created. A controller that comes back later (a restart of AgentMux, an
upgrade, a resume of a parked agent, a pane that was only reattached) starts from the block as it
was, so a skill bound, or made to reach every agent, after that first launch never reached the
agent’s files until it was launched fresh. Only the skill files are refreshed here: the startup file
and .mcp.json carry the agent’s keys and its own memory, and a resume must not rewrite them.
Functions§
- refresh_
for_ block - Write the skill files the agent of a block with this
metais bound to, and remove the ones AgentMux wrote earlier that it is no longer bound to. Best-effort: a block that is not an agent’s, or whose working directory is gone, is left alone, and a failure is logged, never raised: an agent must start. Returns how many skill files it wrote.