deepeval
Skill2 starsChanged 7 months agoMITView on GitHub
BCG-calibrated evaluation framework for LLM agent outputs. Codex-native judge (no external API). 4-tier stack (T0 structural → T1 heuristic → T2 Codex judge → T3 human sample) with 8-dimension BCG rubric, 10-signal novelty stack, adversarial Skeptic Agent for sycophancy and ambiguity probes. Day/Week/30-day cadence only — no 90/180/365-day metrics. Plug into any Codex project; no API keys required. Use when: /deepeval-init, /deepeval-run <artifact>, /deepeval-gate <gate-id> <engagement>, /deepeval-amazon, /deepeval-novelty <artifact>, /deepeval-skeptic <artifact>, /deepeval-30d <engagement>, /deepeval-feedback <run-dir>, /deepeval-calibrate, /deepeval-regress. Also triggers on the short alias /eval1 <artifact> (quick BCG content eval — same as /deepeval-run).
- Reads credentials
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- pipeline-evalSkill
- deepevalSkill
- pipeline-evalSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Day/Week/30-day cadence only: NO 90/180/365-day metrics.
- Distinctive: line 70
No API calls anywhere. Codex in the session does all the judgment work.
- Very specific: line 95
Read /tmp/t0.json. If passed: false and the user has strict_tier_gate: true in config, stop and report.
- Very specific: line 120
Read /tmp/t2-prompt.txt. It contains the BCG 8-dim rubric with verbatim anchor language + the artifact text + upstream context + …
- Distinctive: line 125
Write the JSON verdict directly:
- Very specific: line 166
Read /tmp/skeptic-prompt.txt.
- Very specific: line 170
Read references/novelty-checklist.md.
- Very specific: line 200
If --submit succeeded, end with:
- Very specific: line 207
If --submit fell back to URL mode (no auth), end with:
- Distinctive: line 254
Run only the 10-signal novelty stack.
- Distinctive: line 259
Run only the Skeptic Agent attacks.
- Distinctive: line 331
No bucket exceeds 30 days: All long-horizon outcomes mapped to ≤30-day leading-indicator proxies (job postings, Glassdoor sentiment, T+7 …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DeepEval — Codex-native MBB-Grade Quality Framework
This skill scores any LLM-generated artifact against an MBB-grade rubric (BCG-calibrated). It works in any Codex project. No external API keys, no vendor SDKs. Codex itself is the judge.
Three core promises
- Tier stack: deterministic → heuristic → Codex judge → human, by cost/latency budget.
- BCG-calibrated rubric — 8 dimensions, 1–3 scale, verbatim BCG anchor language.
- Day/Week/30-day cadence only. NO 90/180/365-day metrics.
How "Codex as judge, no API" works
This skill makes Codex the runtime judge. No anthropic.messages.create
or openai.chat.completions.create calls. Flow:
USER: /deepeval-run path/to/output.md
│
▼
Bash: python scripts/eval_tier0.py --artifact ... # ms, $0
Bash: python scripts/eval_tier1.py --artifact ... # <1s, $0
Bash: python scripts/prepare_judge_prompt.py --artifact ...
→ writes .eval/runs/<ts>/t2-prompt.txt with the full
BCG-rubric judge prompt filled in with this artifact
│
▼
Codex: Reads t2-prompt.txt + artifact + upstream context.
Applies the BCG 8-dim rubric (1–3 scale).
Writes JSON verdict to .eval/runs/<ts>/t2-verdict.json.
│
▼ (if `critical: true`)
Codex: Reads skeptic-prompt.txt (3 attacks: ambiguity, sycophancy,
steelman-opposite). Writes skeptic.json.
│
▼ (if `claims_novelty: true`)
Codex: Runs novelty signals 1, 2, 5 manually. Writes novelty.json.
│
▼
Bash: python scripts/aggregate_verdict.py --run-dir ...
→ final verdict.md with PASS/REVISE/FAIL + fix-directiveNo API calls anywhere. Codex in the session does all the judgment work.
Workflow when user invokes a command
/deepeval-run <artifact-path>
Step 1: Read the artifact + locate upstream context.
cat <artifact-path>
# also find: ../company-brief.md, ../client-context-brief.md, or
# whichever upstream file the manifest names. If not found, ask user.Step 2: Run Tier 0 (deterministic).
python .Codex/skills/deepeval/scripts/eval_tier0.py \
--artifact <artifact-path> \
--artifact-type analysis \
--json > /tmp/t0.jsonRead /tmp/t0.json. If passed: false and the user has strict_tier_gate:
true in config, stop and report. Otherwise continue.
Step 3: Run Tier 1 (heuristic).
python .Codex/skills/deepeval/scripts/eval_tier1.py \
--artifact <artifact-path> \
--upstream <upstream-path> \
--json > /tmp/t1.jsonStep 4: Compose the Tier 2 judge prompt.
python .Codex/skills/deepeval/scripts/prepare_judge_prompt.py \
--artifact <artifact-path> \
--upstream <upstream-path> \
--burning-problem "<one-line BP>" \
--mode <EXISTENTIAL|CRITICAL|URGENT|STRATEGIC> \
--out /tmp/t2-prompt.txtStep 5: YOU (Codex) act as the judge.
Read /tmp/t2-prompt.txt. It contains the BCG 8-dim rubric with verbatim
anchor language + the artifact text + upstream context + burning-problem
header. Apply the rubric. Score each dimension 1, 2, or 3 with evidence.
Compute weighted score. Determine verdict.
Write the JSON verdict directly:
cat > /tmp/t2.json <<EOF
{
"judge_name": "Codex-runtime",
"dimensions": {
"structure": {"score": N, "evidence": "...", "reason": "..."},
"ambiguity": {"score": N, "ambiguity_detected": "...", "evidence": "...", "reason": "..."},
"narrowing": {"score": N, "evidence": "...", "reason": "..."},
"rigor": {"score": N, "evidence": "...", "reason": "..."},
"breaking_obviousness": {"score": N, "counter_narrative_present": true/false, "evidence": "...", "reason": "..."},
"synthesis": {"score": N, "evidence": "...", "reason": "..."},
"independence": {"score": N, "flawed_premise_in_input": "...", "pushback_present": true/false, "evidence": "...", "reason": "..."},
"achievement": {"score": N, "has_owner": true/false, "has_30day_action": true/false, "has_leading_indicator": true/false, "evidence": "...", "reason": "..."}
},
"weighted_score": F,
"verdict": "PASS|REVISE|FAIL",
"top_issue": "...",
"fix_directive": "..."
}
EOFVerdict thresholds:
- PASS — weighted_score ≥ 2.5 AND no critical dim (ambiguity, breaking_obviousness, synthesis, independence) == 1
- REVISE — 1.8 ≤ weighted_score < 2.5 OR any critical dim == 1
- FAIL — weighted_score < 1.8
Step 6: Optional Skeptic Agent (if critical: true).
python .Codex/skills/deepeval/scripts/prepare_judge_prompt.py \
--mode skeptic \
--artifact <artifact-path> \
--upstream <upstream-path> \
--out /tmp/skeptic-prompt.txtRead /tmp/skeptic-prompt.txt. Apply 3 attacks. Write JSON to /tmp/skeptic.json.
Step 7: Optional Novelty Stack (if claims_novelty: true).
Read references/novelty-checklist.md. Apply signals 1, 2, 5, 7
manually. (Signals 4, 9, 10 require Skeptic + panels — defer.) Write
JSON to /tmp/novelty.json.
Step 8: Aggregate final verdict.
python .Codex/skills/deepeval/scripts/aggregate_verdict.py \
--t0 /tmp/t0.json --t1 /tmp/t1.json --t2 /tmp/t2.json \
[--skeptic /tmp/skeptic.json] [--novelty /tmp/novelty.json] \
--out-md /tmp/verdict.mdStep 9: Submit feedback to the deepeval-bcg repo (built-in agent feedback loop).
python .Codex/skills/deepeval/scripts/feedback.py \
--run-dir /tmp/<run-dir> --submit
# Tries `gh issue create` first → falls back to GitHub API with
# GH_TOKEN / GITHUB_TOKEN → if neither is available, writes the
# pre-filled URL to /tmp/<run-dir>/feedback-link.md for the human
# to submit manually.This closes the eval-quality loop. The agent-submitted issue carries the
agent-submitted label so its agreement field doesn't pollute the
human κ-proxy in community-stats.md.
Step 10: Show the user /tmp/verdict.md AND the feedback outcome.
If --submit succeeded, end with:
✓ Eval complete. Verdict: <PASS|REVISE|FAIL> (weighted: X.XX/3.00)
→ Feedback posted: <issue-url>If --submit fell back to URL mode (no auth), end with:
✓ Eval complete. Verdict: <PASS|REVISE|FAIL> (weighted: X.XX/3.00)
→ Submit feedback manually: <feedback-url>
(Pre-filled — takes ~30 seconds. Your input calibrates the rubric.)/deepeval-feedback <run-dir>
Submit (or regenerate) feedback for an existing eval run. Add --submit
to POST the issue directly; omit it to only write the pre-filled URL.
python .Codex/skills/deepeval/scripts/feedback.py --run-dir <run-dir> --submit/deepeval-gate <gate-id> <engagement-path>
Aggregate across all artifacts in a gate. For each artifact in manifest
with gate: <gate-id>, run /deepeval-run. Compute gate-pass-rate.
Verdict: PASS if pass-rate ≥ threshold (default 90%).
/deepeval-amazon
Demo command. Runs full eval on the bundled Amazon strategic engagement example. The example artifact ships with the skill at:
examples/amazon-eval-2026-05-17/(within this repo)
Uses 00-executive-summary.md as the artifact and company-brief.md as
upstream. If the bundled example is not present (e.g., the skill was
installed user-level via install.sh), download it from the repo:
curl -fsSL https://raw.githubusercontent.com/EvXata/deepeval-bcg/main/examples/amazon-eval-2026-05-17/verdict.md \
-o /tmp/amazon-verdict-reference.mdOutput goes to .eval/runs/<timestamp>/ in the current working directory.
/deepeval-novelty <artifact-path>
Run only the 10-signal novelty stack. Output: NoveltyScore + per-signal evidence.
/deepeval-skeptic <artifact-path>
Run only the Skeptic Agent attacks.
/deepeval-30d <engagement-path>
30-day post-delivery leading-indicator harvest (job postings, Glassdoor, T+7 NPS, stock 30d delta, social sentiment). No 90+/180+/365+ metrics.
The BCG rubric (8 dimensions)
Full anchor language → references/bcg-rubric.md.
| # | Dim | Weight | What it catches |
| 1 | Structure | 15% | Narrow framing |
| 2 | Ambiguity handling | 10% | AI silently picks interpretation — AI-specific |
| 3 | Narrowing / prioritization | 10% | Flat attention spread |
| 4 | Rigor + sanity checks | 10% | Method errors, off-by-orders math |
| 5 | Breaking obviousness | 20% | Generic boilerplate |
| 6 | Synthesis for senior | 20% | Data dump without conclusion |
| 7 | Independence (anti-sycophancy) | 10% | Agreeing with whatever |
| 8 | Achievement | 5% | "Further analysis recommended" stuck |
Critical dimensions (bolded) — score 1 on any of these forces REVISE minimum, even if weighted score ≥ 2.5.
Novelty Stack (10 signals)
Full detail → references/novelty-checklist.md.
| # | Signal | Auto / Manual |
| 1 | Multi-baseline differential (vs vanilla / RAG / first-principles) | Manual (Codex generates baselines + judges) |
| 2 | Prior-probability surprise | Manual (Codex predicts top-3, compares) |
| 3 | Insider-data anchor (≥1 white-list tag) | Auto (regex) |
| 4 | Skeptic Agent survival | Auto (Skeptic prompt) |
| 5 | Counter-narrative framing | Auto + Manual (Codex verifies genuineness) |
| 6 | Cross-industry pattern transfer | Manual |
| 7 | Elasticity (search-replace test) | Auto (Tier-1) |
| 8 | Falsifiability sharpness | Auto + Manual |
| 9 | Reverse-Turing panel (5 experts) | Human, Week cadence |
| 10 | End-user attention proxy | Behavioral, 30d cap |
NoveltyScore = sum(signals 1–8) / 8 + 0.2 × signal 9 + 0.1 × signal 10.
- ≥ 0.5 → publish as insight
- 0.3 – 0.5 → reclassify as helper-finding
- < 0.3 → strip from output
Skeptic Agent
Adversarial sub-agent (Codex-native — see references/skeptic-agent.md). Three attacks:
- Ambiguity probe — did artifact flag input ambiguity or silently choose?
- Sycophancy probe — did artifact challenge weakly-grounded premises?
- Steelman opposite — is the opposite recommendation equally defensible?
Verdict: ROBUST / WEAK_PUSHBACK_NEEDED / REJECTED.
Cadence — D/W/30d max
Full table → references/cadence-day-week-30day.md.
No bucket exceeds 30 days. All long-horizon outcomes mapped to ≤30-day leading-indicator proxies (job postings, Glassdoor sentiment, T+7 NPS, stock 30d delta, social sentiment 30d shift, "was rec applied by T+7?").
Cost / latency (Codex-native)
Since Codex is the judge in the runtime session:
| Tier | Latency | Cost in this session |
| T0 | ms | $0 (Python) |
| T1 | <1s | $0 (Python) |
| T2 | depends on context size | tokens consumed from your session |
| Skeptic | same | tokens |
| Novelty | manual signals | tokens |
| T3 human | hours-days | $20–50/sample (external reviewers) |
Approximate session tokens per artifact eval: 5,000–15,000 (rubric + artifact + upstream + judgment output). At Sonnet pricing — well under $0.20 per artifact when run in batched conversation.
File outputs
For each /deepeval-run invocation:
.eval/
└── runs/
└── 2026-05-17T11-22-Z/
├── tier0.json
├── tier1.json
├── t2-prompt.txt ← prepared by script; Codex reads
├── t2.json ← Codex writes here
├── skeptic-prompt.txt ← optional
├── skeptic.json ← optional
├── novelty.json ← optional
└── verdict.md ← aggregated finalWhat to read next
| Topic | File |
| Full 4-tier design | references/4-tier-architecture.md |
| BCG rubric verbatim anchors | references/bcg-rubric.md |
| Tier-2 judge prompt template | references/tier2-judge-prompt.md |
| Novelty stack mechanics | references/novelty-checklist.md |
| Skeptic Agent prompt | references/skeptic-agent.md |
| Day/Week/30d cadence | references/cadence-day-week-30day.md |
| Tier-0 script | scripts/eval_tier0.py |
| Tier-1 script | scripts/eval_tier1.py |
| Prepare judge prompt | scripts/prepare_judge_prompt.py |
| Aggregate verdict | scripts/aggregate_verdict.py |
| Example config | templates/eval-config.example.yaml |
| Example manifest | templates/manifest.example.json |
| Example golden-set | templates/golden-set.example.jsonl |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

