hf-agents  by huggingface

Local coding agent with hardware-aware LLM deployment

Created 1 week ago

New!

333 stars

Top 82.5% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

hf-agents is an extension for the Hugging Face CLI designed to simplify the setup and execution of local coding agents powered by large language models. It targets developers and power users seeking to leverage LLMs for code generation and assistance directly on their hardware, automating the often complex process of model selection, inference server setup, and agent integration. The primary benefit is enabling users to go from assessing their machine's capabilities to running a functional local coding agent with a single command.

How It Works

The tool orchestrates three key components. First, llmfit analyzes the user's hardware to recommend the most suitable LLM models and quantization levels that can be run efficiently. Second, it spins up a local inference server using llama.cpp, loading the chosen model. Finally, it launches Pi, a coding agent, which interfaces with the local llama.cpp server for LLM-powered coding assistance. This integrated approach abstracts away the intricacies of managing individual components.

Quick Start & Requirements

  • Installation: Install the HF CLI via curl -LsSf https://hf.co/cli/install.sh | bash, then install the extension with hf extensions install hf-agents.
  • Prerequisites: Requires jq, fzf, and curl to be installed on the system.
  • Environment Variables: LLAMA_SERVER_PORT (defaults to 8080) configures the inference server port. HF_TOKEN is used for accessing gated models.
  • Documentation: A guide for creating HF CLI extensions is referenced, but specific hf-agents documentation links are not provided.

Highlighted Details

  • Automated hardware-specific LLM recommendation via llmfit.
  • One-click deployment of a local llama.cpp inference server.
  • Direct integration with the Pi coding agent.
  • Streamlined workflow from hardware assessment to agent execution.

Maintenance & Community

The provided README does not contain specific details regarding maintainers, community channels (like Discord/Slack), or project roadmaps.

Licensing & Compatibility

The README does not explicitly state the software license. This lack of clarity presents a significant adoption blocker, particularly for commercial use or integration into proprietary systems.

Limitations & Caveats

The project's primary limitation is the absence of a declared software license, hindering clear understanding of usage rights. It also relies on the successful installation and configuration of external dependencies (jq, fzf, curl, llmfit, llama.cpp, Pi), which may introduce their own setup complexities or compatibility issues. The current implementation focuses solely on the Pi coding agent.

Health Check
Last Commit

5 days ago

Responsiveness

Inactive

Pull Requests (30d)
5
Issues (30d)
5
Star History
334 stars in the last 8 days

Explore Similar Projects

Starred by Yiran Wu Yiran Wu(Coauthor of AutoGen) and Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research).

PocketFlow by The-Pocket

0.4%
10k
Minimalist LLM framework for agentic coding
Created 1 year ago
Updated 2 weeks ago
Starred by Dan Abramov Dan Abramov(Core Contributor to React; Coauthor of Redux, Create React App), Thomas Dohmke Thomas Dohmke(Former CEO of GitHub), and
22 more.

pi-mono by badlogic

9.4%
27k
AI agent framework and LLM deployment tools
Created 7 months ago
Updated 20 hours ago
Starred by Dax Dax(Core Contributor to opencode, SST) and Adam Elmore Adam Elmore(Cofounder of StatMuse; Contributor to opencode).

oh-my-openagent by code-yeongyu

5.2%
43k
LLM agent orchestration for enhanced IDE workflows
Created 3 months ago
Updated 15 hours ago
Feedback? Help us improve.