Instructions to use EzioDevio/gemma4-dev-agent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EzioDevio/gemma4-dev-agent with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("EzioDevio/gemma4-dev-agent", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Gemma 4 Developer Agent (gemma4-dev-agent)
An autonomous software engineering agent built for the Google Gemma 4 Developer Agent Competition. This agent features custom query routing, static AST parsing, multi-file dependency refactoring, and automated test-driven healing powered by pytest.
π GitHub Repository: EzioDEVio/gemma4-dev-agent
π Key Features
- Intelligent Query Routing: Context-aware classification mapping user requests to specific developer workflows.
- Static AST Parsing: Inspects imports, classes, and function definitions using Python's native
astmodule. - Multi-File Dependency Tracking: Manages cross-file code references and updates dependencies automatically across modules.
- Automated Pytest Healing (
Test-Driven Repair): Detects failing test assertions, patches the underlying logic, and re-runs test suites until all checks pass successfully. - Comprehensive Toolset: Includes robust execution wrappers for bash commands, file reading/writing, AST analysis, and test coverage measurement (
pytest-cov).
π Benchmark Results
The agent has been rigorously tested against an advanced evaluation suite covering core software engineering tasks:
| Task ID | Description | Status |
|---|---|---|
task_01_refactor |
Code refactoring & function signature updates | PASSED |
task_02_syntax_fix |
Automatic syntax error detection & fixing | PASSED |
task_03_multi_file_dependency |
Cross-file function renaming & dependency tracking | PASSED |
task_04_pytest_healing |
Test-driven error patching & test suite validation | PASSED |
- Overall Score: 4/4 (100.0%)
π οΈ Supported Tools
execute_bash- Executes arbitrary bash shell commands on the host system.file_read- Safely reads file contents with error handling.file_write- Creates or overwrites files and directories.repo_ast_parser- Analyzes Python syntax trees for structural overview.run_pytest- Executes test suites with optional code coverage flags.
π Quick Start & Evaluation
To run the full evaluation suite and verify the agent's 100% benchmark score locally:
# Set up your virtual environment if not already active
source .venv/bin/activate
# Run the advanced benchmark evaluation
python3 scripts/evaluate.py
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support