/mission-agent-remove
Use this skill when the user invokes /mission-agent-remove <agent-name>.
This command edits only the active Mission's agents.md. It does not close panes, does not touch kanban, and does not modify other Mission files.
Validate that
<agent-name>is present.Run
mexus mission active --jsonand parse<active>. If no active Mission exists, fail clearly.Read
agent-team/missions/<active>/agents.md.Remove the row for
<agent-name>from## Agent Names.Remove the full
## Agent: <agent-name>section, from that heading up to the next## Agent:heading or end of file.Preserve all other Agent sections and the Inbox Protocol section.
Run
mexus pane list --mission <active> --json. If any returned Pane hasmission.agentName === <agent-name>, print exactly:Note: Pane <id> still has mission.agentName=<agent-name>; close it via `mexus pane close <id>` if it should not continue receiving Inbox events.Show the proposed
agents.mdedit to Squad Lead for review before saving. Save only after Squad Lead accepts.
Source: yofine/Mexus — distributed by TomeVault.