# Hugging Face — CodeAgents + Structure: A Better Way to Execute Actions

- Company: Hugging Face (huggingface.co)
- Announced: 2025-05-28T00:00:00+00:00
- Category: research-paper
- Subject: Platform
- Models affected: OpenAI models, Claude models, Claude 3.7 Sonnet, Qwen models
- Source: https://huggingface.co/blog/structured-codeagent
- Record: https://forck.live/items/1687-codeagents-structure-a-better-way-to-execute-actions

Hugging Face shares research showing that forcing CodeAgents to generate both thoughts and code in a structured JSON format significantly outperforms traditional approaches across multiple benchmarks including GAIA, MATH, SimpleQA, and Frames.

## Evidence

Verbatim from https://huggingface.co/blog/structured-codeagent:

> Today we're sharing research that bridges two powerful paradigms in AI agent design: the expressiveness of code-based actions and the reliability of structured generation. Our findings show that forcing CodeAgents to generate both thoughts and code in a structured JSON format can significantly outperform traditional approaches across multiple benchmarks.

---

Record: https://forck.live/items/1687-codeagents-structure-a-better-way-to-execute-actions
Catalogue: https://forck.live/llms.txt
Feed: https://forck.live/feed.md
