MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getKnowledgeCutoff

Function getKnowledgeCutoff

src/constants/prompts.ts:713–730  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

711
712// @[MODEL LAUNCH]: Add a knowledge cutoff date for the new model.
713function getKnowledgeCutoff(modelId: string): string | null {
714 const canonical = getCanonicalName(modelId)
715 if (canonical.includes('claude-sonnet-4-6')) {
716 return 'August 2025'
717 } else if (canonical.includes('claude-opus-4-6')) {
718 return 'May 2025'
719 } else if (canonical.includes('claude-opus-4-5')) {
720 return 'May 2025'
721 } else if (canonical.includes('claude-haiku-4')) {
722 return 'February 2025'
723 } else if (
724 canonical.includes('claude-opus-4') ||
725 canonical.includes('claude-sonnet-4')
726 ) {
727 return 'January 2025'
728 }
729 return null
730}
731
732function getShellInfoLine(): string {
733 const shell = process.env.SHELL || 'unknown'

Callers 2

computeEnvInfoFunction · 0.85
computeSimpleEnvInfoFunction · 0.85

Calls 1

getCanonicalNameFunction · 0.85

Tested by

no test coverage detected