Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Hugging AgentNew to Visual Studio Code? Get it now.
Hugging Agent

Hugging Agent

qgallouedec

| (0) | Free
A coding agent for VS Code that runs on Hugging Face Inference Providers or any OpenAI-compatible server, and picks up your Claude Code setup and sessions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Hugging Agent

An agentic coding assistant for VS Code that runs on Hugging Face Inference Providers or any OpenAI-compatible server (vLLM, SGLang, llama.cpp, Ollama, OpenAI, ...).

It is built to be a drop-in switch from Claude Code: it reads the same instruction files, skills, memory and permission allowlists, and can resume your Claude Code sessions.

Hugging Agent fixing a bug: tool calls, an inline diff, an approval and the task list

Install

Search Hugging Agent in the Extensions view, or run:

code --install-extension qgallouedec.hugging-agent

GitHub releases also include a VSIX for manual installation. With Remote-SSH, install it in the remote VS Code server.

Then reload the window. Hugging Agent has its own icon in the activity bar: the Sessions list shows this workspace's Hugging Agent and Claude Code conversations, newest first. Click one to open it in an editor tab (or bring its tab forward), and New conversation at the top starts one in a new tab. Open tabs come back after a window reload.

Models

By default it talks to https://router.huggingface.co/v1. If you are logged in with hf auth login (or have HF_TOKEN set), nothing else is needed. Otherwise click Sign in to Hugging Face and paste a token with the "Make calls to Inference Providers" permission. The token is kept in VS Code's secret storage.

Click the model name in the header to pick a model. The list shows the router's models that support tool calling. When only some of a model's providers support tools, the model is pinned to the fastest one that does (model:provider).

