Contributing to DSPy Code
Thank you for your interest in contributing to DSPy Code! We welcome contributions from the community.
DSPy Code is built by Superagentic AI and is part of our commitment to open source leadership in the Agentic AI space.
How to Contribute
Reporting Bugs
If you find a bug, please open an issue on GitHub with:
- A clear description of the bug
- Steps to reproduce
- Expected vs actual behavior
- Your environment (OS, Python version, DSPy version)
- Any relevant error messages or logs
Suggesting Features
We welcome feature suggestions! Please open an issue with:
- A clear description of the feature
- Use cases and examples
- Why this feature would be valuable
- Any implementation ideas (optional)
Code Contributions
-
Fork the repository
-
Create a branch
-
Set up development environment
-
Make your changes
- Follow the existing code style
- Add tests for new features
- Update documentation as needed
-
Ensure all tests pass
-
Test your changes
-
Commit your changes
-
Push and create a Pull Request
Development Guidelines
Code Style
- Follow PEP 8 Python style guide
- Use type hints where appropriate
- Write docstrings for all public functions and classes
- Keep functions focused and single-purpose
Testing
- Write tests for new features
- Ensure existing tests still pass
- Aim for good test coverage
Documentation
- Update relevant documentation pages
- Add examples for new features
- Keep documentation clear and beginner-friendly
Commit Messages
Use clear, descriptive commit messages:
Add: Feature description
Fix: Bug description
Update: Change description
Refactor: Refactoring description
Docs: Documentation update
Project Structure
dspy-code/
âââ dspy_code/ # Main package
â âââ commands/ # Slash command handlers
â âââ core/ # Core functionality
â âââ models/ # Code generation
â âââ optimization/ # GEPA integration
â âââ mcp/ # MCP client
â âââ rag/ # Codebase RAG
â âââ ...
âââ docs/ # Documentation
âââ tests/ # Test suite
âââ examples/ # Example scripts
âââ pyproject.toml # Project configuration
Areas for Contribution
High Priority
- Additional DSPy module templates
- Enhanced MCP tool integrations
- Performance optimizations
- Extended validation rules
- More evaluation metrics
Documentation
- Tutorial improvements
- Code examples
- Best practices guides
- Video tutorials (external)
Testing
- Additional test coverage
- Integration tests
- Performance benchmarks
Code of Conduct
We are committed to providing a welcoming and inclusive environment. Please:
- Be respectful and considerate
- Welcome newcomers and help them learn
- Focus on constructive feedback
- Celebrate diverse perspectives
Questions?
- GitHub Issues: https://github.com/superagentic-ai/dspy-code/issues
- Website: https://super-agentic.ai
Recognition
Contributors will be recognized in:
- Release notes
- Project documentation
- GitHub contributors page
Thank you for helping make DSPy Code better! đ
Built by Superagentic AI - The Home of Agentic AI