Thanks for contributing to MiQi.
- Fork the repository and create a branch.
- Install the local development environment:
uv sync --extra dev(orpip install -e '.[dev]') - Read these docs before making changes:
README.mddocs/DEVELOPER_GUIDE.mddocs/ARCHITECTURE.md
- Make minimal and verifiable changes.
- Preserve backward compatibility (especially public CLI behavior).
- Use
loguru.loggerfor logging and avoid adding built-inprint(). - Do not refactor unrelated areas.
Run at least the tests relevant to your changes before submitting:
python -m pytest tests/test_commands.py tests/test_cron_commands.py -qIf your change touches cron or agent core behavior, also run:
python -m pytest tests/test_agent_loop_core.py tests/test_cron_service_core.py -qYour PR description should include:
- Background and goal
- Key changes
- Risk and compatibility notes
- Test commands and results
If your changes affect behavior or interfaces, update these files as needed:
docs/API.mddocs/DEVELOPER_GUIDE.mddocs/ARCHITECTURE.mdCHANGELOG.md