Elixir Tops 20 Languages: 97.5% AI Code Completion Rate

In Tencent's 2025 AutoCodeBench study, Elixir achieved the highest problem completion rate among 20 programming languages at 97.5% across 30+ AI models, significantly outperforming Python, which scored last at 63.3%.

The top 3

  1. AGENT.md's 'Night-and-Day' Impact on Elixir AI Quality: The Phoenix 1.8.0 release introduced `AGENT.md` files, which act as a specialized guide for AI agents, correcting common LLM mistakes and ensuring generated Elixir code aligns with project conventions. This file significantly improves AI-assisted development by providing explicit rules and context, leading to a 'night-and-day difference' in code quality and consistency.
  2. Elixir's Functional Core Fuels AI Code Comprehension: Elixir's functional programming paradigm, emphasizing immutability and pure functions, is a key reason for its high AI code completion rate. This design simplifies 'local reasoning' for Large Language Models (LLMs) by reducing side effects and making code more composable, declarative, and inspectable, in contrast to mutable, imperative languages that are harder for AI to reason about.
  3. Elixir Outperforms Python, Kotlin in AI Benchmarks: In the Tencent AutoCodeBench, Elixir's 97.5% problem completion rate significantly surpassed other languages. Notably, Python, despite having far more training data, ranked last at 63.3%. For individual models, Claude Opus 4 scored 80.3% on Elixir, outperforming C# (74.9%) and Kotlin (72.5%).

Sources

Open the full topic