Evaluate LLMs against behavioral specifications (AGENTS.md, Claude.md, custom rules)
Project description
llm-behavioral-eval
Spec-agnostic LLM evaluation engine. Measures how well any LLM follows behavioral specifications (AGENTS.md, CLAUDE.md, .cursorrules, etc.).
Quick Start
pip install llm-behavioral-eval
# Evaluate any spec directory
behavioral-eval --spec ./my-project --suite core_principles --count 20 --real-llm
# Full evaluation with LLM judge
behavioral-eval --spec ./dann-specs/project --suite all --real-llm --judge-provider deepseek
# Heuristic mode (no API cost for judge)
behavioral-eval --spec ./dann-specs/project --suite all --real-llm --no-judge
# A/B comparison between two models
behavioral-eval --spec ./dann-specs/project --arena llama-home ollama-home --count 30 --real-llm
Features
- 5 test suites: core_principles, rubric_dimensions, roles, variants, concrete
- LLM Judge: external LLM scores responses per-dimension (1-5) with justifications
- Concrete verification: executable coding tasks with real assertion testing
- Consistency:
--repetitions Nmeasures model stability - A/B Arena: compare two models head-to-head with statistical significance
- Heatmaps: per-dimension score breakdowns
- Spec-agnostic: evaluates any behavioral specification directory
License
GPL-3.0-only. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
llm_behavioral_eval-1.0.1.tar.gz
(31.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_behavioral_eval-1.0.1.tar.gz.
File metadata
- Download URL: llm_behavioral_eval-1.0.1.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea2e77be52fb10b51946c0885e61e64e183631387cfd8c9784d236bb542ccbc3
|
|
| MD5 |
33a2b6cd2bbe522bdd3835633b1a89f0
|
|
| BLAKE2b-256 |
1c56c294105e60dbef593a5cf1c43aeb3ae7a5f119d8d074cd14ca05cec219c6
|
File details
Details for the file llm_behavioral_eval-1.0.1-py3-none-any.whl.
File metadata
- Download URL: llm_behavioral_eval-1.0.1-py3-none-any.whl
- Upload date:
- Size: 37.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de486ab9d1025b61f92df099f2ec0cc2da72468f2ca4a4e3b3815fff84684b96
|
|
| MD5 |
d2b77a1f1565b1d6cc20604b827d8a17
|
|
| BLAKE2b-256 |
231fe77bbb7263ffe816982925c130cf3b380023d8812e359c218bdb3c1ffa1f
|