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

Function buildSummaryPrompt

src/services/AgentSummary/agentSummary.ts:28–44  ·  view source on GitHub ↗
(previousSummary: string | null)

Source from the content-addressed store, hash-verified

26const SUMMARY_INTERVAL_MS = 30_000
27
28function buildSummaryPrompt(previousSummary: string | null): string {
29 const prevLine = previousSummary
30 ? `\nPrevious: "${previousSummary}" — say something NEW.\n`
31 : ''
32
33 return `Describe your most recent action in 3-5 words using present tense (-ing). Name the file or function, not the branch. Do not use tools.
34${prevLine}
35Good: "Reading runAgent.ts"
36Good: "Fixing null check in validate.ts"
37Good: "Running auth module tests"
38Good: "Adding retry logic to fetchUser"
39
40Bad (past tense): "Analyzed the branch diff"
41Bad (too vague): "Investigating the issue"
42Bad (too long): "Reviewing full branch diff and AgentTool.tsx integration"
43Bad (branch name): "Analyzed adam/background-summary branch diff"`
44}
45
46export function startAgentSummarization(
47 taskId: string,

Callers 1

runSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected