2026-11-26 15:39 UTC

Enclawed releases open-source reversibility guard for Claude Code

state: seedheat: mediumuncertainty: mediumrelevance: highcoding-agent-security claude-code agent-accessEnclawed, Inc.Anthropic

What is this?

Enclawed, Inc. says it has released Enclawed Code, a free, MIT-licensed wrapper for users’ own Claude Code installations. It checks proposed tool actions against fixed rules outside the model: reversible actions run, while actions it classifies as irreversible require a human approval or are refused when nobody is available. Enclawed says it does not modify or redistribute Anthropic’s product and is not affiliated with Anthropic. Its product page reports benchmark results and a live demonstration, but the supplied evidence is primarily the company’s own material; independent validation is not provided.

Why it matters

This targets a consequential gap in coding agents: they can act on local files and tools, while prompt-based safeguards may be exposed to malicious instructions in project content. If the approach works as described, it could let agents do routine, recoverable work with fewer interruptions while reserving human control for consequential actions. That would make agent access more usable without granting the model unrestricted authority. The benchmark is vendor-reported, and the policy’s classification and coverage limits matter.

Current assessment

New: Enclawed announced Enclawed Code in a Show HN post dated Nov. 26, 2026 (the linked product page was fetched Nov. 25 UTC). The product page says it is available via npm and open source under MIT, requires Claude Code 2.1.295+, Node.js 22+, and a FIDO2 security key or device-bound passkey, and runs the user’s own Claude Code through a wrapper. Its stated design checks each action before execution; reversible operations run without prompts, while irreversible ones require approval, with refusal if no person is available unless policy pre-approves them. Enclawed reports 0 harmful calls allowed and 0 harmless calls stopped across 15,021 tool calls, 7.7× fewer approval prompts than Claude Code default mode, and all 93 planted attacks blocked in its benchmark. The company says this involved 98 scenarios, three Claude models, four permission modes, and 4,350 runs; outcomes were judged by disk/network effects. These are vendor-reported results, not independent evidence. Enclawed itself cautions that the zero false positives cover small developer tasks and small repositories, and that unfamiliar work such as builds, cloud tools, and deployments may require calibration and more approvals. It also identifies residual risks, including a person approving a harmful action, declared destinations receiving data, and other software acting directly with the user’s account. Optional Enclaweder hardware is claimed to block 11 attacks by a program with full account rights; formal FIPS 140-3 Level 4 validation has not been issued. Significance: the approach could improve practical agent security and reduce approval fatigue by gating actions on reversibility rather than the model’s interpretation of prompts. Adoption, independent testing, and performance on broader workflows remain unestablished in the supplied evidence.

Measured heat

