Measures whether a skill, MCP doc source, documentation set or agent profile actually improves AI-agent answers and task outcomes
pip install dokimi==0.2.0 Copy PIP instructions
This is the whole project. It evaluates whether a given skill / MCP doc source / agent profile actually improves agent answers, and produces the evidence (a scorecard) that decides whether the artifact is worth shipping. See the repository overview for the short version.
Documentation: https://intel.github.io/dokimi/ (the docs/ pages plus a generated CLI and API reference).
dokimi measures whether a skill, MCP doc source, documentation set or agent profile actually improves a model's or coding agent's answers and task outcomes. It runs the same question or task set with and without one controlled context layer and reports the delta together with its significance.
Context layers it can measure: local Markdown/URL documentation, Context7 and real MCP servers, skills (SKILL.md and bundles), agent profiles (system prompts), plugins, and whole code repositories with their own tasks and graders (manifest validation and pinned sources today; the task-run contract is proposed).
The arm comparison is the default, and two tracks ask a different question about the same material. Pick by what you are about to do with the answer:
The framework is content-agnostic: question sets, tasks, skills and products are passed in by path or registered in products.yaml. The bundled registry uses oneTBB, oneDAL and oneMKL as worked examples.
The project is pre-1.0; interfaces and artifact schemas may still change.
pip install dokimi # the released package and the `dokimi` command From a source checkout (to contribute, or to run the bundled tasks):
pip install -e ".[dev]" # installs the `dokimi` command plus test tooling # or, without installing the package: pip install -r requirements.txt -r requirements-test.txt The examples below use python cli.py … from a checkout; the installed dokimi … command is equivalent. For what a run costs in API calls, see the cost estimate.
python cli.py benchmark preflight --target onetbb python cli.py benchmark run --target onetbb Outputs go to results/onetbb_final/ by default. The default comparison is one fixed semantic retrieval config (top_k=3) with without_docs vs with_docs arms.
Optional static documentation gate for Markdown/code example quality:
python cli.py docs check \ --root . \ --spec benchmarks/spec.v1.yaml \ --out-json baselines/current.json \ --out-md reports/current.md Run the test suite:
python -m pytest -q For the LLM evaluation pipeline (answers, judging, dashboard), see docs/quickstart.md. For benchmark invocation and comparison recipes, see docs/benchmarking-and-comparison.md. A high-level architecture map is in docs/architecture.md, and docs/README.md is the documentation index.
The top-level CLI is python cli.py (or dokimi once installed):
Context benchmark benchmark Preflight and run the benchmark for registered targets evaluate Run the full pipeline in one command eval personas Discover and approve target user personas eval questions Generate, analyze, refine, and review questions answers Generate context-arm and baseline answers eval Build and check eval sets, score answers, calibrate judges arms Compare treatment arms (docs / MCP / skills / profiles) subjects Run a subject descriptor (artifact + suite) into a scorecard Executable and agentic tracks tasks Run Docker coding tasks through Codex, Claude Code or Harbor harnesses explore Run file/line localization tasks (ExploreBench) repo Validate a repository's repo-eval.yaml, fetch pinned sources, size its context, probe guidance reach catalog Check which skills/tasks in an external checkout load cleanly context Read a run's context window from its trace (no LLM call) Content analysis novelty Measure what an artifact's content adds to a model run Run the static documentation benchmark ingest Convert PDF/Office/HTML to Markdown via Docling Results and registries report Render reports (incl. model-compare) compare Compare static benchmark snapshots baseline Save and compare evaluation baselines dashboard Generate dashboard Markdown/JSON dataset Export artifacts to JSONL/Parquet/Hugging Face catalog List/show products and subject descriptors; check external skill catalogs That is the curated set; python cli.py --help lists every group.
Use --help on any command for detailed options, for example:
python cli.py eval questions --help python cli.py eval --help python cli.py dashboard generate --help For end-to-end benchmark and comparison commands, including static snapshots, LLM context-arm vs baseline runs, fair multi-model comparisons, treatment arms, dashboards, and baselines, see docs/benchmarking-and-comparison.md.
Two YAML registries, bundled in the package (dokimi/products.yaml, dokimi/intents.yaml), describe what the benchmark can evaluate:
The domain→product mapping lives only in intents.yaml; python -m dokimi.config_check (run in CI) fails if it references an unregistered product, or if dokimi/config/products.yaml drifts from products.yaml. Explore the mapping with:
python cli.py catalog intents # list domains + products python cli.py catalog list --kind product --domain data-science # products for a domain python cli.py catalog show --kind product vtune # includes the product's domains Static benchmark metrics The default static benchmark is configured in benchmarks/spec.v1.yaml and currently uses four active metrics:
Weights are normalized across enabled metrics. The benchmark also supports soft gates, hard gates, critical bands, and regression thresholds. Hard gates and critical bands are enforced only when --strict is passed. With --strict, a spec without a golden_manifest also exits 1 when no document was measured. A spec with one, as spec.v1.yaml has, exits 2 with or without --strict when fewer documents than its min_docs match, none included. An empty or absolute include pattern exits 2 as well. With --strict, a critical band the gate cannot read (an unknown condition, or a None metric) exits 2 too. Exit 1 is not only the --strict verdict: a document that cannot be read, or an --out-json or --out-md path that cannot be written, also exits 1, with an Error: or ❌ line on stderr saying which.
The LLM workflow is designed to answer a practical question: does documentation, a skill, an MCP source, or an agent profile improve model answers and task outcomes?
For fair multi-model comparisons, generate one question set and reuse it:
python cli.py benchmark run --target onedal --output-dir results/onedal_seed python cli.py benchmark run --target onedal --questions-from results/onedal_seed --model gpt-6-astra python cli.py benchmark run --target onedal --questions-from results/onedal_seed --model claude-opus-5-5 --provider anthropic Generated artifacts — answer runs, judge scores and benchmark snapshots — go under results/, reports/, answers/, eval/ or baselines/; those paths are git-ignored and no captured run is committed. Curated, version-controlled inputs live under data/ (data/skills/fastcontext/, data/agent_profiles/, data/explore_tasks/) — see data/README.md. Product skills, question sets and personas are evaluation content: they come from a separate content repository and are passed in by path (skill: , --questions , --questions-root ).
See docs/methodology.md for the detailed model roles, question types, difficulty levels, task workflow, and trust checks.
Terminal-bench-style tasks are the executable side of the benchmark: they validate not just text answers but working code and measurable behavior, so they can test whether docs, skills, or an agent profile actually improve an agent's ability to produce correct and performant code.
The task definitions are evaluation content and live in a separate content repository. Run them from any checkout by naming its task root:
python cli.py tasks run --tasks-root /evaluation/harbor/tasks \ --tasks --harnesses docker-oracle --out-json results/runs.json The directory layout and task.toml fields a task must provide are specified in docs/contributing-terminal-bench-task.md. CI runs a real external catalog through the same harness (see CI below) with network disabled at solve and verify time.
Do not commit generated logs, coverage databases, tarballs, local caches, or one-off experiment outputs. Keep generated benchmark artifacts either ignored locally or explicitly curated as fixtures. Use pull requests for all changes to main.
Status reports, phase plans, and other development-history notes do not belong in the repository — work-in-progress should live in PR descriptions and issues.
Licensed under the Apache License, Version 2.0. See NOTICE for attribution. Contributions are accepted under the same license — see CONTRIBUTING.md. To report a security issue, see SECURITY.md.
Both files in this release have provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




