Skip to content

Update LLM Recorder instructions to "Technical Storyteller" persona #1017

Closed

Description

@squid-protocol

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

  1. added
    scope:frontier
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions