Directory · Hooks
Taskmaster
Stop hook for Claude Code and wrapper for Codex that blocks the agent from stopping until it emits an explicit completion token.
★ 537 stars · last updated 2026-03-11 · Free, open source · View on GitHub
Best for
- Preventing agents from stopping after partial progress with a summary
- Long-running sessions where work should continue in the same session
- Wrappers or CI flows that need a parseable done signal
- Users running both Claude Code and Codex CLI
Install
bash ~/.codex/skills/taskmaster/install.sh
Our take
Completion requires the agent to output TASKMASTER_DONE::<session_id>; otherwise the Claude Stop hook blocks with a shared compliance prompt, and the Codex path injects a continuation prompt via an expect PTY shim that replaces the codex command. The README's install command assumes the repo is already placed at ~/.codex/skills/taskmaster and does not show the clone step. TASKMASTER_MAX defaults to 0 (unlimited stop blocks), so consider setting a limit to avoid long loops; requires bash, jq, python3 for Claude, and expect for Codex.
Similar hooks
- Claude Code Ultimate Guide: Large open guide to Claude Code covering agent workflows, hooks, skills, MCP, security, and team adoption, with reusable templates.
- dcg (Destructive Command Guard): Rust pre-execution hook that blocks destructive shell, git, filesystem, database, and cloud commands run by AI coding agents.
- Claude Code Showcase: Example Claude Code project config with hooks, skills, agents, slash commands, MCP setup, and GitHub Actions workflows to copy from.
- Claude Code Hooks Mastery: Reference project implementing all 13 Claude Code hook events as UV Python scripts, plus sub-agents, status lines, and output styles.
- Continuous Claude v3: Hooks, skills, and agents that keep Claude Code context across sessions via YAML handoffs, ledgers, and a PostgreSQL memory store.
- Build with Claude: Plugin marketplace and discovery hub of agents, commands, hooks, and skills for Claude Code users extending their workflows.