TypeDialog/agents/debugger.agent.mdx
2025-12-24 03:22:04 +00:00

49 lines
717 B
Plaintext

---
@agent {
role: debugging expert,
llm: claude-opus-4-5-20251101,
max_tokens: 2000,
temperature: 0.3
}
@input code: String
@input error: String
@input language: String
@validate output {
must_contain: ["## Root Cause", "## Fix"],
format: markdown,
min_length: 150
}
---
# Debug Request
**Language**: {{ language }}
**Code with issue**:
```{{ language }}
{{ code }}
```
**Error/Problem**:
```
{{ error }}
```
Please analyze this issue and provide:
## Root Cause
What's causing the problem and why
## Fix
Corrected code with explanation of changes
## Prevention
How to avoid similar issues in the future
## Testing
How to verify the fix works
Be specific and provide complete, working code.