{"id":50133223,"url":"https://github.com/huggingface/hf-agents","last_synced_at":"2026-05-26T19:00:48.840Z","repository":{"id":345091439,"uuid":"1183199321","full_name":"huggingface/hf-agents","owner":"huggingface","description":"HF CLI extension to run local coding agent powered by llmfit and llama.cpp","archived":false,"fork":false,"pushed_at":"2026-03-25T12:53:54.000Z","size":75,"stargazers_count":374,"open_issues_count":4,"forks_count":27,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-04-07T19:41:46.267Z","etag":null,"topics":["hf-extension"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huggingface.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-16T11:21:49.000Z","updated_at":"2026-04-06T22:16:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/huggingface/hf-agents","commit_stats":null,"previous_names":["huggingface/hf-agents"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/huggingface/hf-agents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Fhf-agents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Fhf-agents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Fhf-agents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Fhf-agents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huggingface","download_url":"https://codeload.github.com/huggingface/hf-agents/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Fhf-agents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33534563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hf-extension"],"created_at":"2026-05-23T21:00:29.586Z","updated_at":"2026-05-26T19:00:48.810Z","avatar_url":"https://github.com/huggingface.png","language":"Shell","funding_links":[],"categories":["Articles","Shell"],"sub_categories":[],"readme":"# hf-agents : `hf` CLI extension to detect the best model/quant for a user's hardware and then spins up a local coding agent\n\nhf-agents is a HF CLI extension that uses [llmfit](https://github.com/AlexsJones/llmfit) to detect the user's hardware and recommend models they can actually run, then spins up a local [llama.cpp](https://github.com/ggml-org/llama.cpp) server with the most suited model and launches a coding agent with [Pi](https://github.com/badlogic/pi-mono).\n\nGo from \"what can my machine run?\" to \"running a local coding agent\" in one command.\n\n## Requirements \u0026 References\n- How to create a HF CLI extension guide: https://huggingface.co/docs/huggingface_hub/en/guides/cli-extensions\n- [llmfit](https://github.com/AlexsJones/llmfit) : hardware detection \u0026 model recommendations\n- [llama.cpp](https://github.com/ggml-org/llama.cpp) : `llama-server` for local inference\n- [Pi](https://github.com/badlogic/pi-mono) : coding agent\n- `jq`, `fzf`, `curl`\n\n## Installation\n\n```bash\ncurl -LsSf https://hf.co/cli/install.sh | bash\nhf extensions install hf-agents\n```\n\n## Usage\n\n### Hardware detection \u0026 model recommendations\n\nPasses through to `llmfit` — all llmfit subcommands work:\n\n```bash\nhf agents fit recommend -n 5      # top 5 models for your hardware\nhf agents fit system              # show detected hardware\nhf agents fit search \"qwen\"       # search models\nhf agents fit recommend --use-case coding --min-fit good\n```\n\n### Run a local coding agent\n\nDetects your hardware, lets you pick a model, starts llama-server, and launches Pi:\n\n```bash\nhf agents run pi                  # interactive model selection + coding agent\nhf agents run pi --print \"hello\"  # non-interactive mode, forward args to Pi\n```\n\nIf llama-server is already running on the target port, it reuses it and skips model selection.\n\n## Environment Variables\n\n| Variable | Default | Purpose |\n|----------|---------|---------|\n| `LLAMA_SERVER_PORT` | `8080` | Port for llama-server |\n| `HF_TOKEN` | *(from `hf` CLI)* | For downloading gated models |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuggingface%2Fhf-agents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuggingface%2Fhf-agents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuggingface%2Fhf-agents/lists"}