braintrust-agent-evals

Using validated workflows in the repository, inspect, query, compare, or explicitly export the GitHits agent-eval history within Braintrust.

Last repository push
GitHub Stars
145
Forks
14
Issues / PRs
3

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "braintrust-agent-evals" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5b72887acde98606e7017e21f0e0746213158d68b54930b57fedc9eced533720. Verify the upstream source and version against https://github.com/githits-com/githits-cli before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Using validated workflows in the repository, inspect, query, compare, or explicitly export the GitHits agent-eval history within Braintrust.

0 Downloads

Introduction source: third_party · githits-com · 0.0.1 Reference

SkillPi interpretation

Tasks
Inspect, query, compare, or explicitly export GitHits agent-eval history in Braintrust using the repository's verified workflow.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: braintrust-agent-evals
description: Inspect, query, compare, or explicitly export GitHits agent-eval history in Braintrust using the repository's verified workflow.
metadata:
  internal: true

Braintrust agent evals

Use this skill for read-only inspection of the GitHits agent-eval history in the Braintrust project githits-cli-agent-evals, or when the user explicitly asks to export a validated local suite. The normalized exporter stores one top-level eval span per scenario/workload cell plus structural tool children; see docs/implementation/agentic-eval-metrics.md for the field contract.

The persistence unit is one exporter invocation = one experiment, one scenario/workload cell = one eval row, and one normalized logical tool call = one structural tool child. Current exporter-owned experiment names are main-r<run-id>-a<attempt>, pr-<pr-number>-r<run-id>-a<attempt>, and local-<branch-slug>-<UTC-timestamp-with-milliseconds>-<short-sha>. Historical github-* experiments predate this identity contract and should be treated as historical evidence, not as current names or baseline candidates.

Safety and interpretation

  • Read-only is the default. Never delete experiments or upload raw stdout, stderr, environment/configuration, provider events, or arbitrary artifacts.
  • Never read or print BRAINTRUST_API_KEY, .bt/, Keychain contents, or any credential/environment value. CI scopes the key only to its exporter step.
  • Do not treat an agent's self-reported confidence as result quality. This phase has no scorer or quality score.
  • A failed or partial cell can be valid history when its normalized evidence is complete; distinguish that from a rejected suite or failed preflight.

Inspect experiments

Use the exercised project-option placement for list/view:

bt experiments --json --project githits-cli-agent-evals list
bt experiments --json --project githits-cli-agent-evals view <experiment-name>

Use the experiment ID returned by the view result for a bounded field query:

bt sql --json --non-interactive "SELECT input, output, metrics, metadata, tags FROM experiment('<experiment-id>') WHERE span_attributes.type = 'eval' LIMIT 100"
bt sql --json --non-interactive "SELECT name, span_attributes.type, metrics, metadata FROM experiment('<experiment-id>') WHERE span_attributes.type = 'tool' LIMIT 100"

