بنقرة واحدة
agent-stop
Stop agents, kill tmux session, and clean up worktrees with safety warnings
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Stop agents, kill tmux session, and clean up worktrees with safety warnings
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Run an autonomous, spec-driven, tiered self/cross-verifying loop — the harness forces continuation until the goal is objectively met or a guardrail fires
Author a durable, machine-checkable SPEC.md (the anchor for an autonomous loop) with EARS-style acceptance criteria mapped to verify commands
Tier 3 작업 완료 전 N-라운드 독립검증·수정 루프. git diff를 모델 로테이션(Claude/GPT/Gemini)으로 라운드마다 독립 검증하고 수정한다.
Initialize oh-my-harness in the current project (plugin mode)
Configure oh-my-harness settings (features, thresholds, model routing, multi-agent)
Create a native Claude Code team with configured teammates and task assignments
| name | agent-stop |
| description | Stop agents, kill tmux session, and clean up worktrees with safety warnings |
| level | 2 |
Stop agents, kill tmux session, and clean up worktrees.
Usage: /agent-stop [agent-id|all] Example: /agent-stop all Example: /agent-stop 2
Read agent state from .claude/.omh/agents.json. If no file exists, report "No active agents." and exit.
Parse arguments: Determine which agent(s) to stop from $ARGUMENTS (default: all).
Read useWorktree from agents.json to know whether worktree cleanup is needed.
Check for unapplied changes (only when useWorktree is true):
For each agent being stopped:
git log "main..omh/agent-{i}" --oneline
If there are unmerged commits, warn the user using AskUserQuestion:
Agent {i} has {N} unmerged commit(s):
{commit list}
What would you like to do?
apply — run /agent-apply {i} first, then stop
discard — throw away these changes and stop
cancel — abort, do nothing
Never silently discard work. Always wait for explicit user choice.
Kill tmux panes for target agents:
# Stopping all agents:
tmux kill-session -t "{tmuxSession}"
# Stopping a specific agent:
tmux send-keys -t "{tmuxSession}:0.{i-1}" C-c
tmux send-keys -t "{tmuxSession}:0.{i-1}" "exit" Enter
Remove worktrees (only when useWorktree is true):
git worktree remove .claude/.omh/worktrees/agent-{i} --force
git branch -D "omh/agent-{i}"
Skip this step entirely when useWorktree is false.
Update agent state:
.claude/.omh/agents.json"stopped", keep remaining entriesReport cleanup summary to user.
useWorktree is true