landai-systems/DevHands

Improve prompt templates for SOLID refactoring

開放

#14 建立於 2025年7月29日

 (0 則留言) (0 個反應) (0 位負責人)Python (3 個分叉)auto 404
agentichelp wantedlangchainprompt-engineering

倉庫指標

星標
 (3 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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/)

貢獻者指南