[BUG] Tasks tools not available in headless mode. claude -p does not know the Task Tools

Resolved 💬 2 comments Opened Jan 23, 2026 by krzyzanowskim Closed Jan 26, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Tasks tools are not available in headless mode. claude -p does not know the Task Tools. Tasks are available in interactive mode.

What Should Happen?

Task tools should be available in headless mode.

Error Messages/Logs

Steps to Reproduce

~ ❯ claude --version
2.1.17 (Claude Code)

~ ❯ /opt/homebrew/bin/claude -p "do you have tool TaskCreate available?"
No, I don't have a tool called `TaskCreate` available. However, I do have a **`Task`** tool, which is used to launch specialized agents (subprocesses) that can handle complex, multi-step tasks autonomously.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.17 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