landai-systems/DevHands
Improve prompt templates for SOLID refactoring
Aberta
#14 aberto em 29 de jul. de 2025
agentichelp wantedlangchainprompt-engineering
Métricas do repositório
- Stars
- (3 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
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/)