Skip to content

fix: accurate prompt count for all agents - #98

Merged
vakovalskii merged 1 commit into
mainfrom
fix/count-real-prompts-all-agents
Apr 8, 2026
Merged

fix: accurate prompt count for all agents#98
vakovalskii merged 1 commit into
mainfrom
fix/count-real-prompts-all-agents

Conversation

@vakovalskii

Copy link
Copy Markdown
Owner

Parse actual user messages for Claude, Cursor, Codex.

- Claude: count type=user with non-empty text content
- Cursor: count role=user with non-empty text (strip user_query tags)
- Codex: count payload.role=user with non-empty text
- All: skip empty/system messages that inflate counts
- Cursor 460 lines → 43 real prompts (was 230 from /2 estimate)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vakovalskii
vakovalskii merged commit 9fc8ab0 into main Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant