r/ClaudeCode • u/RunEmpty2267 • 6h ago
Bug / Issue [reasoning_extraction] Error, ways to overcome this false flagged error?
As I am working on a product that uses AI to generate a Plan and then an Implementation of that plan, I use Claude to understand how to improve the plan generation but lately I am receiving this error a lot and I can understand why (the plan is generated by the same LLM, so reviewing it might be seen like reasoning extraction of the LLM), but now how to avoid it
Has anyone encountered this error, and if so, how have you approached to not get flagged by it?
1
Upvotes
•
u/AutoModerator 6h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/SirRobinBlibs 3h ago
That one isn't random: reasoning_extraction is a refusal category. Per Anthropic's refusals docs, it fires when the prompt asks the model to reproduce its internal reasoning in the response, for example a thinking or scratchpad section it fills in before answering, a "reasoning" or "trace" field in JSON output or a tool input, or reasoning asked for verbatim. Since your plans are LLM-generated, check the plan template, the system prompt, any skills and tool descriptions for fields like that; earlier turns or examples that show reasoning in tags can trigger it too. Ask for a short rationale or the evidence behind each step instead, and if you want the reasoning itself, use adaptive thinking and read the thinking blocks. Also worth knowing: a refusal in this category that arrives before any output is still billed, so fixing the prompt beats retrying.