MCPcopy
hub / github.com/codeaashu/claude-code / is1mContextDisabled

Function is1mContextDisabled

src/utils/context.ts:31–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 * Used by C4E admins to disable 1M context for HIPAA compliance.
30 */
31export function is1mContextDisabled(): boolean {
32 return isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)
33}
34
35export function has1mContext(model: string): boolean {
36 if (is1mContextDisabled()) {

Callers 7

has1mContextFunction · 0.85
modelSupports1MFunction · 0.85
getContextWindowForModelFunction · 0.85
checkOpus1mAccessFunction · 0.85
checkSonnet1mAccessFunction · 0.85
isOpus1mMergeEnabledFunction · 0.85

Calls 1

isEnvTruthyFunction · 0.85

Tested by

no test coverage detected