Hugging Face improves hf CLI for AI coding agents

Hugging Face says it redesigned hf CLI to work better with coding agents such as Claude Code, Codex, and Cursor. hf CLI is the official terminal tool for using Hugging Face Hub. The post says hf CLI used fewer tokens than curl or the Python SDK on complex multi-step tasks. Hugging Face says it tested the setup with about 1,000 graded runs using Claude Code and Codex.

Key points

  • hf CLI is the official terminal tool for Hugging Face Hub.
  • Hugging Face says hf CLI can detect use by coding agents such as Claude Code, Codex, Cursor, and Gemini.
  • Agent output is designed to be complete, plain, and easier for machines to read.
  • The post says hf CLI used fewer tokens than curl or the Python SDK on complex multi-step tasks.
  • The hf-cli skill reduced tool calls by about 30% in the tests, according to the post.

Quick term guide

Hugging Face
An online place where AI models and datasets are shared.
coding agents
AI programs designed to autonomously perform tasks like writing or fixing code.
coding agent
An AI tool that writes or edits code from a person’s instructions.
Hugging Face Hub
A website where people share and manage AI models, datasets, and demo apps.
AI coding tools
Programs like Claude, Cursor, or ChatGPT that write code for you when you describe what you want in plain language.
AI coding tool
Software that uses AI to help write, edit, or explain code.
read-only
A mode where software can view information but cannot change it.
tool calls
Times when an AI system uses another function, such as search or file access.
Read original