TrajBias — AI skill for Claude Code
TrajBias: Structural Biases in LLM-as-Judge Evaluation of Agent Trajectories.
How to install TrajBias
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open he-yufeng/TrajBias and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What TrajBias does
TrajBias: Structural Biases in LLM-as-Judge Evaluation of Agent Trajectories.
Alternatives in AI
- Welcome — AI Research Skills — You now have access to 86 production-ready skills covering the entire AI research lifecycle: literature survey 5.4k ★
- Memtrace Public — Structural memory for AI coding agents 466 ★
- Octocode — Structural code intelligence for AI agents — semantic search, knowledge graphs, and a built-in MCP server in o 464 ★
README
TrajBias: Structural Biases in LLM-as-Judge Evaluation of Agent Trajectories
This repository contains the code and data for the paper:
**TrajBias: Structural Biases in LLM-as-Judge Evaluation of Agent Trajectories** Yufeng He, The University of Hong Kong
Key Findings
Through controlled perturbation experiments with 7 judge models from 7 families on coding agent trajectories, we discover:
- Error Recovery Penalty (strongest): Trajectories with error recovery are systematically penalized (Cliff's delta up to 0.85, all p<0.001)
- Recency Bias: Later errors receive harsher penalties than identical errors earlier
- Bidirectional Outcome Bias: Outcome information contaminates process judgments in both directions, but opposing effects cancel in aggregate -- a methodological pitfall
- Absent Length Bias: Trajectory length does not influence scores, contradicting text-domain verbosity bias
- Multidimensional Bias Robustness: No single judge is universally least biased
Dataset
Available on HuggingFace: [yufenghe/trajbias-benchmark](https://huggingface.co/datasets/yufenghe/trajbias-benchmark)
Contains:
- 2,400 controlled perturbation probe pairs (5 bias types)
- 20,000+ evaluation scores from 7 judge models
- Complete statistical analysis results
- Croissant metadata
Repository Structure
scripts/
bias_probes.py # Generate perturbation probe pairs
run_w3_full_eval.py # Run LLM judge evaluations
statistical_analysis_v2.py # Statistical analysis (Cliff's delta, BH FDR)
generate_figures.py # Generate paper figures
debiasing_experiments.py # Debiasing strategy experiments
prepare_hf_dataset.py # Prepare HuggingFace dataset
Requirements
pip install numpy scipy matplotlib
Judge Models Tested
| Judge | Family |
|---|---|
| Claude Sonnet 4.5 | Anthropic |
| GPT-5.2 | OpenAI |
| Gemini 3 Pro | |
| DeepSeek V3.2 | DeepSeek |
| Qwen3-235B | Ali |
Related Skills
Agent Eval Workbench
MLflow-based evaluation kit for AI agents: golden-task runner, calibrated LLM judge, list-price cost accountin
Agent Arena
Open-source evaluation framework for LLM agents. Run head-to-head A/B tests, score with LLM-as-judge rubrics,
Review Forecast
Review a forecasting or time-series model — horizon, rolling-origin evaluation, seasonality, structural breaks
Systems Thinking
A cognitive base that shifts AI agent reasoning from linear cause-effect chains to feedback-driven structural
Harness Diagnostic
System-level lint for multi-agent harnesses. Catches the 21 structural traps single-file linters miss — includ
Basanite
Vocabulary-tic detector for Claude Code output — frequency drift over your own transcripts, WordNet specificit
Related Agents
Autoresearch LLM Evaluator
Semantically judge AutoResearch task trajectories and produce structured failure-mode analysis.
Askit Quality Grader
Judges whether a skill triggers and behaves correctly by running it against its eval-set and grading the outpu
LLM Evaluator
LLM evaluation specialist. Use when designing eval suites for LLM features, calibrating LLM-as-judge prompts,