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

Function getClassifierModel

src/utils/permissions/yoloClassifier.ts:1334–1347  ·  view source on GitHub ↗

* Get the model for the classifier. * Ant-only env var takes precedence, then GrowthBook JSON config override, * then the main loop model.

()

Source from the content-addressed store, hash-verified

1332 * then the main loop model.
1333 */
1334function getClassifierModel(): string {
1335 if (process.env.USER_TYPE === 'ant') {
1336 const envModel = process.env.CLAUDE_CODE_AUTO_MODE_MODEL
1337 if (envModel) return envModel
1338 }
1339 const config = getFeatureValue_CACHED_MAY_BE_STALE(
1340 'tengu_auto_mode_config',
1341 {} as AutoModeConfig,
1342 )
1343 if (config?.model) {
1344 return config.model
1345 }
1346 return getMainLoopModel()
1347}
1348
1349/**
1350 * Resolve the XML classifier setting: ant-only env var takes precedence,

Callers 1

classifyYoloActionFunction · 0.85

Calls 2

getMainLoopModelFunction · 0.85

Tested by

no test coverage detected