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

Function hashSystemPrompt

src/utils/telemetry/betaSessionTracing.ts:129–131  ·  view source on GitHub ↗

* Generate a hash for a system prompt.

(systemPrompt: string)

Source from the content-addressed store, hash-verified

127 * Generate a hash for a system prompt.
128 */
129function hashSystemPrompt(systemPrompt: string): string {
130 return `sp_${shortHash(systemPrompt)}`
131}
132
133/**
134 * Generate a hash for a message based on its content.

Callers 1

Calls 1

shortHashFunction · 0.85

Tested by

no test coverage detected