MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / taskKey

Function taskKey

src/skills/learning/failures.ts:55–57  ·  view source on GitHub ↗
(prompt: string)

Source from the content-addressed store, hash-verified

53
54/** A short, stable key for a task (so we count distinct tasks). */
55export function taskKey(prompt: string): string {
56 return createHash('sha1').update((prompt || '').trim().toLowerCase()).digest('hex').slice(0, 10);
57}
58
59export interface FailurePattern {
60 signature: string;

Callers 2

buildInitialMessagesMethod · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected