Skip to content
Automation
Command

/restart

Restart a specific agent by stopping and starting it.

From plugin
trinity
44227 skills27 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/restart

Context preview

What this command does when you run it.

Restart a specific agent by stopping and starting it.

Command definition

restart.md

Restart Agent

Restart a specific agent by stopping and starting it.

Usage

/ops/restart <agent-name>

Instructions

1. **Validate the agent name** - Check it exists using `mcp__trinity__get_agent`

2. **Check current status** - Is it running, stopped, or in error state?

3. **If running**:

  • Stop the agent using `mcp__trinity__stop_agent`
  • Wait 2-3 seconds for clean shutdown
  • Verify it stopped

4. **Start the agent** using `mcp__trinity__start_agent`

5. **Verify the restart**:

  • Check agent is running
  • Confirm agent server is responding

6. **Report the result**:

## Agent Restart: {agent-name}

**Previous Status**: {running/stopped}
**Stop Result**: {success/failed}
**Start Result**: {success/failed}
**Final Status**: {running/stopped}

{Any notes or warnings}

Safety Checks

  • Do NOT restart trinity-system (yourself)
  • If agent was stopped, just start it (no need to stop first)
  • If restart fails, report the error clearly
  • If agent has high context, note that restart will NOT reset context

Arguments

The agent name should be provided after the command. For example:

  • `/ops/restart research-agent`
  • `/ops/restart content-production-writer`
Ships withtrinity

Self-hosted AI Agents Platform supporting Claude Code, Codex, Gemini agents. Apache 2.0.

Get the whole plugin