Stop all running agents or a specific agent
Stops all running agents or a specific agent by name.
/plugin marketplace add pubg-devops/workflow-adapter/plugin install workflow-adapter@devops-marketplaceagent_nameStop running agent processes.
$1 (optional): Specific agent to stop (e.g., "alpha", "beta"). If not provided, stops all agents.If no argument provided, stop all running agent scripts:
# Find and kill all agent scripts
pkill -f "run-.*\.sh" 2>/dev/null
# Also kill any claude processes spawned by agents
pkill -f "claude.*--print" 2>/dev/null
If agent name provided (e.g., $1 = "alpha"):
# Kill specific agent script
pkill -f "run-alpha\.sh" 2>/dev/null
# Kill associated claude process
pkill -f "claude.*alpha" 2>/dev/null
Check if any agent processes are still running:
ps aux | grep -E "run-.*\.sh|claude.*--print" | grep -v grep
If all stopped:
All agent processes stopped.
Stopped:
- Alpha agent
- Beta agent
- Delta agent
To resume work:
/workflow-adapter:execute {feature_name}
If specific agent stopped:
Alpha agent stopped.
Still running:
- Beta agent (PID: XXXX)
- Delta agent (PID: XXXX)
To stop all: /workflow-adapter:stop
If no processes were running:
No agent processes were running.
Ask user if they want to clean up log files:
로그 파일을 삭제할까요? (logs/*.log)
- yes: 로그 삭제
- no: 로그 유지 (나중에 확인 가능)
If yes:
rm -f logs/*.log
echo "Log files cleaned up."
# Stop all agents
pkill -f "run-.*\.sh"
# Stop specific agent
pkill -f "run-alpha\.sh"
# Check running agents
ps aux | grep "run-.*\.sh" | grep -v grep
# View agent logs
tail -f logs/alpha.log