From oh-my-harness
Merges changes from agent worktrees back to the main branch with diff preview and user confirmation. Only works in worktree mode.
How this skill is triggered — by the user, by Claude, or both
Slash command
/oh-my-harness:agent-applyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Merge changes from agent worktrees back to the main branch.
Merge changes from agent worktrees back to the main branch.
Usage: /agent-apply [agent-id|all] Example: /agent-apply 1 Example: /agent-apply all
Read agent state from .claude/.omh/agents.json. If no agents exist, report and exit.
Check useWorktree: If useWorktree is false, report "Agent apply is only available in worktree mode." and exit.
Parse arguments: Determine which agent(s) to apply from $ARGUMENTS (default: show all and ask).
For each agent to apply, show a diff preview:
git log "main..omh/agent-{i}" --oneline
git diff "main...omh/agent-{i}" --stat
Ask user confirmation using AskUserQuestion:
Merge changes for confirmed agents:
git merge "omh/agent-{i}" --no-ff -m "merge: agent-{i} - {task description}"
If merge conflicts occur, report them to the user and suggest manual resolution.
Update agent state: Set merged agents' status to "applied" in .claude/.omh/agents.json.
Suggest cleanup: After applying, suggest /agent-stop to clean up worktrees and tmux session.
Provides a checklist for code reviews covering functionality, security, performance, maintainability, tests, and quality. Use for pull requests, audits, team standards, and developer training.
npx claudepluginhub hoya324/oh-my-harness --plugin oh-my-harness