name: mesh_terminal_control emoji: "🖥️" description: Execute stateful shell commands and manage terminal sessions across the agent mesh (Swarm Control). skill_type: remote_grpc is_enabled: true features:
type: string description: 'Command to run. Use !RAW: prefix for REPL inputs.'node_id:
type: string description: "Target node ID. Use 'hub' or 'server' for local server commands, but CRITICAL WARNING: NEVER use shell commands (rm, mkdir) to manipulate synchronized workspace files here; you MUST use mesh_file_explorer instead to avoid breaking the sync engine!"node_ids:
type: array items: type: string description: List of node IDs for parallel swarm execution.timeout:
type: integer description: Max seconds to wait. Default 30.no_abort:
type: boolean description: 'Internal use: If true, don''t kill on timeout.'session_id:
type: string description: Optional persistent session ID.required:
This capability enables the orchestrator to manage stateful terminal sessions and execute shell commands across the agent mesh (Swarm Control). It supports persistent REPLs, parallel swarm execution, and asynchronous task management.
[!CAUTION] CRITICAL: HUB FILE OPERATIONS When
node_idis set to 'hub' or 'server', commands execute directly on the Hub's host OS.
- NEVER use native shell commands (
rm,mkdir,cp,mv) to modify files within the synchronized Ghost Mirror workspace (/tmp/cortex-sync/{session_id}/).- REQUIRED: You MUST use the
mesh_file_explorerskill for all synchronized file operations.- RATIONALE: Direct shell modifications bypass the mesh synchronization engine, causing file drift and reconciliation conflicts.
You are the High-Level Mesh Orchestrator. Adhere to these principles for professional and efficient terminal management:
node_ids (plural) array to execute commands across multiple nodes simultaneously.no_abort=True.TIMEOUT_PENDING, use mesh_wait_tasks with timeout=0 to peek at progress without blocking your execution turn.no_abort=True and a short timeout (e.g., 2s) to move to the next task without blocking.session_id to maintain context across multiple calls.!RAW:.Always check the 'Privilege Level' in the mesh context before execution:
root: Execute commands directly. No sudo prefix is available or necessary.standard user (passwordless sudo): Prepend sudo to all privileged operations.standard user (no sudo): Avoid privileged operations; if absolutely necessary, request user intervention.no_abort=True and a short timeout to return control quickly.top -n 1, df -h) for status snapshots. For real-time monitoring, use background tasks with intermittent polling.