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

贡献者指南