Replies: 1 comment
|
Sorry for the late reply — been heads-down fixing bugs and issues from other users the past few days. Good news: this is already implemented in CCO! The context budget calculator expands You can verify by running Really glad you raised this though — it's exactly the kind of accuracy issue that matters for config planning. If you're seeing different behavior on your end, let me know the version and I'll investigate. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Following up on @larachan-dev's question about
@import mechanics from #4.How Claude Code resolves @ includes
Based on our testing (not official Anthropic docs — behavior observed across 100+ sessions):
Syntax:
@path/to/file.mdon its own line in CLAUDE.mdResolution:
@~/.claude/empirica-system-prompt.md→ resolves~to home dir, reads the file, injects full content@./rules/custom.md→ relative to the CLAUDE.md locationWhat we've confirmed:
cache_read_input_tokenswhich includes all resolved includesWhat we haven't tested:
Why it matters for token counting:
Our CLAUDE.md is 16 bytes:
But the included file is 1,191 tokens (lean core) or 6,292 tokens (full prompt). The organizer's token counter sees 16 bytes (~4 tokens) instead of the actual loaded content.
Implementation suggestion:
In the tokenizer, when processing CLAUDE.md content:
^@(.+)$~, relative)This would be ~15 lines of code and would fix the most common underestimation case.
All reactions