landai-systems/DevHands

Improve prompt templates for SOLID refactoring

Offen

#14 geöffnet am 29.07.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (3 Forks)auto 404
agentichelp wantedlangchainprompt-engineering

Repository-Metriken

Stars
 (3 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Description: DevHands uses prompts to ask the LLM for refactoring suggestions. These prompts can be improved for clarity, consistency, and better diff output.

Tasks:

  • Locate the prompt template in LangchainAgent.explain_code()
  • Rewrite it to:
    • Include clear formatting rules (e.g., “Use unified diff format”)
    • Focus the LLM on SOLID principles (especially SRP and OCP)
    • Handle small vs. large files differently
  • Test prompt performance using small test files (tests/fixtures/)

Contributor Guide