
Rewardkit
Turns a directory of Python checks and TOML judge files into a scored verifier for Harbor tasks. Drop criterion functions or LLM judge configs into your tests/ folder, run one uvx command, and get a reward.json back. The multi-reward setup is clean: subdirectories become separate dimensions (correctness/, quality/, structure/), each with its own score. Built-ins cover the usual suspects (file checks, command output, JSON comparisons), and you can write custom criteria with a @criterion decorator. The agent-as-a-judge mode is interesting but slow, it actually shells out to a CLI that can explore files. Honestly feels like the right level of abstraction if you're already writing Harbor tasks and don't want to hand-roll scoring logic.
- skills.sh installs
- 1.3K
- GitHub stars
- 6.9K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add harbor-framework/harbor --skill rewardkit --agent claude-codeInstalls into .claude/skills of the current project.
Files
Help the user write task verifiers with Reward Kit. Reward Kit is a lightweight Python package that turns a directory of criteria files into a reward score. Each criterion is a Python function call or a TOML judge file; folders become separate rewards.
Setup in a Harbor task
Put criteria alongside test.sh in the task's tests/ directory:
tests/
├── test.sh
├── checks.py # programmatic criteria
└── judge.toml # optional LLM/agent judge
tests/test.sh:
#!/bin/bash
uvx --python '>=3.12,<3.14' --from 'harbor-rewardkit==0.2.*' rewardkit /tests
This runs all criteria in /tests/ against the workspace at /app and writes
/logs/verifier/reward.json. Defaults match Harbor's conventions — no extra config needed.
If judge criteria need API keys, pass them through task.toml:
[verifier.env]
ANTHROPIC_API_KEY = "${ANTHROPIC_API_KEY}"
Ask whether Reward Kit should run in the agent's shared environment or in a separate verifier environment. Prefer a separate verifier environment when judge prompts, grading dependencies, API keys, or clean-room checks should not be available to the agent:
Sponsors
Details
- Repository
- github.com/harbor-framework/harbor
- Category
- AI & Agent Building
- First seen
- Jul 14, 2026