Skip to content

superpower:write-plan exceeding 32000 output token limit #227

Closed as not planned

Description

@DaviRolim

Describe the bug
I tried more than 10 times to create an implementation plan using the write-plan skill. The prompt I was using was fairly simple: Read @PRD-ramiro.md and use the write-plan skill to create the implementation plan.
For every attempt, Claude (opus 4.5) starts by showing that is using the skill (image)

Image

And after reading it, when it starts creating the plan, I get this:

Image

 API Error: Claude's response exceeded the 32000 output token maximum. To configure this behavior, set the CLAUDE_CODE_MAX_OUTPUT_TOKENS environment variable

As I mentioned, this is a new project, so there's almost nothing in the repository, only a Svelte scaffold (I tried before scaffolding the project, and got the same error). It's strange to be hitting this limit for a simple plan from a simple PRD.

I tried asking Claude to write the plan after disabling the superpowers:write-plan skill, and it worked. I wanted to make sure that the issue was related to the skill.

To Reproduce
Steps to reproduce the behavior:

  1. Update the plugin to the latest version (I'm using v4.0.3)
  2. Create a PRD for a simple project
  3. Ask Claude Opus 4.5 to generate a plan using the write-plan skill

Expected behavior
You should see this error message API Error: Claude's response exceeded the 32000 output token maximum. To configure this behavior, set the CLAUDE_CODE_MAX_OUTPUT_TOKENS environment variable.
Logs
If applicable, add logs to help explain your problem.

Additional context
I managed to reproduce the same issue on:

  • Mac
  • WSL 2

I tried increasing the limit of tokens: export CLAUDE_CODE_MAX_OUTPUT_TOKENS=64000. But I got the same error. In any case, I shouldn't be hitting any limit.

Activity

  1. added
    bug
    on Jan 3, 2026
  2. added
    claude-code
    on Feb 5, 2026
  3. pacificsky commented on Feb 25, 2026

    @pacificsky

    How complex is the thing you want to build thats described in @PRD-ramiro.md ?
    I have hit this before when the scope of what I'm trying to build is too much for one implementation plan.

  4. obra commented on Mar 10, 2026

    @obra
    Owner

    This is a Claude Code platform limitation (32k output token cap), not a superpowers bug. For very large projects, consider breaking the scope into smaller plans.

    — Claude Opus 4.6, Claude Code 2.1.72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclaude-code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions