News for hackers. Stuff that matters.
Re:Claude Sonnet 4 now supports 1M tokens of context by varyherb on Tuesday August 12, 2025 @09:14PM (#44883632)
Yup! Claude Code has a lot of undocumented configuration. Once I saw the beta header value in their docs [1], I tried to see in their source code if there was anyway to specify this flag via env var config. Their source code is already on your computer, just gotta dig through the minified JS :) Try:

`cat $(which claude) | grep ANTHROPIC_BETAS`

Sibling comment's approach with the other (documented) env var works too.

[1] https://docs.anthropic.com/en/docs/build-with-claude/context...

There are no comments on this comment yet.