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

Function isReplModeEnabled

src/tools/REPLTool/constants.ts:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 * of the env the caller passes.
22 */
23export function isReplModeEnabled(): boolean {
24 if (isEnvDefinedFalsy(process.env.CLAUDE_CODE_REPL)) return false
25 if (isEnvTruthy(process.env.CLAUDE_REPL_MODE)) return true
26 return (
27 process.env.USER_TYPE === 'ant' &&
28 process.env.CLAUDE_CODE_ENTRYPOINT === 'cli'
29 )
30}
31
32/**
33 * Tools that are only accessible via REPL when REPL mode is enabled.

Callers 3

getToolsFunction · 0.85
getUsingYourToolsSectionFunction · 0.85

Calls 2

isEnvDefinedFalsyFunction · 0.85
isEnvTruthyFunction · 0.85

Tested by

no test coverage detected