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

Function getCompactPrompt

src/services/compact/prompt.ts:293–303  ·  view source on GitHub ↗
(customInstructions?: string)

Source from the content-addressed store, hash-verified

291}
292
293export function getCompactPrompt(customInstructions?: string): string {
294 let prompt = NO_TOOLS_PREAMBLE + BASE_COMPACT_PROMPT
295
296 if (customInstructions && customInstructions.trim() !== '') {
297 prompt += `\n\nAdditional Instructions:\n${customInstructions}`
298 }
299
300 prompt += NO_TOOLS_TRAILER
301
302 return prompt
303}
304
305/**
306 * Formats the compact summary by stripping the <analysis> drafting scratchpad

Callers 1

compactConversationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected