Thank you for your interest in contributing! This document provides guidelines and instructions.
Please read and follow our Code of Conduct.
- Check if the bug has already been reported in Issues
- If not, create a new issue with:
- Steps to reproduce
- Expected vs actual behavior
- Python version and OS
- Relevant logs from
~/.ai-peers/daemon.log
- Check if the feature has already been suggested in Issues
- If not, create a new issue explaining:
- The use case
- Why existing features don't cover it
- Proposed solution (optional)
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature-name - Make your changes
- Add tests for new functionality
- Run the test suite:
PYTHONPATH=skills/ai-peer/scripts \ uv run --with pytest --with cryptography \ pytest skills/ai-peer/tests/ -v
- Commit your changes:
git commit -m "feat: add your feature" - Push to your fork:
git push origin feature/your-feature-name - Open a Pull Request
We follow Conventional Commits:
feat:— New featurefix:— Bug fixdocs:— Documentation onlytest:— Adding or updating testsrefactor:— Code change that neither fixes a bug nor adds a featurechore:— Maintenance tasks
git clone https://github.com/nicepkg/ai-peer.git
cd ai-peer
# Verify Python version
python3 --version # Must be 3.10+
# Run tests
PYTHONPATH=skills/ai-peer/scripts \
uv run --with pytest --with cryptography \
pytest skills/ai-peer/tests/ -v
# Start daemon for manual testing
PYTHONPATH=skills/ai-peer/scripts python3 -m ai_peer daemon start
PYTHONPATH=skills/ai-peer/scripts python3 -m ai_peer daemon statusSee How It Works in the README and the PRD for detailed architecture documentation.
Key principles:
- Zero pip dependencies for core functionality
- Python stdlib only —
cryptographyis optional for E2E encryption - Cross-platform — macOS, Linux, Windows
- Tests required for new features
ai-peer/
├── skills/ai-peer/
│ ├── SKILL.md # Skill definition (read by AI agents)
│ ├── scripts/
│ │ ├── ai_peer/ # Python package (CLI + daemon)
│ │ └── relay/ # Cloudflare Worker (relay server)
│ ├── tests/ # Test suite (69 tests)
│ └── references/ # PRD, setup docs
├── README.md # English documentation
├── README_cn.md # Chinese documentation
└── LICENSE # MIT
Open an issue or start a discussion on GitHub.