The eval-root query is the verified path for prompts, neutral answers, hashes, statuses, native token/cost/duration metrics, and root metadata. Query tool children separately for native tool counts/errors and exact lifecycle timing. An unfiltered count(*) includes both eval roots and tool children, so it is not the workload-row count. A local proof experiment poc-native-tool-spans-v2-20260831 (ID e8480301-6622-4a06-a37b-0ebd0e42bb64, https://www.braintrust.dev/app/GitHits/p/githits-cli-agent-evals/experiments/poc-native-tool-spans-v2-20260831) read back two eval roots and 10 tool children. Native comparison reported tool_calls average 5.0 and tool_errors 0; child durations totaled 30.970 seconds and ranged from 0.006 to 10.400 seconds. Native token and cost fields remain populated. Open the experiment permalink when row-level UI inspection is useful.

The labeled CI path is proven by run 33424857668 at code SHA 7195ccc56b9ac9288dfb3d8de854f2f0e7ae7cf0. Its experiment is github-33424857668-1 (ID 182ee9db-0df3-40f4-8987-6eeb6d91a89b), source github, exporter/schema 2, metrics schema 3: 23 eval spans and 116 tool children, exactly matching 116 MCP calls, with zero CLI calls and zero failed tool spans. Totals were 513.911 seconds eval duration, 126.458999872 seconds tool duration, 2,686,094 prompt tokens, 20,172 completion tokens, 2,706,266 total tokens, and estimated cost $0.22819038. Compare averages were duration 22.343956532685652, estimated cost $0.009921320869565216, tool calls 5.043478260869565, tool errors 0, and total tokens 117663.73913043478. The first stable default-branch bootstrap is run 33477846273 at SHA 40796bd0eabaf87afec5ea0e4460ff47e7448603. Experiment main-r33477846273-a1 (ID 6f3847fc-3816-4b32-b1f6-65019c2757b7) read back 23 eval roots and 112 tool children, zero CLI calls, 3,024,404 tokens, 445.728 seconds cumulative agent duration, and estimated cost $0.24188221. Its null base is the expected one-time bootstrap result. Main pushes now temporarily run the same matrix, in addition to the daily/manual/label paths, to collect variance and workload-optimization evidence.

The current agent-eval-openrouter label runs the shared 50-cell main matrix on trusted same-repository PRs: discovery 2, intent 24, and full guidance 24. The trial PR must commit credential-free eval/agentic/openrouter.toml selecting its exact candidate model; the repository's blank-model example deliberately selects none. Keep the active config out of main and use OPENROUTER_API_KEY as its provider env_key, the only wired provider execution credential. The shared .github/workflows/agent-evals.yml retains Codex 0.154.0/prompt-json and execution-only OpenRouter auth; other triggers retain Luna/low/schema. The old DeepSeek label no longer starts a run. The dedicated canary workflow is removed. Each trial exports all three scenarios into one PR experiment with actual model/report-format metadata and linked main Luna baseline. Configuration support does not prove compatibility or quality of an untried model. Account for every cell and verify actual linked base/stable inputs; a single preset comparison is not a quality or consistency score. The following DeepSeek runs remain historical measured evidence.

The full comparison is live-proven by pr-401-r35099796991-a1 (ID a6313674-e0cd-45b0-8d5b-037d885f1876): exactly 50 eval roots and 495 tool children. Its persisted base is 13590571-39c1-4a33-831d-db144fb1fc7a (main-r35085880981-a1), with all 50 stable inputs matching. DeepSeek validates 48 reports versus main Luna's 50, takes 2950.371 versus 787.752 cumulative seconds, and uses 495 versus 205 MCP calls. Two malformed JSON finals cause the summary to fail while complete failed-cell export succeeds; neither timed out. Do not repair their finals or confuse successful export with successful cells. See the permanent comparison for scenario metrics, failed cells, source-path differences and interpretation.

The OpenRouter DeepSeek two-workload canary is proven by run 35093150512 on draft PR #401 at SHA e3fe68c40b80ac74d0c9fa59b0009b28c0841660. Experiment pr-401-r35093150512-a1 (ID cf6ec867-e67a-4adb-86bf-ace617b30dc0) read back two eval spans and 25 tool children, matching 25 completed MCP calls (package 5, router 20), zero failed calls and validated JSON finals. Metadata is DeepSeek/high/prompt-json, channel PR, exporter/schema 3. Actual base is main-r35085880981-a1 (ID 13590571-39c1-4a33-831d-db144fb1fc7a), sampled as Luna/low. This verifies PR linkage and integration. Cost remains unknown without a verified DeepSeek rate card; quality is ungraded and a single canary does not prove repeat consistency.

For current comparisons, inspect experiment-level metadata.channel and baseExperiment in the safe exporter result or CI summary. A current main baseline has a main-r...-a... name and channel: main; PR and local exports resolve the newest such main experiment before initialization. The exporter reports the actual linked base {id, name} after fetchBaseExperiment(). Validate-only reports the base as unresolved/not queried and performs no discovery. The first main run is a one-time bootstrap; PR and default-local exports fail before initialization when no main baseline exists. Explicit local --base-experiment takes precedence and skips discovery. Live readback has proven the first main bootstrap and the PR linkage recorded below. For exports, use the returned experiment name from the SDK readback; it can differ from a reused explicit local name if Braintrust de-duplicates it. Validate-only reports the requested or generated name.

The exercised comparison syntax is:

bt experiments --json --project githits-cli-agent-evals compare <experiment-a> <experiment-b>

For custom cross-experiment SQL analysis, join eval rows by metadata.cellId and verify identical stable input values (including promptSha256), rather than joining only by metadata.workloadId: the same workload can appear in multiple scenarios. Braintrust's built-in experiment comparison already matches the stable row inputs and avoids this ambiguity.

The prior custom-only experiments succeeded but reported only generic Braintrust trace metrics, which were zero and did not expose their custom eval telemetry. Treat that only as historical evidence about the older rows. The preceding native-root experiment is also historical: it set root tool_calls=119 and tool_errors=2, so comparison reported zero before structural children were implemented. Use bounded SQL and the experiment UI for GitHits-specific/custom telemetry; the current exporter uses exact harness-observed lifecycle boundaries and never fabricates timing.

Validate or explicitly export

Credential-free validation maps complete suite artifacts without initializing Braintrust:

bun run agent:e2e:braintrust \
  --suite discovery=.agent-eval/suites/<discovery>/suite.json \
  --suite intent=.agent-eval/suites/<intent>/suite.json \
  --project githits-cli-agent-evals \
  --validate-only

An authenticated local subscription export uses the saved bt profile to run the same official entrypoint. The exporter, not bt, owns the experiment options and safe result file:

bt eval --runner bun --no-auto-instrumentation scripts/agent-eval-braintrust.ts -- \
  --suite discovery=.agent-eval/suites/<discovery>/suite.json \
  --suite intent=.agent-eval/suites/<intent>/suite.json \
  --project githits-cli-agent-evals \
  --source local \
  --result-out .agent-eval/braintrust-result.json

This default local export lets the exporter derive its stable name and resolve the latest main baseline. Add --branch <branch> only when the evaluated suite is detached or has no branch; add --base-experiment <main-r...-a...> to use an explicit local main override. --experiment <name> is also a local-only override. GitHub workflow exports supply their channel, branch, PR number, run identity, and URL through environment-bound arguments and never pass --experiment.

The suite preflight rejects dry-run suites, suites with no workload cells, duplicate cells, mixed identity or schema contracts, and missing/unsafe child evidence before network setup. It does not reject a failed cell that retains complete report, metrics, workload, and contained prompt evidence. The result file is nonsecret and uses result-file schemaVersion: 2; it contains only mode, project, experiment, row count, suite summaries, an export URL when applicable, and baseExperiment. In validate-only mode baseExperiment: null means unresolved/not queried; in export mode null means the required Braintrust readback returned no actual linked base. Experiment metadata records exporter schema/version 3, including model, reasoning effort and Codex report format identity. Historical exporter/schema-2 experiments retain their recorded version. It never contains row bodies, prompts, answers, artifact paths, or credentials. Terminal tool-bearing rows lacking complete/valid observed lifecycle timing are rejected because they cannot produce accurate structural children; an observed started-only call remains an open child. Zero-tool legacy rows remain exportable. Do not create or upload a new experiment unless the user explicitly requests that export.

Version history

  1. mcp-v0.41.0 GitHub ↗
    Original release notes

    <!-- Release notes generated using configuration in .github/release.yml at mcp-v0.41.0 --> ## What's Changed ### Features * feat: expose native package lifecycle evidence in CLI and MCP inspection by @jlitola in https://github.com/githits-com/githits-cli/pull/555 * feat: unify package vulnerability findings and Related matches by @jlitola in https://github.com/githits-com/githits-cli/pull/558 ### Bug Fixes * Preserve literal file paths across CLI and MCP reads by @jlitola in https://github.com/githits-com/githits-cli/pull/561 * fix: show search provenance once without category breakdowns by @jlitola in https://github.com/githits-com/githits-cli/pull/562 * Preserve repository provider rate limits in CLI and MCP by @jlitola in https://github.com/githits-com/githits-cli/pull/560 * fix: classify pending search sources as preparation by @jlitola in https://github.com/githits-com/githits-cli/pull/563 * fix: retain source refusal guidance in partial grep output by @jlitola in https://github.com/githits-com/githits-cli/pull/566 * Fix agent recovery for source navigation by @jlitola in https://github.com/githits-com/githits-cli/pull/564 * Clarify when changelog analysis is still running by @jlitola in https://github.com/githits-com/githits-cli/pull/571 ### Documentation * docs: clarify typed package exact and prefix reads by @jlitola in https://github.com/githits-com/githits-cli/pull/565 ### Maintenance * chore(security): bump Node to patched release (Nov 2026 security release) by @jlitola in https://github.com/githits-com/githits-cli/pull/557 * Remove deprecated upgrade review keyword heuristics by @jlitola in https://github.com/githits-com/githits-cli/pull/556 * chore: release githits and MCP 0.41.0 by @jlitola in https://github.com/githits-com/githits-cli/pull/572 ### Other Changes * fix(read): preserve exact file paths across CLI and MCP by @RachitSrivastava12 in https://github.com/githits-com/githits-cli/pull/559 ## New Contributors * @RachitSrivastava12 made their first contribution in https://github.com/githits-com/githits-cli/pull/559 **Full Changelog**: https://github.com/githits-com/githits-cli/compare/mcp-v0.40.2...mcp-v0.41.0

  2. v0.41.0 GitHub ↗
    Original release notes

    <!-- Release notes generated using configuration in .github/release.yml at v0.41.0 --> ## What's Changed ### Features * feat: expose native package lifecycle evidence in CLI and MCP inspection by @jlitola in https://github.com/githits-com/githits-cli/pull/555 * feat: unify package vulnerability findings and Related matches by @jlitola in https://github.com/githits-com/githits-cli/pull/558 ### Bug Fixes * Preserve literal file paths across CLI and MCP reads by @jlitola in https://github.com/githits-com/githits-cli/pull/561 * fix: show search provenance once without category breakdowns by @jlitola in https://github.com/githits-com/githits-cli/pull/562 * Preserve repository provider rate limits in CLI and MCP by @jlitola in https://github.com/githits-com/githits-cli/pull/560 * fix: classify pending search sources as preparation by @jlitola in https://github.com/githits-com/githits-cli/pull/563 * fix: retain source refusal guidance in partial grep output by @jlitola in https://github.com/githits-com/githits-cli/pull/566 * Fix agent recovery for source navigation by @jlitola in https://github.com/githits-com/githits-cli/pull/564 * Clarify when changelog analysis is still running by @jlitola in https://github.com/githits-com/githits-cli/pull/571 ### Documentation * docs: clarify typed package exact and prefix reads by @jlitola in https://github.com/githits-com/githits-cli/pull/565 ### Maintenance * chore(security): bump Node to patched release (Nov 2026 security release) by @jlitola in https://github.com/githits-com/githits-cli/pull/557 * Remove deprecated upgrade review keyword heuristics by @jlitola in https://github.com/githits-com/githits-cli/pull/556 * chore: release githits and MCP 0.41.0 by @jlitola in https://github.com/githits-com/githits-cli/pull/572 ### Other Changes * fix(read): preserve exact file paths across CLI and MCP by @RachitSrivastava12 in https://github.com/githits-com/githits-cli/pull/559 ## New Contributors * @RachitSrivastava12 made their first contribution in https://github.com/githits-com/githits-cli/pull/559 **Full Changelog**: https://github.com/githits-com/githits-cli/compare/v0.40.3...v0.41.0

  3. mcp-v0.40.2 GitHub ↗
    Original release notes

    <!-- Release notes generated using configuration in .github/release.yml at mcp-v0.40.2 --> ## What's Changed ### Maintenance * refactor: delegate token refresh without inspecting API-key prefixes by @skvark in https://github.com/githits-com/githits-cli/pull/553 * chore: release githits 0.40.3 and MCP 0.40.2 by @skvark in https://github.com/githits-com/githits-cli/pull/554 **Full Changelog**: https://github.com/githits-com/githits-cli/compare/mcp-v0.40.1...mcp-v0.40.2

  4. v0.40.3 GitHub ↗
    Original release notes

    <!-- Release notes generated using configuration in .github/release.yml at v0.40.3 --> ## What's Changed ### Maintenance * refactor: delegate token refresh without inspecting API-key prefixes by @skvark in https://github.com/githits-com/githits-cli/pull/553 * chore: release githits 0.40.3 and MCP 0.40.2 by @skvark in https://github.com/githits-com/githits-cli/pull/554 **Full Changelog**: https://github.com/githits-com/githits-cli/compare/v0.40.2...v0.40.3

  5. mcp-v0.40.1 GitHub ↗
    Original release notes

    <!-- Release notes generated using configuration in .github/release.yml at mcp-v0.40.1 --> ## What's Changed ### Maintenance * ci: remove release-time Mintlify changelog trigger by @jlitola in https://github.com/githits-com/githits-cli/pull/550 ### Other Changes * fix: patch undici to 7.30.2 for cache, redirect, and SRI CVEs by @jlitola in https://github.com/githits-com/githits-cli/pull/551 * fix: preserve static auth for new GitHits key prefixes by @skvark in https://github.com/githits-com/githits-cli/pull/549 **Full Changelog**: https://github.com/githits-com/githits-cli/compare/v0.40.1...mcp-v0.40.1

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 提供了对 GitHits agent-eval 历史记录的全面管理功能,包括检查、查询、比较和导出,直接解决了用户在 Braintrust 平台中管理和分析 agent-eval 实验的核心任务痛点。
  • 具有明确的实用价值和广泛的应用场景,适用于需要监控和评估 agent 性能的团队。
Trigger Precision95/100

Highlights

  • 触发词精准完整,覆盖多种变体,边界清晰,description 明确指出了 Skill 的功能和使用场景。
  • 包含了具体的 Braintrust 项目和实验名称,触发条件非常清晰,减少了误触和漏触的风险。
Structure and Standards90/100

Highlights

  • 文档结构清晰,分为多个逻辑部分,每个部分都有详细的步骤和示例,便于用户理解和执行。
  • frontmatter 完整,文档长度适中,符合规范要求。
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖了主要的异常情况,确保执行过程的可靠性。
  • 不可逆操作有确认机制,避免了误操作导致的数据丢失或损坏。
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • www.braintrust.dev

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.