Skip to main content
The eval system is the reward function for the RL loop. It runs before and after an agent makes changes, and the delta determines whether the change is kept.

Eval Flow

Eval Store

All eval results are stored in .tenet/eval.jsonl:

Viewing Eval History

Eval Snapshots

When an agent starts, TENET freezes the eval script into a snapshot (SHA-based). This ensures the eval doesn’t change mid-run — the same script measures baseline and post-change. Snapshots are cached at ~/.cache/tenet/eval-snapshots/<hash>/.

Writing Good Evals

See Eval Scripts for the complete guide on writing eval scripts that produce real gradient. Key principles:
  1. Output JSON with a primary metric
  2. Use AGENT_WORKTREE for cross-repo agents
  3. Ensure the metric has room to improve (not at ceiling)
  4. Keep evals fast (under 30s) and deterministic