Contributions can add learning methods, adapter designs, task integrations, host exporters, tests, or documentation. Start with the developer guide and choose the interface for your change.
Hermit core requires Python 3.12+ and Git. From a checkout:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e '.[test]'Benchmark data, agent CLIs, and model credentials depend on the integration. The installation guide lists the requirements.
Run the core checks and the offline training walkthrough:
python -m pytest tests/test_training.py tests/test_spec.py tests/test_deploy.py
hermit check --config docs/_examples/first_training/run.yaml
hermit train --config docs/_examples/first_training/run.yaml
hermit eval --config docs/_examples/first_training/run.yaml --adapter finalSelect additional tests for the affected interface. Host exporters have tests/test_convert.py; algorithm
integrations have tests/test_optimizer_evolvers.py, which needs the method dependency groups (pip 25.1+):
python -m pip install -e '.[test]' --group all
python -m pytest tests/test_optimizer_evolvers.pyThe optimizer tests use scripted responses and need no model credentials. The complete suite is:
python -m pytest testsSandbox and MWM integration tests require Linux, bubblewrap, and usable namespaces; some tests do not yet skip automatically when those prerequisites are absent. On macOS, run the applicable core tests and identify the Linux checks that remain unverified. See sandbox configuration for the execution boundaries. CI and platform-test organization are tracked separately for follow-up work.
For documentation changes:
python -m pip install -r docs/requirements.txt
bash docs/build.shThe build fails on warnings and excludes local design drafts. bash docs/serve.sh starts a local preview
that includes those drafts.
Optional file checks:
python -m pip install pre-commit
pre-commit run --all-filesThe hooks check TOML, YAML, merge-conflict markers, and newly added large files. They do not reformat code.
For bugs, include a small reproducer, the framework version or commit, platform, and relevant configuration. Remove credentials and private task data from shared logs. Use private reporting for vulnerabilities.
For pull requests, describe the resulting behavior, affected interfaces, and validation. Keep documentation, commands, and defaults consistent. Report external requirements and unverified platform-specific checks.
Documentation-only pull requests must be discussed with the core team first. Open an issue, agree on the change there, and link it in the pull request. Pull requests without that discussion will be closed.
A pull request that reproduces a published learning method follows Reproduce a published method and answers the questions in its last section.
Use the existing task, adapter, and Evolver interfaces where possible. For the contracts and extension examples, see task integration, adapter customization, and custom Evolvers.