You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update LLM Recorder instructions to "Technical Storyteller" persona #1017
Update LLM Recorder instructions to "Technical Storyteller" persona
Description
The current LLM instructions in gitgalaxy/recorders/llm_recorder.py (_build_markdown function) instruct the AI to act as a rigid SAST security scanner. The prompts demand strict adherence to the metrics ("Measure Risk, Not Quality", "Base analysis strictly on the provided Structural Signatures"). This rigid prompting forces the LLM to confidently regurgitate the hallucinated metrics and false positives generated by the flawed regex heuristics.
We need to change the system role from a strict SAST analyzer to an "Improved Technical Storyteller" persona.
Why this is necessary
By forcing the LLM to act as a deterministic security tool, we guarantee that it will repeat the scanner's hallucinated logic bombs and O(2^N) recursion claims as absolute truth. Shifting the persona to a "Technical Storyteller" encourages the LLM to interpret the structural signals as a narrative about the codebase's architecture, design patterns, and complexity, rather than treating them as definitive proof of malware or algorithmic Denial of Service.
Action Items
Update the ## 1. SYSTEM ROLE & PHILOSOPHY section in gitgalaxy/recorders/llm_recorder.py.
Remove the rigid directives that force the LLM to act as a definitive security scanner.
Reframe the LLM's goal to act as an "Improved Technical Storyteller" that weaves the structural metrics into a cohesive narrative about the repository.
Activity