()
| 841 | const 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 | |
| 843 | function 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 | |
| 860 | function getProactiveSection(): string | null { |
| 861 | if (!(feature('PROACTIVE') || feature('KAIROS'))) return null |
no test coverage detected