Accelerated Code Dev & Review Agent
Inspired by Claude's growing footprint in GitHub commits, this challenge focuses on building an advanced agentic development environment. You will use Mastra AI to orchestrate a team of agents that automate parts of the software development lifecycle, from generating code snippets based on user stories to automated testing and code review. The system should integrate with a simulated codebase, providing intelligent suggestions and even committing code. Emphasis is placed on code quality, security, and developer productivity.
What you are building
The core problem, expected build, and operating context for this challenge.
Build an agentic development assistant using Mastra AI, Claude Sonnet 4, and Llama 3 8B Instruct for automated code generation, review, and continuous integration.
How work is evaluated
The system will be evaluated on its ability to correctly implement a simple feature, generate appropriate tests, and provide insightful code reviews, all while adhering to specified coding standards. Evaluation will involve checking the generated code against requirements and analyzing agent logs for effective collaboration.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
CodeSyntacticallyCorrect
Generated code is syntactically valid Python.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
TestsPass
Generated unit tests pass against the generated function.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
PEP8Compliance
Refactored code adheres to PEP8 guidelines.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
CodeQualityScore
Automated score based on linting, complexity, and docstrings. • target: 85 • range: 0-100
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
FeatureCompleteness
Percentage of described features correctly implemented. • target: 95 • range: 0-100
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Master Mastra AI for defining agent roles, tools, and workflows, including its built-in memory and RAG capabilities for contextual code generation.
Integrate Claude Sonnet 4 for high-quality code generation and complex logical reasoning tasks, particularly for design patterns and architectural decisions.
Deploy Llama 3 8B Instruct via Hugging Face Inference Endpoints for highly optimized, specific code completion, syntax checking, and boilerplate generation.
Build custom tools within Mastra AI to interact with a mock Git repository and a simulated IDE (emulating Cursor's features) for reading, writing, and modifying code files.
Utilize Cohere's embedding models for semantic search over the codebase, enabling agents to quickly find relevant code examples, functions, or documentation for context.
Design an agent team where individual agents (e.g., 'Feature Developer Agent', 'Test Engineer Agent', 'Code Review Agent') collaborate using Mastra AI's messaging primitives.
Implement automated code quality checks and vulnerability scanning using a simulated or simplified code analysis tool.
Reference links and supporting material
Sample data for 2 tasks
Challenge setup
The system will be evaluated on its ability to correctly implement a simple feature, generate appropriate tests, and provide insightful code reviews, all while adhering to specified coding standards. Evaluation will i...
Challenge input
{'feature_description': 'string', 'language': 'string', 'test_framework': 'string'}
Agent execution
No agent tool is listed for this challenge.
Evaluated output
{'function_code': 'string', 'test_code': 'string', 'review_summary': 'string'}
- Generated code is syntactically valid Python.
- Generated unit tests pass against the generated function.
- Refactored code adheres to PEP8 guidelines.
- CodeQualityScore target: 85
- 2 public reference cases
- Python execution harness
Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.
View technical recipe
Configured tools
No tool records are attached.
Evaluation contract
- CodeSyntacticallyCorrect · Weight 1
- TestsPass · Weight 1
- PEP8Compliance · Weight 1
- CodeQualityScore · Weight 1
- FeatureCompleteness · Weight 1
Metrics
- CodeQualityScore · Target 85
- FeatureCompleteness · Target 95
Reference cases
- 2 public reference cases
Workflow tasks
- Task 1
Input: {'feature_description': 'string', 'language': 'string', 'test_framework': 'string'}
Output: {'function_code': 'string', 'test_code': 'string', 'review_summary': 'string'}
Execution harness: Python
- Task 2
Input: {'code_snippet': 'string', 'refactoring_goal': 'string'}
Output: {'refactored_code': 'string', 'review_comments': 'list', 'justification': 'string'}
Execution harness: Python
Recipe freeze marker
No recipe freeze time is recorded.