BasedAGIBasedAGI

developer_tools

Best LLM for Documentation from Code

Ranked models for generating docstrings and technical docs that match code behavior.

This page is high-intent, but the current benchmark evidence for this use case is still limited. Treat the leader below as provisional.

Provisional leader

gpt-5-2025-08-07

Best current option from the available benchmark evidence, but not yet a strong winner claim.

external/openai/gpt-5-2025-08-07

24.9%

Score

29.6%

Confidence

29

Evidence

Ranked Models

30

Evidence Quality

80%

Evidence Points

29

Top Signal

Aider Polyglot Leaderboard: percent_correct_pct

All Ranked Models

30 of 30 models
RankModelScore
🥇gpt-5-2025-08-07

Strong on Aider Polyglot Leaderboard percent_correct_pct and SWE-bench Verified Leaderboard swe_verified_resolved_pct

24.9%
🥈claude-sonnet-4

Strong on Galileo Agent Leaderboard v2 Avg AC and SWE-bench Verified Leaderboard swe_verified_resolved_pct

22.3%
#4gemini-2.5-pro

Strong on SWE-bench Verified Leaderboard swe_verified_resolved_pct and LEXam Leaderboard average_score_pct

19.8%
#5gpt-4.1-20250414

Strong on Galileo Agent Leaderboard v2 Avg AC and OpenVLM OCRBench Official ocrbench_score_pct

18.8%
#7gpt-4o-2024-05-13

Strong on RepoQA Official Results overall_average_pass_at_1_pct and RepoQA Official Results all_average_pass_at_1_pct

18.1%
#8gpt-5-mini-2025-08-07

Strong on Vals LiveCodeBench overall_accuracy_pct and LEXam Leaderboard average_score_pct

18.1%
#9gemini-3-pro-preview

Strong on SWE-bench Verified Leaderboard swe_verified_resolved_pct and Vals SWE-bench overall_accuracy_pct

17.1%
#10deepseek-r1

Strong on Aider Polyglot Leaderboard percent_correct_pct and LEXam Leaderboard average_score_pct

16.4%
#11gpt-4.1

Strong on SWE-bench Verified Leaderboard swe_verified_resolved_pct and Aider Polyglot Leaderboard percent_correct_pct

15.7%
#13gpt-4o

Strong on LEXam Leaderboard average_score_pct and OpenVLM OCRBench Official ocrbench_score_pct

15.1%
#14gpt-4.1-mini-20250414

Strong on Galileo Agent Leaderboard v2 Avg AC and OpenVLM OCRBench Official ocrbench_score_pct

14.3%
#16gpt-5.2-2025-12-11

Strong on SWE-bench Verified Leaderboard swe_verified_resolved_pct and Vals SWE-bench overall_accuracy_pct

14.1%
#17o3-20250416

Strong on Aider Polyglot Leaderboard percent_correct_pct and SWE-bench Verified Leaderboard swe_verified_resolved_pct

13.8%
#18gemini-3.1-pro-preview

Strong on Vals SWE-bench overall_accuracy_pct and Vals LiveCodeBench overall_accuracy_pct

13.6%
#21gpt-4o-20241120

Strong on Aider Code Editing Leaderboard percent_correct_pct and BigCodeBench Official bigcodebench_complete_pct

13.2%
#22Kimi K2 Thinking

Strong on SWE-bench Verified Leaderboard swe_verified_resolved_pct and Sonar Java Quality Leaderboard functional_skill_pct

12.9%
#25qwen-2.5-72b-instruct

Strong on Galileo Agent Leaderboard v2 Avg AC and Aider Code Editing Leaderboard percent_correct_pct

12.4%
#28Grok-4-0709

Strong on Vals LiveCodeBench overall_accuracy_pct and Galileo Agent Leaderboard v2 Avg AC

12.0%
#30gemini-3-flash-preview

Strong on Vals SWE-bench overall_accuracy_pct and Vals LiveCodeBench overall_accuracy_pct

11.4%
#31claude-opus-4-5-20251101

Strong on SWE-bench Verified Leaderboard swe_verified_resolved_pct and Vals Terminal-Bench 2 overall_accuracy_pct

11.4%
#32gpt-5.4-2026-03-05

Strong on Vals SWE-bench overall_accuracy_pct and Vals LiveCodeBench overall_accuracy_pct

11.4%
#33claude-sonnet-4.6

Strong on Vals SWE-bench overall_accuracy_pct and Vals LiveCodeBench overall_accuracy_pct

11.1%
#34o4-mini

Strong on Aider Polyglot Leaderboard percent_correct_pct and Vals LiveCodeBench overall_accuracy_pct

11.1%
#35claude-opus-4-6-thinking

Strong on Vals SWE-bench overall_accuracy_pct and Vals LiveCodeBench overall_accuracy_pct

10.9%
#36glm-4.7

Strong on Vals LiveCodeBench overall_accuracy_pct and Vals SWE-bench overall_accuracy_pct

10.9%
#37minimax-m2.1

Strong on Vals SWE-bench overall_accuracy_pct and Vals LiveCodeBench overall_accuracy_pct

10.9%
#40claude-opus-4

Strong on SWE-bench Verified Leaderboard swe_verified_resolved_pct and Aider Polyglot Leaderboard percent_correct_pct

10.7%
#41gpt-5.1-2025-11-13

Strong on Vals LiveCodeBench overall_accuracy_pct and Vals SWE-bench overall_accuracy_pct

10.5%
#42claude-opus-4-5-20251101-thinking

Strong on Vals SWE-bench overall_accuracy_pct and Vals LiveCodeBench overall_accuracy_pct

10.5%
#44gemini-2.5-flash

Strong on LanguageBench Grammar/Clarity Official (Split) grammar_clarity_score_pct and Galileo Agent Leaderboard v2 Avg AC

9.9%

Head-to-Head: #1 vs #2

#1

Top Pick

gpt-5-2025-08-07

Strong on Aider Polyglot Leaderboard percent_correct_pct and SWE-bench Verified Leaderboard swe_verified_resolved_pct

24.9%

Conf 29.6%

#2

anthropic/claude-sonnet-4

Strong on Galileo Agent Leaderboard v2 Avg AC and SWE-bench Verified Leaderboard swe_verified_resolved_pct

22.3%

Conf 30.0%

Related Lookups