For another server, set huggingAgent.baseUrl (e.g. http://localhost:8000/v1) and, if it needs one, run Hugging Agent: Set API Key (falls back to OPENAI_API_KEY). vLLM needs --enable-auto-tool-choice --tool-call-parser <parser> for tool calling.

What carries over from Claude Code

Read from
Instructions ~/.claude/CLAUDE.md, and AGENTS.md / CLAUDE.md / CLAUDE.local.md from / down to the workspace (symlinked duplicates included once)
Skills Built-in artifact skills, plus .claude/skills/, .agents/skills/, ~/.claude/skills/ (also invokable as /<skill-name>; your skills take precedence)
Memory ~/.claude/projects/<project>/memory/MEMORY.md, which the agent can also append to
Permissions permissions.allow / deny in ~/.claude/settings*.json and .claude/settings*.json, e.g. Bash(git fetch *), Read(//tmp/**). "Always allow" writes to .claude/settings.local.json like Claude Code does
Sessions The Sessions list (and ↺ in a chat) shows both Hugging Agent and Claude Code conversations for the workspace. Resuming a Claude Code session converts it (since its last compaction, rewound branches skipped, Claude Code's tool calls mapped to Hugging Agent's) and continues as a new Hugging Agent session; the Claude Code file is never modified
Shortcuts Ctrl/Cmd+Esc toggles focus between the chat and the code, Ctrl/Cmd+Shift+Esc new conversation, Alt+K insert an @-mention of the selection, Shift+Tab permission mode, Esc stop

While the Claude Code extension is enabled it keeps these shortcuts; Hugging Agent takes them over as soon as Claude Code is disabled (no reload needed). Until then, use the Hugging Agent icon or the Hugging Agent: commands.

Everything above is sent to the model server you configure, as it would be to Anthropic with Claude Code.

Features

  • Tools: read, edit (exact string replacement), write, glob, grep (ripgrep, respects .gitignore), bash, web fetch, todo list, skills, VS Code diagnostics, and visual artifacts.
  • Background commands: like Claude Code, a shell command can run in the background, and one still running at its timeout (2 minutes by default, 10 at most) moves there instead of being killed. Its output goes to a file, and when it exits the agent gets a message, in a new turn if it was idle. Background commands end with their conversation.
  • Web fetch answers a question about the page: the small model reads it and only its answer enters the conversation.
  • Artifacts and diagrams: built-in design and diagramming skills generate HTML, Mermaid or SVG and open a preview in VS Code. Ask to publish one to upload it to a private static Hugging Face Space (requires a token with write access); every publish asks for approval first.
  • Permission modes follow Claude Code's VS Code behavior. Fresh installs start in Auto; choosing Manual, Edit automatically or Auto is remembered for the next conversation, while Plan and Bypass are session-only. Auto auto-approves local edits and reads, sends other actions to a review model (huggingAgent.smallModel; by default GLM-5.3-Flash on Hugging Face and the chat model on other servers), and blocks risky ones with the reason. Broad code-execution allow rules are suspended in Auto; narrow rules and deny/ask rules still apply. Protected configuration writes get separate review, and recognized critical-path removals are denied in Auto, Plan and Bypass. Bypass requires the explicit huggingAgent.allowDangerouslySkipPermissions setting.
  • Streaming answers with markdown, collapsible reasoning ("Thinking"), tool rows with output and inline diffs, a task list, context usage, and a spinner while the agent works.
  • Images: paste (Ctrl/Cmd+V), drop, or use the image button. They're sent to models that read images (the model menu's providers say which); with a text-only model you get a warning instead of an error, and older images become [image] placeholders if you switch.
  • @path and @path#L10-20 attach files (with completion), the current file or selection is attached while its chip is on, messages typed while the agent works are queued.
  • /clear, /compact (also automatic at 80% of the context window), /resume, /model, /mode, /init, /help, /<skill>.
  • Conversations are saved per workspace and can be resumed.
  • Sidebar: Usage shows the Hugging Face account, Inference Providers spend and requests this billing period, and the model. Sessions can be starred (they stay at the top), grouped (drag and drop, or right-click), renamed and archived, and the search button finds conversations by what was said in them, Claude Code sessions included, with the matching snippet.

Settings

Setting Default
huggingAgent.baseUrl https://router.huggingface.co/v1 OpenAI-compatible base URL
huggingAgent.model Model id, set from the model menu
huggingAgent.extraBody {} Merged into every request, e.g. {"temperature": 0.6}
huggingAgent.initialPermissionMode "" Optional starting-mode override; empty follows Claude Code's precedence and defaults to Auto
huggingAgent.allowDangerouslySkipPermissions false Allow selecting Bypass permissions

Development

npm install
npm run compile
node test/core.mjs                                # agent core with a local deterministic server
node test/ui.mjs                                  # webview UI in jsdom
HA_BASE_URL=http://localhost:8000/v1 HA_RG=$(which rg) HA_PROJECT=/path/to/repo node test/run.mjs   # agent against a real server

test/run.mjs drives the agent loop against a real model: fixing a bug with approvals and diffs, follow-up turns, denials, plan mode, stopping mid-stream, compaction, and resuming a Claude Code session from HA_PROJECT.

The agent core (src/agent.ts, tools.ts, llm.ts, permissions.ts, context.ts, sessions.ts) does not depend on VS Code. src/extension.ts and src/chat.ts connect it to VS Code, and media/chat.js is the chat UI.

Releasing

Bump version in package.json, commit, then push a matching tag:

git tag v0.2.0 && git push origin v0.2.0

The Release workflow builds the extension, attaches hugging-agent.vsix to a GitHub release, and publishes to the VS Code Marketplace with Trusted Publishing. Configure a policy for the publisher in package.json (currently qgallouedec), repository huggingface/hugging-agent, and workflow release-personal.yml. When moving to the HuggingFace publisher, update package.json and use release.yml with its separate policy. Open VSX publishing is available when the OVSX_PAT repository secret is set. CI runs the agent tests against Inference Providers when an HF_TOKEN secret is set.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft