MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getCompactPrompt

Function getCompactPrompt

source code/services/compact/prompt.ts:295–305  ·  view source on GitHub ↗
(customInstructions?: string)

Source from the content-addressed store, hash-verified

293}
294
295export function getCompactPrompt(customInstructions?: string): string {
296 let prompt = NO_TOOLS_PREAMBLE + BASE_COMPACT_PROMPT
297
298 if (customInstructions && customInstructions.trim() !== '') {
299 prompt += `\n\nAdditional Instructions:\n${customInstructions}`
300 }
301
302 prompt += NO_TOOLS_TRAILER
303
304 return prompt
305}
306
307/**
308 * 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