Lightweight grading toolkit for environment-based tasks.
Actively maintained. Last release 4 weeks ago, commits in 26 of the last 26 weeks. A safe choice.
pip install harbor-rewardkitHarbor Rewardkit
Rewardkit is a lightweight verifier package for Harbor tasks or standalone use.
Installation
uv tool install harbor-rewardkit
Programmatic verifier
# tests/checks.py
from rewardkit import criteria
criteria.file_exists("output.txt")
criteria.file_contains("output.txt", "hello")
Run it with:
uvx --python '>=3.12,<3.14' --from harbor-rewardkit rewardkit /tests
Rewardkit runs the criteria against /app and writes
/logs/verifier/reward.json. With files directly under tests/, their scores
are combined into one reward automatically.
Configure scoring
Each Python file that registers criteria is one equal-weighted component named
after its filename stem. Use [scoring.<stem>] in reward.toml to change how
the criteria within that file combine:
# tests/reward.toml
[scoring.checks]
aggregation = "all-pass"
Files that only provide imports or shared=True criterion definitions and
register no checks are ignored.
Judge verifier
# tests/quality.toml
[judge]
judge = "anthropic/claude-opus-5-5"
files = ["/app/main.py"]
[[criterion]]
description = "Is the code correct?"
type = "binary"
judge is a LiteLLM model, an agent such as claude-code, or jev for
JEV, a new type of language model from TypeSafe (install harbor-rewardkit[jev]).
Python files and judge TOMLs can coexist. A judge TOML is also a component named
after its stem and has its own optional [scoring] section.
To change how these flat components combine, add a named reward aggregation:
# tests/reward.toml
[[reward]]
name = "reward"
aggregation = "weighted-mean"
weights = { checks = 2.0, quality = 1.0 }
Multi-reward verifier
Put scoring inputs in subdirectories to emit separate dimensions: