MCPcopy Index your code
hub / github.com/AbanteAI/LoCoDiff-bench

github.com/AbanteAI/LoCoDiff-bench @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
84 symbols 260 edges 5 files 76 documented · 90%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

LoCoDiff: Natural Long Context Code Bench

LoCoDiff is a novel long-context benchmark for evaluating language models' ability to understand git history and reconstruct code. Developed by the Mentat AI team, this benchmark offers several unique strengths:

  • Utilizes naturally interconnected content, not artificially generated or padded context
  • No junk context: every part of the context is required for the task
  • Tests a real skill critical for coding agents: keeping track of the state of edited files
  • Prompt generation and output evaluation are simple and easy to understand
  • Challenges models' capacity to generate long-form outputs
  • Surprisingly difficult for reasoning models to reason about
  • Easy to procedurally generate: any file in any git repo can be made into a benchmark case

To see results, methodology, and analysis:

👉 Explore the Interactive Benchmark Dashboard!

For instructions on running the benchmark yourself, see the benchmark pipeline README.

Core symbols most depended-on inside this repo

run_command
called by 17
benchmark_pipeline/generate_example_prompt.py
format_boundary
called by 9
benchmark_pipeline/1_generate_prompts.py
print_stats_summary
called by 4
benchmark_pipeline/1_generate_prompts.py
count_tokens
called by 3
benchmark_pipeline/1_generate_prompts.py
run_git_command
called by 3
benchmark_pipeline/1_generate_prompts.py
_save_text_file
called by 3
benchmark_pipeline/2_run_benchmark.py
find_top_performers
called by 3
benchmark_pipeline/3_generate_pages.py
format_cell_with_rank
called by 3
benchmark_pipeline/3_generate_pages.py

Shape

Function 81
Class 3

Languages

Python100%

Modules by API surface

benchmark_pipeline/3_generate_pages.py38 symbols
benchmark_pipeline/1_generate_prompts.py28 symbols
benchmark_pipeline/2_run_benchmark.py10 symbols
benchmark_pipeline/update_costs_openai_pass_through.py4 symbols
benchmark_pipeline/generate_example_prompt.py4 symbols

For agents

$ claude mcp add LoCoDiff-bench \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact