Are you the author? Sign in to claim
Stop hook for Claude Code that keeps the agent working until all plans and user requests are 100% complete
Taskmaster is a completion guard for coding agents.
It addresses a common failure mode: the agent makes partial progress, writes a summary, and stops before the user goal is actually finished.
Taskmaster is built around one idea: progress is not completion.
A run is complete only when the assistant emits:
TASKMASTER_DONE::<session_id>
If that token is missing at stop time, Taskmaster blocks stop and pushes the current turn to continue. Codex monitoring stays active for later turns in the same long-lived session.
Taskmaster uses one shared compliance prompt for both Codex and Claude.
The shared prompt source lives in taskmaster-compliance-prompt.sh.
codex shim / codex-taskmaster launcher).task_complete / turn_complete events.Stop command hook.check-completion.sh.bash ~/.codex/skills/taskmaster/install.sh
Auto-detection behavior:
codex or ~/.codex exists.claude or ~/.claude exists.Optional target override:
TASKMASTER_INSTALL_TARGET=codex bash ~/.codex/skills/taskmaster/install.sh
TASKMASTER_INSTALL_TARGET=claude bash ~/.codex/skills/taskmaster/install.sh
TASKMASTER_INSTALL_TARGET=both bash ~/.codex/skills/taskmaster/install.sh
Installed artifacts:
~/.codex/skills/taskmaster/~/.codex/bin/codex-taskmaster~/.codex/bin/codex (shim to Taskmaster wrapper)~/.claude/skills/taskmaster/~/.claude/hooks/taskmaster-check-completion.sh~/.claude/settings.jsonRun normally:
codex [args]
Explicit alias is also available:
codex-taskmaster [args]
Interactive resume is also supported:
codex resume [session-or-thread]
Run Claude normally after install. Taskmaster hook enforcement is automatic.
TASKMASTER_MAX (default 0):
0 means unlimited warnings.bash ~/.codex/skills/taskmaster/uninstall.sh
Auto-detection behavior mirrors install and removes Taskmaster from detected Codex/Claude environments.
Optional target override:
TASKMASTER_UNINSTALL_TARGET=codex bash ~/.codex/skills/taskmaster/uninstall.sh
TASKMASTER_UNINSTALL_TARGET=claude bash ~/.codex/skills/taskmaster/uninstall.sh
TASKMASTER_UNINSTALL_TARGET=both bash ~/.codex/skills/taskmaster/uninstall.sh
bashjqexpectStop hooks enabledpython3 (for install/uninstall settings updates)MIT
Hooking implementations and supporting tools for various coding agents (Claude, Cursor, Gemini, etc)
Claude Code hook that writes a forward-only why-block (decisions, trade-offs, assumptions, limitations) into your PR des
Blocks dangerous git and shell commands from being executed by AI coding agents
One command to install 6 essential safety hooks in 10 seconds — zero dependencies