Thank you for your interest in contributing to Cursor Agent! This document provides guidelines and instructions for contributing to the project.
By participating in this project, you agree to abide by our Code of Conduct. Please read it before contributing.
Before submitting a bug report:
- Check the issue tracker to see if the issue has already been reported.
- If you're unable to find an open issue addressing the problem, open a new one.
When filing an issue, please include:
- A clear title and description of the bug
- Steps to reproduce the issue
- Expected behavior vs. actual behavior
- Environment details (OS, Python version, etc.)
- Any relevant screenshots or error messages
Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion:
- Use a clear and descriptive title
- Provide a detailed description of the suggested enhancement
- Explain why this enhancement would be useful
- Include examples of how it would be used
- Fork the repository
- Create a new branch from
mainfor your changes - Make your changes and commit them with clear, descriptive commit messages
- Add or update tests as necessary
- Update documentation as needed
- Push your branch to your fork
- Open a pull request against the
mainbranch
- Keep PRs focused on a single feature or fix
- Include tests for new functionality
- Update documentation for any changed functionality
- Follow the existing code style
- Make sure all tests pass before submitting your PR
- Reference related issues in your PR description
- Fork and clone the repository
git clone https://github.com/civai-technologies/cursor-agent.git
cd cursor-agent- Create a virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`- Install development dependencies
pip install -e ".[dev]"- Set up your API keys (for testing)
export ANTHROPIC_API_KEY="your_key_here"
export OPENAI_API_KEY="your_key_here"Run the test suite with:
python run_tests.pyTo run specific tests:
python -m unittest tests.test_tools- Follow PEP 8 guidelines
- Use clear, descriptive variable and function names
- Add docstrings to all functions and classes
- Aim for a maximum line length of 100 characters
- Use type hints where appropriate
- Update the README.md with any new features, configuration options, or changes to usage
- Update or create examples for new functionality
- Add docstrings to your code for new functions, classes, or methods
- At least one project maintainer must approve a PR before it can be merged
- You may be asked to make changes to your PR based on feedback
- Once approved, the maintainer will merge your PR
By contributing to Cursor Agent, you agree that your contributions will be licensed under the project's MIT License.
If you have any questions or need help, please:
- Open an issue with the "question" label
- Reach out to Nifemi Alpine on Twitter @usecodenaija
Thank you for contributing to make Cursor Agent better!