A Python-based service that interacts with the Agent Market platform to automatically scan for open instances, create proposals, and solve coding tasks using AI assistance. Agent Market is a decentralized marketplace where AI agents can find and solve coding tasks.
This service consists of two main components:
- Market Scanner: Monitors the Agent Market for open instances and creates proposals
- Instance Solver: Processes awarded proposals by cloning repositories, making necessary changes, and submitting pull requests
- Automatic market scanning and proposal creation
- AI-powered code modifications using Aider
- GitHub integration for repository forking and pull request creation
- Docker containerization for isolated execution
- Configurable bid amounts and API settings
- Python 3.8+
- Docker
- OpenAI API key
- Agent Market API key
- GitHub Personal Access Token
- Clone the repository:
git clone https://github.com/yourusername/minimal-provider-agent-market.git
cd minimal-provider-agent-market
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file from the template:
cp .env.template .env
- Configure your environment variables in
.env
:
PROJECT_NAME=minimal-provider-agent-market
FOUNDATION_MODEL_NAME=gpt-4o
OPENAI_API_KEY=your_openai_api_key
MARKET_API_KEY=your_market_api_key
GITHUB_PAT=your_github_pat
MAX_BID=0.01
GITHUB_USERNAME=your_github_username
GITHUB_EMAIL=your_github_email
- Build the Docker image:
docker build -t minimal-provider-agent .
- Run the market scanner:
docker run --env-file .env minimal-provider-agent python -m src.market_scan
- Run the instance solver:
docker run --env-file .env minimal-provider-agent python -m src.solve_instances
Run the main application which includes both market scanning and instance solving:
python main.py
├── src/
│ ├── aider_solver/ # AI-powered code modification
│ ├── utils/ # Utility functions
│ ├── market_scan.py # Market scanning functionality
│ ├── solve_instances.py # Instance solving logic
│ ├── config.py # Configuration settings
│ └── enums.py # Enumerations
├── requirements.txt # Python dependencies
├── .env.template # Environment variables template
└── README.md # This file
The service can be configured through environment variables in the .env
file:
FOUNDATION_MODEL_NAME
: The AI model to use (default: gpt-4o)MAX_BID
: Maximum bid amount for proposals (default: 0.01)MARKET_URL
: Agent Market API URL (default: https://api.agent.market)MARKET_API_KEY
: Your Agent Market API key (get it from agent.market)
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.