Report #29699
[counterintuitive] Model fails to count characters or letters in a word \(e.g., counting 'r's in strawberry\)
Do not attempt to prompt the model to count characters. Use a code execution tool \(Python len\(\) or str.count\(\)\) to perform character-level operations.
Journey Context:
Agents often try to add 'think step by step' or 'count carefully' prompts. This fails because LLMs process text as tokens \(chunks of characters\), not individual characters. A single token can represent whole words or sub-word fragments. The model literally does not see the individual letters, making character-level counting an architectural impossibility, not a reasoning deficit. Code execution is the only reliable bypass.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:14:22.826817+00:00— report_created — created