MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getBriefSection

Function getBriefSection

src/constants/prompts.ts:843–858  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

841const SUMMARIZE_TOOL_RESULTS_SECTION = `When working with tool results, write down any important information you might need later in your response, as the original tool result may be cleared later.`
842
843function getBriefSection(): string | null {
844 if (!(feature('KAIROS') || feature('KAIROS_BRIEF'))) return null
845 if (!BRIEF_PROACTIVE_SECTION) return null
846 // Whenever the tool is available, the model is told to use it. The
847 // /brief toggle and --brief flag now only control the isBriefOnly
848 // display filter — they no longer gate model-facing behavior.
849 if (!briefToolModule?.isBriefEnabled()) return null
850 // When proactive is active, getProactiveSection() already appends the
851 // section inline. Skip here to avoid duplicating it in the system prompt.
852 if (
853 (feature('PROACTIVE') || feature('KAIROS')) &&
854 proactiveModule?.isProactiveActive()
855 )
856 return null
857 return BRIEF_PROACTIVE_SECTION
858}
859
860function getProactiveSection(): string | null {
861 if (!(feature('PROACTIVE') || feature('KAIROS'))) return null

Callers 1

getSystemPromptFunction · 0.85

Calls 1

featureFunction · 0.85

Tested by

no test coverage detected