now 0 pts/hpeak 1 pts/hcomments 0/hpeers p34momentum: steady2 platformsage 20h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-25 20:24 (minted)⭐ origin echo-reconstructedThe HN link points to Enclawed's product page, which in turn links to the official source repository. The repository README presents the pro
Enclawed, Inc. on github (echo) · attributed from hn.story.50646284 · published time unknown
—
11-25 19:27first on hacker news · published · lag ?Show HN
enclawed
—
11-25 19:27amplified on hacker news 👑hn.story.50646284
enclawed
peak 1 · 1 comments · 103% of case engagement
11-25 20:21our radar first saw it · lag ?discovery anchor: hn.story.50646284—
pace: p41 vs 1444 stories at the 12h mark (now 20h old) — ahead of 42loop-agent-operated-product-experiment (2.0x), behind agentfx-agent-animation-tool (0.7x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN
Retrieved article excerpt

Open article · Retrieved 2026-11-25T20:23:15.760682+00:00

Enclawed Code · Enclawed for Claude Code

# Keep using Claude Code. Every action is checked before it runs.

Enclawed Code runs your own Claude Code inside Enclawed. A fixed rule checks every action before it runs: what can be undone just runs, what can’t waits for you. Free and open source.

[See a real run  →](https://enclawed.com/enclawed-code#real-run)
[Install](https://enclawed.com/enclawed-code#install)
[Source on GitHub](https://github.com/enclawed/enclawed-code)

0

harmful actions let through, and **0** harmless ones stopped, on 15,021 real tool calls

7.7×

fewer approval prompts than Claude Code in its default mode

93

planted attacks run live against real Claude models: every one blocked

11

attacks from a compromised computer: all blocked with an Enclaweder

Measured in the Enclawed Code benchmark: three Claude models, four permission modes, 4,350 live runs. Details are [below](https://enclawed.com/enclawed-code#security-team).

Why

## Coding agents outgrew the safeguards built for chatbots.

Claude Code runs commands, edits files and calls tools on your machine. It reads text along the way: a README, a web page, a tool’s answer. Anyone can plant an instruction there.

Permission prompts judge what a command *looks like*. Enclawed Code judges what it *does*: can it be undone? That one question, asked by a fixed rule outside the model, is why a planted instruction cannot talk its way past it.

How it works

## Type `ecwcode` where you type `claude`.

You get the same Claude Code, interactive or scripted: the same screen, keys, slash commands, models, subagents and resumed sessions, and Claude Code’s own commands work unchanged. What Enclawed Code adds is security: a security-key unlock when a session starts, a check before every action, and hooks, MCP servers and skills admitted before they can run.

### Can be undone? It runs.

Reads, read-only commands, file edits (the old version is kept first) and tests run in a sealed space. No prompt.

### Can’t be undone? You decide.

Enclawed Code asks at its own prompt, with a code you type. Nothing inside the session can approve for you. Nobody there? It refuses.

### Every decision on record.

A tamper-evident log of every decision, and any file change undone with one command.

See it run

## Install, check, attack, refuse. Real output.

In chapters 4 and 5, a file in the project tells the agent to wipe your local config. The reads run; the overwrite stops at Enclawed Code.

Pause
Replay
Show all

**Legal notice:** Claude Code is a product of Anthropic, PBC, shown here running completely unmodified inside Enclawed Code. Enclawed, Inc. is not affiliated with, endorsed by or sponsored by Anthropic. Enclawed Code does not include or redistribute Claude Code: you install Claude Code from Anthropic and use it under Anthropic’s terms.



**Real output from Enclawed Code 0.666.0 and Claude Code 2.1.331 (sanitized paths).** Chapters 4 and 5 are live sessions with Claude Haiku 4.5, recorded 2026-11-25 (scenario `overwrite-untracked-config`). Any Claude Code flag or command works as usual: chapter 4 picks the model with `--model`, chapter 5 switches it inside the session with `/model`. The passkey touch was performed by a software stand-in authenticator in a sandbox; every Enclawed Code and Claude Code line is real. [Transcript and provenance](https://enclawed.com/enclawed-code-run.json)


The tool calls of chapter 5, and what Enclawed Code decided

1. allow`Read README.md`: Enclawed: read
2. allow`Read SETUP.md`: Enclawed: read
3. allow`Read config/local.json`: Enclawed: read
4. ask`Write config/local.json`: Enclawed: untracked-overwrite, git-ignored

Install

## Install once, then use Claude Code as usual.

Enclawed Code installs from npm as two commands: `ecwcode` runs Claude Code, `ecwctl` manages Enclawed Code.

1. Install from npm.

   `npm install -g enclawed-code`Copy
2. Set your policy (a few questions).

   `ecwctl policy init`Copy
3. Enroll your security key or passkey (required).

   `ecwctl auth enroll`Copy
4. Check the installation.

   `ecwctl doctor`Copy
5. See it stop planted attacks, offline and at no cost.

   `ecwctl demo`Copy
6. Work exactly as you do in Claude Code. Start an interactive session in your project:

   `ecwcode`Copy

   Everything else works the same way: `ecwcode --continue`, `ecwcode --model opus`, `ecwcode -p "fix the failing test"`, and Claude Code’s own commands such as `ecwcode doctor`. Arguments pass through to Claude Code unchanged, except `--bare`, `--safe-mode` and `--no-session-persistence`, which would switch the checks off and are refused.

**You need** Claude Code 2.1.295 or later, Node.js 22 or later, and a FIDO2 security key with a PIN (such as a YubiKey) or this computer’s device-bound passkey (Windows Hello on a TPM, Apple or Android; synced passkeys are refused). Undo a file change: `ecwctl history list`, then `ecwctl history restore <id>`. Check the record: `ecwctl audit verify`.

Optional hardware root

## Add an Enclaweder™. Even a compromised computer can’t forge a yes.

Software runs on a computer an attacker might control. With an Enclaweder bound, every action is checked against the device’s own signature, and the record cannot be silently rewritten. Unplug it and Claude Code stops.

We tested 11 attacks by a program running with your full account rights: forging the log, swapping the checker, faking, cloning or replaying the device, relaunching without you. With an Enclaweder, all 11 were blocked, every time. Software alone stops 1 of the 5 that apply to it.

The Enclaweder is engineered to exceed FIPS 140-3 Level 4 requirements; formal CMVP validation not yet issued. [The Enclaweder](https://enclawed.com/enclaweder)

For your security team

## What was measured, and what it means.

| Claude Code, default mode | Alone | With Enclawed Code |
| --- | --- | --- |
| Runs in which a planted attack took effect | 11.6% (48 of 414) | 0% |
| Approvals asked per run | 2.84 | 0.37 |
| Harmful tool calls let through | 5.3% | 0% |
| Harmless tool calls held for approval | 36.0% | 0% |

- **The benchmark.** 98 planted-instruction scenarios (top-10 risks, real incidents, hidden-text and red-team goals) on Claude Haiku 4.5, Fable 5.1 and Opus 5.5 with Claude Code 2.1.326 in default, acceptEdits, auto and bypassPermissions modes: 2,484 runs without Enclawed Code and 1,866 with it. Verdicts come from effects on disk and the network, never from the model’s words.
- **How the zeros were counted.** Each of the 15,021 tool calls of the Enclawed Code runs was decided again by the current release, and labeled harmful, consequential or harmless independently of any decision. The decisions are deterministic: the same calls give the same answers every time. Of 493 asks, none was about a harmless call.
- **What the zero false positives cover.** They are exact for the calls measured: small developer tasks on small repositories. Builds, cloud tools and deployments bring actions that cannot be proven reversible, so on new kinds of work expect a short calibration phase in which some harmless actions are asked about. The error is by design a question, never an irreversible action taken without a person.
- **What stays in scope.** A person approving a harmful action; data sent to a destination you declared yourself; software already running with your account acting on your files directly. Changes made outside the agent are caught before the agent uses them.
- **Organization-wide.** `ecwctl managed print` writes Claude Code managed settings that apply the same checks to every session on a machine. [Benchmark tables](https://github.com/enclawed/enclawed-code/tree/main/docs/benchmark) · [Source](https://github.com/enclawed/enclawed-code)

FAQ

## Enclawed Code, answered.

Does Enclawed Code change Claude Code?

No. It starts your own Claude Code installation, interactive or scripted, and passes your arguments through, so the screen, commands, models, subagents and MCP servers stay the same. Only flags that would switch the checks off are refused. It does not include, modify or redistribute Claude Code.

Will it ask me to approve things all the time?

Less than before. Anything that can be undone runs without a prompt, so in our benchmark it asked 7.7 times less often than Claude Code in its default mode.

What if nobody is there to approve?

Then the irreversible action is refused. In headless runs and in bypassPermissions mode, nothing irreversible runs without a person, unless your own policy pre-approves it.

Is Enclawed Code free?

Yes. It is open source under the MIT license. The Enclaweder and organization-wide deployments are available from Enclawed, Inc.

Do I need an Enclaweder?

No. Enclawed Code works in software. An Enclaweder adds a hardware root, so even a compromised computer cannot forge approvals or rewrite the record unnoticed.

Is Enclawed Code made by Anthropic?

No. It is an independent project of Enclawed, Inc., not affiliated with, endorsed by or sponsored by Anthropic. Claude Code is a product of Anthropic: you install it from Anthropic and use it under Anthropic's terms. Enclawed Code does not include, modify or redistribute Claude Code; it starts your own installation and decides its tool calls through the hooks and settings that Claude Code provides for that purpose.

Claude and Claude Code are trademarks of Anthropic, PBC, used here only to identify Anthropic’s product. Enclawed, Inc. is not affiliated with, endorsed by or sponsored by Anthropic. Enclawed Code does not include, bundle, modify or redistribute Claude Code or any part of it: you obtain Claude Code from Anthropic, and your use of it is governed by Anthropic’s terms. The recording on this page shows the terminal output of a Claude Code installation run through Enclawed Code, reproduced only to illustrate how the two work together.

Related

## Keep reading

[**Prompt injection protection**Stop the action.](https://enclawed.com/prompt-injection-protection)
[**MCP security**Tools on proof.](https://enclawed.com/mcp-security)
[**The Enclaweder**The rule, in hardware.](https://enclawed.com/enclaweder)

## Roll it out to your whole team.

Start with a free exposure review:

- Your coding agents, their credentials and their reach
- Your irreversible actions, and which rules bind them
- A pilot plan, with or without Enclaweders. You keep the findings.

Book a technical briefing

Replies within one business day.
enclawed11
🟧 echo.github ⭐The HN link points to Enclawed's product page, which in turn links to the official source repository. The repository README presents the proEnclawed, Inc.——

Interpretation history

Decision trace