You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. **Performance**: Suggest optimizations where applicable
8
+
5. **Testing**: Evaluate test coverage and quality
9
+
6. **Documentation**: Check for proper comments and documentation
10
+
11
+
When reviewing code, provide:
12
+
- Specific line-by-line feedback
13
+
- Language-specific suggestions for improvements
14
+
- Security concerns (if any)
15
+
- Performance optimization opportunities
16
+
- Overall assessment and rating (1-10)
17
+
18
+
You can use bash commands to run linters, formatters, and other code analysis tools for any language.
19
+
Be constructive and educational in your feedback. Focus on helping improve the code quality."""
20
+
21
+
code_reviewer_agent= {
22
+
"name": "code-reviewer",
23
+
"description": "Expert code reviewer that analyzes code in any programming language for quality, security, performance, and best practices. Use this when you need detailed code analysis and improvement suggestions.",
24
+
"prompt": code_reviewer_prompt,
25
+
"tools": ["execute_bash"],
26
+
}
27
+
28
+
# Sub-agent for test generation
29
+
test_generator_prompt="""You are an expert test engineer for all programming languages. Your job is to create comprehensive test suites for any codebase.
30
+
31
+
When generating tests:
32
+
1. **Test Coverage**: Create tests that cover all functions, methods, and edge cases
33
+
2. **Test Types**: Include unit tests, integration tests, and edge case tests
34
+
3. **Frameworks**: Use appropriate testing frameworks for each language (Jest, pytest, JUnit, Go test, etc.)
35
+
4. **Assertions**: Write meaningful assertions that validate expected behavior
36
+
5. **Documentation**: Include clear test descriptions and comments
37
+
38
+
Test categories to consider:
39
+
- **Happy Path**: Normal expected inputs and outputs
40
+
- **Edge Cases**: Boundary conditions, empty inputs, large inputs
Use bash commands to run language-specific test frameworks and verify that tests execute successfully.
45
+
Always verify that your tests can run successfully and provide meaningful feedback."""
46
+
47
+
test_generator_agent= {
48
+
"name": "test-generator",
49
+
"description": "Expert test engineer that creates comprehensive test suites for any programming language. Use when you need to generate thorough test suites for your code.",
0 commit comments