This guide provides essential information for developers working on the Agent Kernel project.
Before you begin development, ensure you have the following installed:
- Python 3.12 or higher
- uv - Fast Python package installer and resolver
- Git
- Make
-
Fork the repository on GitHub
-
Clone your fork locally:
git clone https://github.com/yaalalabs/agent-kernel.git cd agent-kernel -
Add the upstream repository:
git remote add upstream https://github.com/yaalalabs/agent-kernel.git
-
Create a branch for your changes:
git checkout -b feature/your-feature-name
-
Navigate to the Python package
cd ak-py -
Install development dependencies
./build.sh
The project includes a Makefile with several useful commands for code formatting and quality checks. All commands should be run from the root directory of the project.
To see all available Makefile commands:
make helpAgent Kernel uses the following tools to maintain code quality:
Before committing code, run:
make lint-check-allThis ensures your code meets the project's formatting standards without making changes. If issues are found, run:
make lint-allto automatically fix formatting issues.
-
Create a feature branch
git checkout -b feature/your-feature-name
-
Make your changes
- Write code following the project's conventions
- Add tests for new functionality
-
Verify formatting
make lint-check-all
-
Format your code
make lint-all
-
Run tests
cd ak-py uv run pytest -
Commit your changes
git add . git commit -m "feat: describe your changes"
-
Push to your branch
git push origin feature/your-feature-name
Follow conventional commit format:
feat:- New featurefix:- Bug fixdocs:- Documentation changeschore:- Maintenance tasksrefactor:- Code refactoringtest:- Test additions or modifications
- Ensure all formatting checks pass
- Add appropriate tests
- Ensure all CI tests pass
- Update documentation if needed
- Request review from maintainers
- Main README - Project overview and usage
- Documentation Setup - Setting up the documentation site
- Examples - Sample implementations