codex-taskloop-plugin

canxin121's avatarfrom canxin121

Run in-session task loops via the codex-taskloop-plugin MCP server and stop hook.

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 5, 2026⬇️1downloads

When & Why to Use This Skill

The codex-taskloop-plugin is a powerful Claude skill designed to manage and execute iterative task loops within a single session. By leveraging the Model Context Protocol (MCP), it enables the creation, resumption, and organization of complex multi-step workflows, providing a structured environment for autonomous task execution and state persistence through completion promises and stop hooks.

Use Cases

  • Complex Workflow Automation: Initiating and monitoring multi-stage tasks that require several iterations to reach a defined completion state.
  • Task State Management: Listing, renaming, and resuming interrupted task loops to maintain continuity in long-running projects without losing context.
  • Autonomous Error Correction: Implementing self-correcting loops where the agent continues working until specific success criteria or '<promise>' tags are detected.
  • Project-Specific Task Organization: Segregating task data between project and user scopes to ensure secure and organized workspace management.
namecodex-taskloop-plugin
descriptionRun in-session task loops via the codex-taskloop-plugin MCP server and stop hook.
short-descriptionTaskloop MCP usage

Codex Taskloop Plugin

When to use

Use this skill when a user asks to start, continue, list, rename, resume, or delete Taskloop tasks inside a single Codex session.

Preconditions

  • The codex-taskloop-plugin MCP server is registered.
  • The codex-taskloop-plugin stop hook is installed.

If not installed:

  • Project scope: scripts/install.sh --scope project --project "<path>"
  • User scope: scripts/install.sh --scope user

Core workflow

  1. Start a loop with the MCP tool task_loop and a clear prompt.
  2. Use completion_promise so the loop stops when the assistant outputs <promise>...</promise>.
  3. Control tasks with task_list, task_resume, task_rename, and task_delete.
  4. Storage:
    • Project install enforces project-only storage.
    • User install allows project or user per tool call.

Tool quick reference

  • task_loop: prompt (required), task_name, max_iterations, completion_promise, completion_matcher, history_limit, storage, project_dir
  • task_list: storage, project_dir, limit, offset
  • task_resume: task_name, storage, project_dir
  • task_rename: task_name, new_name, storage, project_dir
  • task_delete: task_name, storage, project_dir

Conventions

  • Use a short, meaningful task_name or let it auto-generate from the first line.
  • Put the promise text inside <promise>...</promise> exactly when done.