hf-agents
One command reads your machine's RAM and GPU, picks a coding model that will actually fit, downloads it, serves it locally, and drops you into an agent. No cloud, no guesswork about what your hardware can run.
Running an open coding model on your own laptop has always had a hidden first question: which one will actually fit? Pick too big and it swaps to a crawl; pick too small and you waste the machine you have. Hugging Face's new CLI extension answers that question for you. Type `hf agents run pi` and it inspects your CPU, GPU, RAM and VRAM, scores the available models against them, downloads the best match, spins up a local server, and hands you an interactive coding agent — the whole 'set up a private, zero-cost coding assistant' errand collapsed into one line.
The load-bearing part isn't Hugging Face's: the fit-scoring is llmfit, an independent Rust project ranking 250-plus models on your hardware. hf-agents is thin glue behind HF's CLI. — hf-agents README
The trick worth noticing is that the load-bearing part isn't Hugging Face's. The fit-scoring comes from llmfit, an independent Rust project (29.3k stars) that ranks 250-plus models on how well they run on your specific hardware; the agent is Pi, another outside project; the inference server is llama.cpp. hf-agents is thin glue that wires the three together and puts them behind Hugging Face's CLI. The honest description is less 'HF launches local agents' than 'HF packages the open local-agent stack into one command' — and the genuinely useful bit is the fit-aware pick, recommending the model your machine can run rather than leaving you to guess.
It isn't the first one-liner to a local agent — Ollama already runs models with one command and now launches coding tools directly. What hf-agents adds is that recommendation step surfaced up front: `hf agents fit recommend` will tell you, before you commit, what your box can handle. For anyone who has abandoned a local model halfway through a download because it was never going to fit, that's the annoyance it removes.
Install the CLI (curl -LsSf https://hf.co/cli/install.sh | bash), then hf extensions install hf-agents; hf agents fit recommend -n 5 shows what your machine can run before you commit to a download.
Open the repo at github.com →The lenses
The facts
How this connects
Tap a node to open it