Loop Command for Automated Task Execution

New tm loop command runs Claude Code in automated iterations, executing tasks from your backlog with built-in presets for TDD, linting, duplication cleanup, and more.

Minor Changes

  • #1571 c2d6c18 Thanks @Crunchyman-ralph! - Add loop command for automated task execution with Claude Code

    New Features:

    • task-master loop command that runs Claude Code in a Docker sandbox, executing one task per iteration based on the selected tag
    • Built-in presets for different workflows:
      • default - General task completion from the Task Master backlog
      • test-coverage - Find uncovered code and write meaningful tests
      • linting - Fix lint errors and type errors one by one
      • duplication - Find duplicated code and refactor into shared utilities
      • entropy - Find code smells and clean them up
    • Progress file tracking to maintain context across iterations (inside .taskmaster/loop-progress.txt)
      • Remember to delete this file between loops to not pollute the agent with bad context
    • Automatic completion detection via <loop-complete> and <loop-blocked> markers

Patch Changes

  • #1556 1befc6a Thanks @TheLazyIndianTechie! - fix: tolerate AI SDK versions without jsonSchema export

    Fallback to sanitized Zod schema handling when jsonSchema is unavailable, and align structured-output tests and registration perf thresholds to reduce CI failures.

    Also enforce sequential, unique subtask ids when regenerating subtasks during scope adjustment.

  • #1553 226678b Thanks @Crunchyman-ralph! - fix: Remove .default() from Zod schemas to satisfy OpenAI strict JSON schema validation

    This fixes an issue where codex-cli provider (using OpenAI API) would fail with "Missing 'dependencies'" error during task expansion. OpenAI's structured outputs require all properties to be in the 'required' array, but Zod's .default() makes fields optional. The fix removes .default() from schemas and applies defaults at the application level instead.

  • #1543 9a6fa1b Thanks @triepod-ai! - feat: Add tool annotations for improved LLM tool understanding

    Added MCP tool annotations (readOnlyHint, destructiveHint, title) to all 12 tools to help LLMs better understand tool behavior and make safer decisions about tool execution.