# CodeAct

> CodeAct (Wang et al., arXiv:2402.01030, 2024-02-01) unified an agent's actions as executable Python and reported up to 20% higher success rate than JSON- or text-formatted action baselines, across an analysis of 17 LLMs.

Executable Code Actions Elicit Better LLM Agents

- **Tier:** Landmark
- **Category:** Tool use
- **First posted:** 2024-02-01
- **Latest revision:** 2024-06-07
- **Authors:** Xingyao Wang, Yangyi Chen, Lifan Yuan, Yizhe Zhang, Yunzhu Li, Hao Peng, Heng Ji
- **arXiv:** [2402.01030](https://arxiv.org/abs/2402.01030)

Replaces JSON or fixed-format action strings with executable Python, so an agent can compose tools and revise its own earlier actions.

## Why it matters

It is why "code as actions" has largely displaced fixed tool schemas in coding and data agents.
