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

Function autoModeConfigHandler

src/cli/handlers/autoMode.ts:35–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 * falls through to defaults).
34 */
35export function autoModeConfigHandler(): void {
36 const config = getAutoModeConfig()
37 const defaults = getDefaultExternalAutoModeRules()
38 writeRules({
39 allow: config?.allow?.length ? config.allow : defaults.allow,
40 soft_deny: config?.soft_deny?.length
41 ? config.soft_deny
42 : defaults.soft_deny,
43 environment: config?.environment?.length
44 ? config.environment
45 : defaults.environment,
46 })
47}
48
49const CRITIQUE_SYSTEM_PROMPT =
50 'You are an expert reviewer of auto mode classifier rules for Claude Code.\n' +

Callers 1

runFunction · 0.85

Calls 3

getAutoModeConfigFunction · 0.85
writeRulesFunction · 0.85

Tested by

no test coverage detected