@useanvil/claude-code 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +703 -0
- package/README.md +128 -38
- package/dist/Anvil +0 -0
- package/dist/claude-approve.js +23 -0
- package/dist/claude-conditions.js +19 -12
- package/dist/claude-helpers.js +9 -9
- package/dist/claude-hook-core.js +88 -80
- package/dist/claude-hook.js +38 -37
- package/dist/claude-meter.js +52 -48
- package/dist/claude-powershell.cjs +17 -17
- package/dist/claude-sync.js +26 -26
- package/dist/cli/claude-main.js +5392 -2510
- package/docs/coding-agents/YOUR-RULES.md +507 -654
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,709 @@ All notable changes to `@useanvil/sdk` are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/), and this project adheres to
|
|
5
5
|
[Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.10.0] — Anvil for Claude Code: five new rules on by default, and your CLAUDE.md read as rules
|
|
8
|
+
|
|
9
|
+
Anvil's own rules are on by default, and only you can turn one off. Five are new, chosen from what people deny most in
|
|
10
|
+
public Claude Code setups: Claude asks before it adds a package the project doesn't declare, deletes or moves files
|
|
11
|
+
outside your project, shows a `.env` in the chat, throws away uncommitted work, or changes something through a
|
|
12
|
+
production account. Each was measured on real history first and asks fewer than 0.2 times per 100 calls. `rules
|
|
13
|
+
import` reads the action rules in your CLAUDE.md (83–87% of rule lines, with your Claude Code reading), and on a Mac,
|
|
14
|
+
where Claude Code can't ask you, Anvil's own window does. Three security fixes close ways a step got past a hold in
|
|
15
|
+
0.7.0 to 0.9.1: update if you run one of those.
|
|
16
|
+
|
|
17
|
+
### Anvil for Claude Code: `watch <rule>` works, and what is counted is what enforce would stop
|
|
18
|
+
|
|
19
|
+
- **`anvil claude watch <rule>` works.** `--help`, the rules list and every undo said `watch`, and it was an unknown
|
|
20
|
+
command. It is `ghost` by its plain name: the same change, the same refusals, on the record as `ghost`, refused
|
|
21
|
+
inside Claude Code, and the same warning when it ends a hold Anvil starts with. `ghost` works as before; `--help`,
|
|
22
|
+
the rules list and every undo say `watch`.
|
|
23
|
+
- **`watch <one of Anvil's own>` says how to switch it.** "protected is on by default, so nothing changed. To turn it
|
|
24
|
+
off: anvil claude off protected", or, after `off`, "To turn it back on: anvil claude enforce protected".
|
|
25
|
+
- **Every rule by the name the commands take.** `on` lists Anvil's own rules ("Anvil's rules: protected, uncommitted,
|
|
26
|
+
…", and "Off: env-in-chat." for one turned off) and what a new install holds from the start, new-dependency by
|
|
27
|
+
name. `--help` lists Anvil's own rules and every kind.
|
|
28
|
+
- **The Proof screen says who decided.** A hold a new install starts with (new packages, the worst destroys) said
|
|
29
|
+
"your setting". It says "on by default"; "your setting" is only a mode you set.
|
|
30
|
+
- **A read through a production account is never "would have stopped".** `status`, today's line, Home's suggestion,
|
|
31
|
+
the rules screen's week, the Proof tiles, the daily count and the dashboard sync counted `aws --profile prod s3 ls` as
|
|
32
|
+
something enforce would stop, though holding production never stops a read. The hook marks such a call `scoped`, and
|
|
33
|
+
none of them counts it. Held, production is said as "changes through a production account", and a watched or off
|
|
34
|
+
production line says "but a change through one waits for your OK while prod-changes is on".
|
|
35
|
+
- **`rules add` is on the record once.** A written line was also recorded as a rules screen save.
|
|
36
|
+
|
|
37
|
+
### Anvil for Claude Code: your words for what Anvil already does are Anvil's own rules
|
|
38
|
+
|
|
39
|
+
- **"Never git restore ." is a rule.** It, "never git checkout .", "never git checkout -- .", "Ask before running
|
|
40
|
+
git restore ." and "Don't run git restore . without asking" were said to "run as always" (or saved as `block: git
|
|
41
|
+
checkout --`), though Anvil holds a whole-tree discard by default. Typed or imported, each is a rule on discards with
|
|
42
|
+
your verb, its dot kept (`watch: git restore .`), and says what Anvil's own rule does with it: "Throwing away
|
|
43
|
+
uncommitted work is still blocked, as uncommitted is on." The hook blocks `git restore .` under a "never" line and
|
|
44
|
+
asks under the other two. One file (`git restore src/a.ts`) runs, as before.
|
|
45
|
+
- **A watched line that asks for your OK asks once it is switched on.** "Never use sudo without asking" was added as
|
|
46
|
+
"would hold", then noted "its words say never: switched on, it blocks", and after `anvil claude enforce sudo` every
|
|
47
|
+
sudo was blocked. A watched line's intent is read from its words as written, "without asking" included, and the
|
|
48
|
+
intent saved with it is used: it holds, as the add said.
|
|
49
|
+
- **Keeping .env out of the chat is env-in-chat.** "Keep .env out of the chat", "Keep credentials.json out of the
|
|
50
|
+
chat", "show secrets files in the chat", "ask before reading .env" and "Don't open .env files without asking" add no
|
|
51
|
+
line of yours: they say "Anvil's own rule env-in-chat does this, and it's on: it asks before a .env, a private key or
|
|
52
|
+
credentials.json is shown in the chat", or, with it off, the command that turns it on (exit 1). Imported, such a line
|
|
53
|
+
is skipped with that reason, never counted as guidance, also when your Claude Code reads it (its reading, a block on
|
|
54
|
+
printing secrets the words don't say, made it guidance). `watch:` or `off:` on them is refused: that is the rule's
|
|
55
|
+
switch. "Never read .env" blocks a Read of .env and a `cat` of it, and stays a block when the import is watched
|
|
56
|
+
first, so printing cloud credentials (`aws configure export-credentials`) never runs unasked. On the rules screen,
|
|
57
|
+
"never show secrets files in the chat" saves the two-kind reading the box shows. A secret that also lives outside
|
|
58
|
+
those files stays your line: "keep api keys out of the chat" (tokens, passwords, credentials) holds every print of
|
|
59
|
+
secrets, so `echo $OPENAI_API_KEY`, which env-in-chat lets run, waits for your OK.
|
|
60
|
+
- **"Don't touch production credentials" holds production accounts and every secrets file.** Typed or imported,
|
|
61
|
+
touching, reading, editing, handling, accessing or changing production credentials (keys, secrets, tokens,
|
|
62
|
+
passwords) is a rule on production accounts and on secrets files read, printed and written, with your verb. "Don't
|
|
63
|
+
touch production credentials" blocks a change through a production account (reads through one run) and every Read,
|
|
64
|
+
`cat` and edit of a secrets file, also with prod-changes off. It was a rule on writing secrets files only ("read":
|
|
65
|
+
on reading them only). The hook can't tell production's secrets file from another, so the line says it holds every
|
|
66
|
+
one ("blocks every secrets file, not only production's"). "Use production credentials" stays a rule on the accounts.
|
|
67
|
+
- **"Ask before reading ~/.ssh/id_rsa" is Anvil's own rule credentials.** Typed, imported or in the rules screen's
|
|
68
|
+
box, asking before an account key file (`~/.ssh/id_*`, `~/.aws/credentials`, `~/.npmrc`) is read adds no line:
|
|
69
|
+
"Anvil's own rule credentials does this, and it's on", or, with it off, the command that turns it on. `watch:` or
|
|
70
|
+
`off:` on it is refused: that is the rule's switch. "Never read ~/.ssh/id_rsa" stays your block. A public key
|
|
71
|
+
(`id_rsa.pub`) is no secret.
|
|
72
|
+
- **"No git checkout -f" is a discard** in both readers, as are `git switch -f` and `--discard-changes`, and "no git
|
|
73
|
+
restore / reset / clean / stash" lines are blocks when imported. Neither says the line is narrower than its kind.
|
|
74
|
+
- **A note about one of Anvil's own rules says when that rule is off.** A `watch:` line's "throwing away uncommitted
|
|
75
|
+
work has its own rule" goes on "but uncommitted is off: anvil claude enforce uncommitted turns it on" while it is.
|
|
76
|
+
One note shared by two kinds is said once.
|
|
77
|
+
- **No "Not enforced: 0 lines are guidance."** An import where every line was a rule, skipped or not covered says
|
|
78
|
+
nothing of guidance.
|
|
79
|
+
- **An own rule's name, typed, is that rule.** `rules add env-in-chat` (or `uncommitted`, `prod-changes`) said
|
|
80
|
+
"advice for Claude goes in CLAUDE.md", and `hold: env-in-chat` saved a line that did nothing. Now: "uncommitted is
|
|
81
|
+
Anvil's own rule, and it's on: it holds throwing away uncommitted work", and nothing is saved.
|
|
82
|
+
- **"Watch them first" says what still stops.** Its hint said "nothing stops; see what would" while Anvil's own rules
|
|
83
|
+
went on stopping their part. Where one does, the hint is "what Anvil itself holds still stops", the cursor on it
|
|
84
|
+
says which ("Watching first, a deploy to production is still blocked, as prod-changes is on"), and so does the line
|
|
85
|
+
after the import, never "nothing stops yet". Two watched lines on one kind are said as the one that decides it.
|
|
86
|
+
- **The push sentence is true by default.** "Anvil holds pushes to main" is now "Anvil can hold pushes to main
|
|
87
|
+
(anvil claude enforce push-main), not pushes to other branches": pushes to main are watched until push-main is on.
|
|
88
|
+
The same in the review and in what was left out. The brief Claude Code reads lines with keeps its words: a true
|
|
89
|
+
wording read sealed-2 less exactly.
|
|
90
|
+
- **A block on one secrets file says it blocks every one** ("blocks every secrets file, not only .env"), never "a rule
|
|
91
|
+
on one adds nothing".
|
|
92
|
+
|
|
93
|
+
### Anvil for Claude Code: `ghost` and `enforce` do what they say on a kind your own line decides
|
|
94
|
+
|
|
95
|
+
- **`ghost <rule>` watches your own line.** After "Never add new dependencies." was imported, `anvil claude ghost
|
|
96
|
+
your-new-dependency` printed "no longer stopped · They run, with a note" while the hook kept blocking: your `block:`
|
|
97
|
+
line in `~/.anvil/rules.md` decides, and a switch never weakens a line. Now `ghost` changes that line to `watch:` and
|
|
98
|
+
says so ("In ~/.anvil/rules.md: block: add new dependencies → watch: add new dependencies"). The line keeps its verb,
|
|
99
|
+
so `enforce` blocks again ("Undo … block it again"), and "▲ No longer held: …" says what a watch ends. Nothing
|
|
100
|
+
changes (exit 1, with why) for a line in a project's own file, a line that decides another kind too, a line that
|
|
101
|
+
can't be a `watch:` line, or rules.md edits not applied yet.
|
|
102
|
+
- **`enforce` says the block it is.** `enforce your-discard` said "Each one waits for your OK" of a kind your line
|
|
103
|
+
blocks. It says "Each one is blocked" now, and `anvil claude rules` lists the kind as `block`, not the default rule's
|
|
104
|
+
`hold`.
|
|
105
|
+
- **What Anvil's own rules still stop is said.** Watched, a discard of uncommitted work, a secrets file shown in the
|
|
106
|
+
chat, a use of your account keys, a change through a production account, or a deploy or database destroy on
|
|
107
|
+
production still waits for your OK while that rule is on, or is still blocked when a line of yours on the kind says
|
|
108
|
+
never. `ghost` says which ("Deploy: a deploy to production is still blocked, as prod-changes is on; the rest run,
|
|
109
|
+
with a note"), never "no longer stopped".
|
|
110
|
+
- **A line of yours on part of a kind is said.** "Never deploy to production" is a line of its own (its own row on the
|
|
111
|
+
rules screen), so `ghost deploy` leaves it as it is and says it goes on blocking those ("Deploy: your rule "deploys
|
|
112
|
+
to production" (~/.anvil/rules.md:7) still blocks those; the rest run, with a note"). `enforce deploy` says it
|
|
113
|
+
beside the hold, and `ghost all` names it.
|
|
114
|
+
- **`ghost all` names what stays stopped.** Each kind a line in rules.md or your workspace still blocks or holds is
|
|
115
|
+
said with where ("▲ deploy stays blocked: ~/.anvil/rules.md:8 sets it"), so is a line on part of a kind
|
|
116
|
+
("▲ deploys to production stay blocked: ~/.anvil/rules.md:7 sets it"), and "No longer held" names only the
|
|
117
|
+
first-day holds that end.
|
|
118
|
+
|
|
119
|
+
### Anvil for Claude Code: `rules import` offers only what the hook does
|
|
120
|
+
|
|
121
|
+
- **A push that names no branch is said as can't yet.** "Don't push without asking" and "ask before pushing to any
|
|
122
|
+
branch" became a hold on pushes to main (with a ✓), while `git push origin feature-x` ran with no prompt. Anvil can
|
|
123
|
+
hold pushes to main, not pushes to other branches, so the review now lists such a line with what it left out, with
|
|
124
|
+
that reason. "Never push to main", "never commit to main", merging a PR and force-pushes are rules as before. A line with
|
|
125
|
+
a push and a rule ("never push or force-push") keeps the rule and says the push part can't be held yet.
|
|
126
|
+
- **"Don't source .env.production" stops a command run with it.** Without Claude Code it became a rule on secrets
|
|
127
|
+
files that never fired: `source .env.production && node x.js` ran. Now it is a rule on production accounts, with the
|
|
128
|
+
line's verb.
|
|
129
|
+
- **A rule broader than its line holds.** "Don't install anything globally" blocked every new dependency, local ones
|
|
130
|
+
too. Now it holds them, as Anvil does by default. With Claude Code, an answer the review would say "not only …" of
|
|
131
|
+
holds rather than blocks.
|
|
132
|
+
- **Bans Anvil's own reader missed.** "Never write to `~/`", "never save anything anywhere outside the repo" and "do
|
|
133
|
+
not save files in your home folder" are changes outside the project. A list under "## No need to ask first" stays
|
|
134
|
+
advice.
|
|
135
|
+
- **A line held in part says what won't hold.** "No push or deploy without explicit approval." and "Don't push or
|
|
136
|
+
publish without asking" were a ✓ in the rules screen's import, as if the whole line held, while `git push origin
|
|
137
|
+
feature-x` ran. The review and the line after the save say what holds and what can't yet ("Line 4: deploys wait
|
|
138
|
+
for your OK. Pushes to a branch: Anvil can't hold these yet."), and so do `rules add` and the rules box for the
|
|
139
|
+
line typed ("▲ Catch: Pushes to a branch: Anvil can't hold these yet."; a commit in the line adds "Anvil can't hold
|
|
140
|
+
commits yet."). A push is never folded into pushes to main. A bare "Don't push without asking" stays can't yet.
|
|
141
|
+
- **"Block anything that opens .env.production" blocks every read of it.** The Read tool, `cat`, `head`, `grep`, the
|
|
142
|
+
Grep tool and a copy (`cp .env.production .env.bak`), typed or imported, with env-in-chat on or off; the importer
|
|
143
|
+
called it guidance. `.env.example` and other files run. The rule is the kind, so it blocks every secrets file's
|
|
144
|
+
read, and says so. A local copy is a read only for your own line: Anvil's own rules still let it run (it sends
|
|
145
|
+
nothing). "Hold anything that opens …" is your line too: env-in-chat never holds a copy. Typed, it is saved as
|
|
146
|
+
`block: anything that opens .env.production`, as the import saves it, and the rules list keeps a long rule name
|
|
147
|
+
apart from what it does.
|
|
148
|
+
- **What a skip and a watch say is true.** A skipped line reads "CLAUDE.md:6 skipped: CLAUDE.md:5 already blocks every
|
|
149
|
+
deploy". Watched first, a secrets line says what still stops: "showing secrets files in the chat are still blocked,
|
|
150
|
+
as credentials and env-in-chat are on". A second `watch new-dependency` says "Already watching new-dependency" and
|
|
151
|
+
offers `enforce new-dependency` to hold it.
|
|
152
|
+
|
|
153
|
+
### Anvil for Claude Code: a rule you add never leaves Anvil weaker than its default, and `off <rule>` turns off one rule
|
|
154
|
+
|
|
155
|
+
- **"Never run terraform destroy" blocks it.** `rules add … --yes` and `rules import --yes` saved every rule as a
|
|
156
|
+
`watch:` line. On a kind Anvil holds part of from the start (destroys, recursive deletes, database drops, printed
|
|
157
|
+
secrets, external and MCP writes, new dependencies, pushes to main, force-pushes, publishing, data exports, crypto,
|
|
158
|
+
paid compute, exposing this machine), that line ended the hold: `terraform destroy -auto-approve` ran with a note
|
|
159
|
+
after you said never. Now such a rule keeps your verb: "never" and "don't" save `block:`, "ask before" saves
|
|
160
|
+
`hold:`. The output says what was saved and why ("Not watched first: a watch: line would end Anvil's hold on …").
|
|
161
|
+
Other kinds are still `watch:` lines. The rules screen, and the import's own choice (enter holds, `w` watches
|
|
162
|
+
first), are unchanged.
|
|
163
|
+
- **A never-line on what Anvil's own rules hold keeps your verb.** "never touch production", "never run git reset
|
|
164
|
+
--hard", "never delete anything outside the project" and "never read secrets files" were saved as `watch:` lines
|
|
165
|
+
with `--yes`, so after `off prod-changes` (or uncommitted, outside-folder, env-in-chat) the call ran with a note.
|
|
166
|
+
Each saves `block:` now and says why: "Not watched first: it blocks with Anvil's own prod-changes on or off." The
|
|
167
|
+
import's Watch first choice still saves `watch:`.
|
|
168
|
+
- **`anvil claude off <rule>` turns that rule off; Anvil stays on.** It ignored the name and took Anvil out. Now `off
|
|
169
|
+
new-dependency` writes `off: new-dependency` in `~/.anvil/rules.md`, and `off agent-controls` turns off one of
|
|
170
|
+
Anvil's own rules as the rules screen does, with its warning: each of them by its name (uncommitted, env-in-chat,
|
|
171
|
+
outside-folder, prod-changes and the older ones), and every other rule still judges each call. Its undo is one
|
|
172
|
+
command that works: `enforce uncommitted` turns one of Anvil's own back on, `watch new-dependency` watches a kind
|
|
173
|
+
again (its hold from the start comes back, said), `enforce deploy` holds one you held again. It said "sync after
|
|
174
|
+
removing that off: line". An unknown name, or a line of your own (`rules remove` takes that out), changes nothing
|
|
175
|
+
(exit 1), says Anvil stays on, and lists every name `off` takes. Bare `off` still takes Anvil out. Claude can't run
|
|
176
|
+
either: inside Claude Code both are refused.
|
|
177
|
+
|
|
178
|
+
### Anvil for Claude Code: what Anvil says about production accounts is what it does
|
|
179
|
+
|
|
180
|
+
- **A read says nothing.** `kubectl --context prod get pods` ran with "Anvil would've held this for review … To hold
|
|
181
|
+
these for your OK, run: anvil claude enforce production", though holding the kind never stops a read. Now a read of a
|
|
182
|
+
production account runs with no note (Anvil still notes it), and the rest of a command keeps its own: `kubectl
|
|
183
|
+
--context prod get pods && npm publish` notes the publish. `status` no longer offers `enforce production` for reads.
|
|
184
|
+
- **Every screen says what holds.** `enforce production`, the `rules add` preview, the import's view and review, and a
|
|
185
|
+
rules.md line's sync line say "Use production accounts: a change through one waits for your OK; reads run, and Anvil
|
|
186
|
+
notes them" (or "is blocked"), never "each one". A saved `watch:` line on the kind says it is in force now, since
|
|
187
|
+
Anvil's own rule on production holds a change with the line's verb, not "watched first" and `enforce production`,
|
|
188
|
+
which changed nothing. `ghost production` says a change still waits while that rule is on.
|
|
189
|
+
- **"Don't use prod credentials" is a rule.** Typed or imported, it and "never use production credentials", "ask
|
|
190
|
+
before using prod credentials" and "no prod credentials" become rules on production accounts with your verb:
|
|
191
|
+
"never" and "don't" block a change through one, "ask" and "no" hold it, reads run. They were refused as naming
|
|
192
|
+
Anvil's own "credentials" rule. A line is about one of Anvil's own rules only when its words are that rule's name
|
|
193
|
+
(`off: credentials`, still refused) or name no kind but use it ("off: the credentials rule"). A `watch:` or `off:`
|
|
194
|
+
line that only uses such a word ("off: discards of uncommitted work", "watch: never force push to main - the branch
|
|
195
|
+
is protected") is read for the kinds it names, as `block:` and `hold:` lines were; Anvil's own rules still stop what
|
|
196
|
+
they stop.
|
|
197
|
+
|
|
198
|
+
### Anvil for Claude Code: `rules import` reads the action rules in your CLAUDE.md
|
|
199
|
+
|
|
200
|
+
- **More of what you wrote becomes a rule.** "Ask before adding dependencies", "never touch the production database",
|
|
201
|
+
"do not access files outside the repo unless I ask", "no push or deploy without approval", "never rewrite shared
|
|
202
|
+
history", "never hand-edit `src/gen/*.ts`": each now becomes Anvil's rule on that kind or that file, with the verb
|
|
203
|
+
you used. With your Claude Code reading, the import finds 83–87% of the rule lines in public CLAUDE.md files it never
|
|
204
|
+
saw, up from 73%. It made no rule on a line that asked for none.
|
|
205
|
+
- **Advice stays advice.** "Keep answers short", "use pnpm", "never use `any`" and other lines about what Claude
|
|
206
|
+
writes add no rule. Neither does a list of what may go ahead ("Fine without asking: …").
|
|
207
|
+
- **What it can't hold, it says.** The review lists each line it left out and why: "Anvil can't hold commits yet",
|
|
208
|
+
"…changes to tests yet", "…new packages, not version changes". Those lines stay in CLAUDE.md, where Claude still
|
|
209
|
+
reads them.
|
|
210
|
+
- **Without Claude Code** (`--no-model`), Anvil's own reader finds more and makes fewer wrong rules than before (53%
|
|
211
|
+
of rule lines, 4 rules where a line asked for none, down from 6). Lines it isn't sure of are left as advice.
|
|
212
|
+
|
|
213
|
+
### Anvil for Claude Code: new dependencies wait for your OK, on by default
|
|
214
|
+
|
|
215
|
+
- **A new rule, "Add a new dependency" (`new-dependency`), held on a new install.** Claude asks before it adds a package
|
|
216
|
+
the project doesn't declare: `npm install left-pad`, `pnpm add`, `yarn add`, `bun add`, `pip install` (however it's
|
|
217
|
+
started, `py -m pip` on Windows too), `uv add`, `poetry add`, `cargo add`, `go get`, `bundle add`, `composer require`
|
|
218
|
+
or `dotnet add package`. It also asks before a global or system install (`npm i -g`, `pipx install`, `cargo
|
|
219
|
+
install`, `brew install`, `apt install`, `winget install`), before `npx`, `pnpm dlx`, `bunx` or `uvx` downloads a
|
|
220
|
+
package the project doesn't have, and before an edit that adds one to `package.json`, `requirements.txt`,
|
|
221
|
+
`pyproject.toml`, `Cargo.toml` or `go.mod`. The reason names the packages and where they come from: "adds 2 new
|
|
222
|
+
packages to this project: left-pad, axios (npm)". `npx create-next-app` is one hold for the command.
|
|
223
|
+
- **What the project declares runs as always.** Anvil reads the project's manifests on this machine, workspaces
|
|
224
|
+
included, and looks nothing up online. Installing from the lockfile (`npm ci`, a bare `npm install`, `pip install -r
|
|
225
|
+
requirements.txt`, `uv sync`, `poetry install`) and running the project's own tools (`npx vitest`) aren't this rule.
|
|
226
|
+
A new version of a declared package is noted, not held. An unreadable manifest holds the call, and the reason says
|
|
227
|
+
so.
|
|
228
|
+
- **You decide what gets added.** Anvil doesn't look inside a package: one you approve installs, whatever it holds. A
|
|
229
|
+
package firewall such as Socket or Aikido Safe Chain checks what's inside; the two work together.
|
|
230
|
+
- **Quiet.** On 179,222 real calls over 51 days it asks an estimated 286 times (0.16 per 100), within the bar Anvil's
|
|
231
|
+
own rules meet. 40 of those are manifests the shell writes, most a `sed -i` whose result Anvil can't check.
|
|
232
|
+
- **Typed and imported rules read it.** "Ask before adding dependencies", "no new packages" and "never npm install
|
|
233
|
+
without asking" become this rule, in the box and from a CLAUDE.md. "npm install" typed on its own is this rule now,
|
|
234
|
+
no longer a command Anvil lets run. Turn it to watch, hold or off on the rules screen like any rule.
|
|
235
|
+
- **A package the shell writes into a manifest asks too.** `cat > requirements.txt <<'EOF'`, `echo colorama >>
|
|
236
|
+
requirements.txt`, `printf`, `tee -a` and `npm pkg set dependencies.left-pad=^1.3.0` are read like an edit of the
|
|
237
|
+
file: Anvil applies the text to the file as it is and names what the project doesn't declare. A write whose text
|
|
238
|
+
isn't on the line (`sed -i`, `pip freeze >`, a script's output, a download) is held as one Anvil can't check. A copy
|
|
239
|
+
of the project's own manifest (`cp package.json /tmp/review/`) runs.
|
|
240
|
+
- **Another source is a new package.** `npm install react@npm:preact`, `react@github:evil/react` and `pip install
|
|
241
|
+
"requests @ git+https://…"` ask though the project declares the name, and the reason says where it comes from. So
|
|
242
|
+
does an edit that points a declared name at a git address or another registry.
|
|
243
|
+
- **More ways to start an install.** `corepack pnpm add`, `pipenv install`, `brew install -v` or `-s`, `dnf` and `yum
|
|
244
|
+
install -v`, `poetry add --optional`. `npm install --before 2024-01-01 react` reads the date as a date: a declared
|
|
245
|
+
package, noted.
|
|
246
|
+
- **Your own line about new packages covers what it says.** "block: no new packages" or "hold: Never add new
|
|
247
|
+
dependencies", written into `~/.anvil/rules.md` or added with `rules add`, stops a package the project doesn't
|
|
248
|
+
declare and names it: `npm install react left-pad` is "adds a new package to this project: left-pad (npm)". A
|
|
249
|
+
declared package, a new version of one and a local path run as they do without the line, noted the same way; until
|
|
250
|
+
now the line stopped them too. A line about every install ("block: npm install", "installing packages") or about the
|
|
251
|
+
rest too ("new or updated packages") still covers each one.
|
|
252
|
+
- **Another index or registry is another source.** A declared package installed from somewhere else asks, and the
|
|
253
|
+
reason says where: "adds a new package to this project: requests from https://pypi.example.dev/simple (PyPI)". That
|
|
254
|
+
covers pip's and uv's `-i`, `--index-url`, `--extra-index-url`, `--find-links` and `--index`, npm's, pnpm's, yarn's
|
|
255
|
+
and bun's `--registry`, a variable on the line (`PIP_INDEX_URL=…`, `npm_config_registry=…`, `UV_INDEX_URL=…`), an
|
|
256
|
+
index line written into a requirements file or in another file `pip install -r` reads, a go.mod `replace` to another
|
|
257
|
+
module (`go mod edit -replace` too) and a composer.json repository (`composer config repositories.…` too). The
|
|
258
|
+
registry itself, a folder (`--find-links ./wheels`) and an index the project's own requirements file already names
|
|
259
|
+
(`pip install -r requirements.txt` in a PyTorch project) run as before. A list from a web address (`pip install -r
|
|
260
|
+
https://…`), another list file that takes a package from git or a web address, and a local package installed with
|
|
261
|
+
an index of the call's own (`pip install -e . -i …`) ask as ones Anvil can't check.
|
|
262
|
+
- **A local folder is a local package.** A name whose manifest value is a folder (`link:`, `file:`, `workspace:`, `{
|
|
263
|
+
path = … }` in Cargo.toml or pyproject.toml, `name @ file:///…`, Bundler's `path:`, a `replace` to a folder) runs,
|
|
264
|
+
noted, and the note says where one outside the project is: "adds a local package: shared from /Users/me/shared,
|
|
265
|
+
outside this project (npm, package.json)". Adding one to a manifest was held as a new package.
|
|
266
|
+
- **`npm pkg set` and `go mod edit -require` say what they do.** Of a declared package, `npm pkg set
|
|
267
|
+
dependencies.react=^19.0.0` is noted as "declares react ^19.0.0 in package.json (npm)", not as an install, and `go mod
|
|
268
|
+
edit -require` as declaring the version in go.mod. A module the project doesn't have asks, as `go get` does.
|
|
269
|
+
|
|
270
|
+
### Anvil for Claude Code: holds changes aimed at production, on by default
|
|
271
|
+
|
|
272
|
+
- **A new rule of Anvil's own, on from the first call.** Claude asks before a command that changes something through a
|
|
273
|
+
production account, profile, context, env file, host or token: `aws --profile prod lambda invoke`, `kubectl --context
|
|
274
|
+
prod delete`, `terraform workspace select prod && terraform apply`, `source .env.production && node
|
|
275
|
+
scripts/backfill.js`, a `curl` that sends a production token. A deploy or database change that says production, such
|
|
276
|
+
as `vercel --prod`, asks too. Turn it off on the rules screen, like Anvil's other rules.
|
|
277
|
+
- **Keyed on the target, never the command's name.** Production is the word prod, production, prd or live where a
|
|
278
|
+
command picks its target, or a name you define in rules.md: `define: production = acme-main, 123456789012`.
|
|
279
|
+
`products`, a `production-docs` folder, `--profile prodigy`, `NODE_ENV=production`, a local cluster named `kind-prod`
|
|
280
|
+
and a project folder with prod in its name aren't, so `npm run build` runs.
|
|
281
|
+
- **Reads run, watched.** `kubectl --context prod get pods`, `aws --profile prod s3 ls` and `fly logs -a api-prod` are a
|
|
282
|
+
new kind, "Use production accounts". Holding it holds its changes even with Anvil's rule off; reads stay watched.
|
|
283
|
+
- **It holds what it can see is production, and lets you name the rest.** A token whose name says nothing, sent to a
|
|
284
|
+
host that says nothing, looks like any other: add its account, profile or host with `define: production = …`.
|
|
285
|
+
- **Quiet.** On 167,255 real calls over 48 days it would have asked 80 times, 60 of them real production changes: 0.01 false
|
|
286
|
+
stops per 100, within the bar Anvil's other rules meet.
|
|
287
|
+
- **Typed and imported rules read it.** "Never touch production", "don't use prod credentials", "no production access"
|
|
288
|
+
and "never run commands against prod" become rules on the kind, in the box and from a CLAUDE.md. "Deploys to
|
|
289
|
+
production" still narrows deploys, and "be careful when working in prod" stays advice.
|
|
290
|
+
- **Watching a kind says what runs.** With this rule on, watching database destroys or deploys ends their first-day
|
|
291
|
+
hold only off production, and the screens say so: "No longer held: remote database destroys off production".
|
|
292
|
+
- **Your line on production decides every change on production.** Under `block: never touch production`, a change of
|
|
293
|
+
any kind that reads production (`aws --profile prod s3 rm`, `kubectl --context prod delete pod`, `aws --profile prod
|
|
294
|
+
lambda delete-function`) is blocked, with Anvil's own rule on or off: the strongest decision leads, and a block beats
|
|
295
|
+
Anvil's hold. Before, the hold on the change's own kind led: Claude only asked, and with Anvil's rule off `kubectl
|
|
296
|
+
--context prod delete pod` ran. While Anvil's rule is on, the line `rules add "never touch production"` saves
|
|
297
|
+
(`watch: never touch production`) blocks them too. Reads still run, watched.
|
|
298
|
+
- **One folder, one answer.** A folder, file, host or account reads the same whichever command names it: `cd
|
|
299
|
+
live/prod/app && terraform apply`, `terraform -chdir=live/prod/app apply`, `-var-file=live/prod/terraform.tfvars` and
|
|
300
|
+
`dotenv -e live/prod/.env` all ask. After Terragrunt's `live/`, the next folder decides: `live/stage`, `live/dev`,
|
|
301
|
+
`live/qa`, `live/non-prod` and `live/us-east-1/stage` run; `live/us-east-1/app`, `infra/live` and
|
|
302
|
+
`api.live.example.com` still ask.
|
|
303
|
+
- **Staging and this machine aren't production.** Microsoft's `login.live.com`, `outlook.live.com` and
|
|
304
|
+
`onedrive.live.com` aren't production; a DELETE to one is still held, as a provider's API. A docker compose on this
|
|
305
|
+
machine runs, `docker-compose.prod.yml` included, unless `--context`, `-H`, `DOCKER_HOST` or `docker context use`
|
|
306
|
+
names a production host (`docker --context prod compose up -d`).
|
|
307
|
+
- **A choice carries.** `az account set --subscription prod` is a choice now, like `kubectl config use-context prod`,
|
|
308
|
+
and a choice reaches every later command on the line that acts through it, judged as if that command named the
|
|
309
|
+
target: `az account set -s prod && az webapp restart …`, `firebase use prod && npm run deploy` and `kubectl config
|
|
310
|
+
use-context prod && ./scripts/migrate.sh` ask. A command that names its own target (`aws --profile staging`, `psql -h
|
|
311
|
+
localhost`, `curl`, `git push`) isn't reached, and `az account set` alone is still only watched.
|
|
312
|
+
- **More tools read.** Ansible's host pattern, `-i` inventory and `--limit` (`ansible prod -m shell -a 'rm -rf
|
|
313
|
+
/tmp/cache'`, `ansible-playbook -i inventories/prod/hosts site.yml`; `-m ping`, `-m setup`, `--check` and
|
|
314
|
+
`--list-hosts` are reads). HTTPie and xh like curl: the host, and a token sent in a header, `--auth` or `--bearer`.
|
|
315
|
+
`sftp` like ssh and scp. A token read from a file whose path says production (`$(cat ~/.config/prod/token)`, `-H
|
|
316
|
+
@secrets/prod/headers.txt`). Stripe's `--live`. `vercel promote`, `vercel rollback` and `netlify deploy -p`, which act
|
|
317
|
+
on production by what they are.
|
|
318
|
+
- **Still quiet.** On 180,111 real calls over 51 days, none of this changed a decision: the same 85 asks as before
|
|
319
|
+
(0.05 per 100).
|
|
320
|
+
|
|
321
|
+
### Anvil for Claude Code: holds deletes outside your project, on by default
|
|
322
|
+
|
|
323
|
+
- **A new rule of Anvil's own, on from the first call.** Claude asks before a command deletes or moves a file outside
|
|
324
|
+
your project: `rm`, `rmdir`, `mv`, `find -delete`, `rsync --delete`, a script's `shutil.rmtree`, and Windows' `del`,
|
|
325
|
+
`rd /s` and `Remove-Item`. System files, shell startup files, background jobs and another repository's records are
|
|
326
|
+
asked about too. Wiping your home folder, a drive or your project is still blocked outright. Turn it off on the rules
|
|
327
|
+
screen, like Anvil's other rules.
|
|
328
|
+
- **Your project is more than one folder.** Its git worktrees, Claude Code's `additionalDirectories`, and folders you
|
|
329
|
+
name in your own `~/.anvil/rules.md` (`define: project folders = ../shared-lib, ~/code/common`) are part of it. A
|
|
330
|
+
project's own rules file can't add folders. Deleting one of those folders whole is still asked about. Temp folders,
|
|
331
|
+
tool caches (`~/.npm`, `~/.cache`, `~/Library/Caches`, `~/.cargo/registry`, `~/.gradle`, Xcode's DerivedData, Go's
|
|
332
|
+
and Bun's caches) and a tool's own output (`node_modules`, `__pycache__`) are never outside it. Outside your project,
|
|
333
|
+
a folder named `build`, `out` or `coverage` is no exception: the name says nothing of what it holds.
|
|
334
|
+
- **Judged by what it reaches on disk.** Anvil expands a delete's wildcards and follows the links the command follows.
|
|
335
|
+
With a test copy's `data` linked to live files outside your project, these are held: `rm -rf copy/*/*`,
|
|
336
|
+
`rm -rf copy/*/`, `rm -rf copy/data/*`, `find -L copy -delete`, `find copy -follow -delete`, `find copy/data/ -delete`,
|
|
337
|
+
and on Windows, `Remove-Item -Recurse` into a junction. `rm -rf copy`, `rm -rf copy/*` and
|
|
338
|
+
`rm -rf copy/data` remove only links, so they run. A loop or `xargs` handed what `find` or `ls` lists is judged by
|
|
339
|
+
the folders listed: `find ~/Documents -name '*.pdf' | while read f; do rm "$f"; done` and
|
|
340
|
+
`ls -d ~/code/* | xargs rm -rf` are held. A project you reach through a link is still your project. Also held: a
|
|
341
|
+
change through a link that loops, a delete whose links can't all be followed in a fifth of a second, and a write that
|
|
342
|
+
makes or rewrites a `.git` outside your project.
|
|
343
|
+
- **A delete Anvil can't place.** Where a variable or a `$(…)` hides the folder, a wide delete is held, naming what
|
|
344
|
+
Anvil can't place: a recursive or wildcard delete after a `cd` Anvil can't follow (`cd "$OUT" && rm -rf *`,
|
|
345
|
+
`cd - && rm -rf x`), and a recursive delete of a pattern under such a folder (`rm -rf "$X"/build/*`): "would delete
|
|
346
|
+
$OUT/* (Anvil can't tell where $OUT is)". These still run, noted: one path a variable names (`rm -rf "$VAR"`), one
|
|
347
|
+
file after such a `cd`, a pattern without `-r` (`rm -f "$OUT"/*.log`) and what `find`'s filter finds there; in
|
|
348
|
+
scripts those are mostly their own temp files. A variable set earlier on the line, one Claude Code's environment
|
|
349
|
+
holds (unless the line sources a script or sets it), `$HOME`, `$TMPDIR` and `$PWD` are judged by where they point,
|
|
350
|
+
and so is another account's home: `rm -rf ~root/old` is held.
|
|
351
|
+
- **Claude Code started in your home folder.** The home folder isn't counted as the project, so deletes in it are asked
|
|
352
|
+
about.
|
|
353
|
+
- **Writes and edits outside are watched, not held.** On real history they were everyday work: 1,155 writes into other
|
|
354
|
+
projects and test folders in 48 days. They are a kind of their own, "Change files outside the project": space on its
|
|
355
|
+
row, or `anvil claude enforce outside-project`, holds every one. A delete of one path Anvil can't place
|
|
356
|
+
(`rm -f "$OUT"`) is in that kind too.
|
|
357
|
+
- **Quiet.** On 174,063 real calls over 51 days it would have asked 259 times (0.15 per 100), within the bar Anvil's
|
|
358
|
+
other rules meet.
|
|
359
|
+
- **Typed and imported rules read it.** "Never modify files outside the project", "stay in this folder" and "don't
|
|
360
|
+
touch anything outside the repo" now become rules, in the box and from a CLAUDE.md. "Delete stuff outside the
|
|
361
|
+
project" stays a rule on deletes outside it, as "deletes outside the project" was.
|
|
362
|
+
- **"Never delete anything outside the project" blocks every delete and move there.** Typed, or imported as "Never
|
|
363
|
+
delete files outside the repo.", it was the folder-delete rule narrowed: `rm -rf` outside was blocked, but
|
|
364
|
+
`rm ~/notes.txt`, `rm -f`, `unlink` and a move away (`mv ~/x ~/Desktop/`) got only Anvil's own hold, and ran once
|
|
365
|
+
outside-folder was off. The hook now records what a change outside does there (a delete, a move or a write) and
|
|
366
|
+
where it lands, from Bash, the Write and Edit tools and a command an MCP tool runs, and the line blocks each delete
|
|
367
|
+
and move outside, with outside-folder on or off. A write or edit outside still runs, watched as its kind; "never
|
|
368
|
+
write … outside …" is that whole kind. The read-back says both: "deletes and moves outside the project are blocked
|
|
369
|
+
· writes and edits outside the project, and deletes inside it, run". Anvil's own outside-folder decides as before.
|
|
370
|
+
|
|
371
|
+
### Anvil for Claude Code: holds throwing away uncommitted work, on by default
|
|
372
|
+
|
|
373
|
+
- **A new rule of Anvil's own, on from the first call.** Claude asks before `git reset --hard`, checking out or
|
|
374
|
+
restoring every file, `git rm -rf .`, `git clean -f`, forcing a checkout or a switch, dropping or clearing a stash,
|
|
375
|
+
or removing a worktree with changes. Turn it off on the rules screen, like Anvil's other rules.
|
|
376
|
+
- **Every file, however it's named.** A path is read from the folder the command runs in, after a `cd` or `git -C`:
|
|
377
|
+
from `src/`, `git checkout -- ..` is every file, and so are the project's own path (absolute or with `~`), `"$PWD"`,
|
|
378
|
+
`$(pwd)`, `./.` and `:/`. So is a list Anvil can't read before it runs: `git ls-files -m | xargs git checkout --`,
|
|
379
|
+
`git restore $(git diff --name-only)`, `--pathspec-from-file`. `-f` counts inside a cluster (`git checkout -qf main`),
|
|
380
|
+
and git's plumbing counts too (`git checkout-index -a -f`, `git read-tree -u --reset`, `git -c
|
|
381
|
+
clean.requireForce=false clean`).
|
|
382
|
+
- **Every stash, whoever made it.** A stash Claude made holds whatever was uncommitted then, your edits too, so
|
|
383
|
+
dropping or clearing any stash asks. Dropping the stash a line just re-applied, once the apply worked (`git stash
|
|
384
|
+
apply && git stash drop`), runs.
|
|
385
|
+
- **Only what loses uncommitted work.** Restoring one file or a folder you name runs (`git checkout -- src/a.ts`, `git
|
|
386
|
+
restore src/`), and so do `git stash`, `pop`, `apply` and `branch`, and any of these in a temp or scratch folder.
|
|
387
|
+
Deleting a branch or rewriting history stays with the kind, renamed "Throw away git work", watched unless you hold
|
|
388
|
+
it.
|
|
389
|
+
- **Only when there is something to lose.** Anvil asks git first, in the folder the command runs in, and Claude asks
|
|
390
|
+
you only when something would go, named: "would throw away 3 changed files and 2 untracked files (git reset
|
|
391
|
+
--hard)", "would throw away stash@{0}: On main: wip (git stash drop)". On a clean checkout, with only untracked
|
|
392
|
+
files for a reset, or with no stash, it runs. `git clean` counts ignored files only with `-x` or `-X`, and a restore
|
|
393
|
+
from the index keeps what you staged. If git can't answer within 300 ms, or Anvil can't be sure where the command
|
|
394
|
+
runs, it asks as before. So does `git rm -rf .` or `git worktree remove --force` with a submodule in reach: git
|
|
395
|
+
deletes the submodule's files (for a worktree, its repository too), and a submodule's own edits aren't in what git
|
|
396
|
+
tells Anvil.
|
|
397
|
+
- **Not seen yet.** A path in a variable (`git checkout -- $FILES`), `git submodule foreach`, and a discard inside
|
|
398
|
+
`powershell -Command` or `cmd /c` run from the Bash tool.
|
|
399
|
+
- **Quiet.** On 181,288 real calls over 51 days it would have asked 37 times (0.02 per 100), within the bar Anvil's
|
|
400
|
+
other rules meet, before counting the ones that had nothing to lose.
|
|
401
|
+
- **Typed and imported rules read it.** "Never git checkout -- .", "don't drop stashes", "never delete branches" and
|
|
402
|
+
"never run git clean" now become rules, in the box and from a CLAUDE.md, with no catch.
|
|
403
|
+
|
|
404
|
+
### Anvil for Claude Code: keeps .env out of the chat, on by default
|
|
405
|
+
|
|
406
|
+
- **A new rule of Anvil's own, on from the first call.** Claude asks before a call would show a project's `.env`, a
|
|
407
|
+
private key or `credentials.json` in the conversation: the Read tool, an app's (MCP) file read, any command that
|
|
408
|
+
prints one however it names it (`cat .env*`, `head -n 20 .env.*`, `cat -e .env`, `tail -f .env`, `grep -v NODE_ENV
|
|
409
|
+
.env`, `jq '.private_key' credentials.json`, `git show :.env`, `git diff -- .env`), and Grep showing the lines of one
|
|
410
|
+
its path or glob names. Turn it off on the rules screen, like Anvil's other rules.
|
|
411
|
+
- **Searches and lists, as your disk holds them.** A recursive `grep` or `rg`, Grep showing the lines it finds in a
|
|
412
|
+
folder, a pattern that may reach one (`cat config/*`) and a list fed to a printer (`find … -exec cat`, `… | xargs
|
|
413
|
+
cat`, `cat $(find …)`) ask only when a secrets file the program would read is there and, for a search, the pattern
|
|
414
|
+
matches a line of it. Anvil reads the folder as the program does: hidden files, what git ignores (in a large checkout
|
|
415
|
+
it skips the ignored folders, as rg does), `--include`, `-g`, Grep's glob and type, find's `-name`. It asks about a
|
|
416
|
+
search it can't check: of your home folder, its Library or a folder in a variable, one too large to check in a
|
|
417
|
+
quarter of a second, or of a folder the same line may make first. A large checkout takes about half the time to
|
|
418
|
+
check (43,000 files and folders: 53 ms, 69 ms on a busy Mac), so being busy doesn't tip a search there into a hold.
|
|
419
|
+
- **Using it still runs.** `source .env && npm start`, `dotenv run` and `docker compose --env-file` run as before, and
|
|
420
|
+
so do: the names alone, in a known whole form (`cut -d= -f1`, `grep -oE '^[A-Z_]+='`, `awk -F= '{print $1}'`, `sed
|
|
421
|
+
's/=.*//'`, `jq keys`), piped on through `sed` or `sort` too; a count or a hash (`| wc -l`, `| shasum`); templates
|
|
422
|
+
like `.env.example`; Grep listing file names (its default) or counting, and its lines when its glob or type leaves
|
|
423
|
+
secrets files out (`*.ts`, `!**/.env*`); a project's `.npmrc`; and `~/.ssh/authorized_keys` and public
|
|
424
|
+
certificates, which hold no secret.
|
|
425
|
+
- **It says what it would show, never a value.** The hold names the file and how many keys it holds, and tells Claude
|
|
426
|
+
how to list the names without the values, which runs: often all Claude wanted, with no one asked.
|
|
427
|
+
- **Quiet.** On 176,610 real calls over 51 days it would have asked 23 times (0.013 per 100), 5 of them for real
|
|
428
|
+
values. Checked against today's disk, its searches would add about 21 more, 1 of them for a real value. That history
|
|
429
|
+
holds no Grep call; asked again as Grep calls, its 8,180 content searches of a folder would add about 20 more, each
|
|
430
|
+
too large to check in time, under `~/Library`, or with a pattern Anvil reads as matching.
|
|
431
|
+
- **What it can't see.** A script that reads `.env` and prints it (`python -c`, `node -e`), a secrets file under a
|
|
432
|
+
name Anvil doesn't know (`prod.env`), one named like code (`.env.ts`) found by a search narrowed to that kind
|
|
433
|
+
(`*.ts`), and `git grep`, `ag` or `ack`: the rule covers the files Claude reads or prints by the commands it knows.
|
|
434
|
+
- **Fixed on the way.** `awk -i inplace` on a secrets file is an edit, as `sed -i` is, not a print. Git printing a
|
|
435
|
+
secrets file (`git show rev:.env`, `git blame`, `git log -p`) is now seen. On Windows, `type` and `Get-Content` print
|
|
436
|
+
a file. Watching the secrets kinds, or `discard`, says that Anvil's own rules still hold their part.
|
|
437
|
+
|
|
438
|
+
### Anvil for Claude Code: /anvil agrees with the report
|
|
439
|
+
|
|
440
|
+
- **The same number of rules.** /anvil counted one fewer than `anvil claude report` and the rules screen on a fresh
|
|
441
|
+
install: it left out the day-one row. Every place now counts it the same way.
|
|
442
|
+
- **No sign-in line.** Signed out, /anvil no longer shows a Dashboard line pointing at `login`. A machine already linked
|
|
443
|
+
to a workspace still shows its line.
|
|
444
|
+
|
|
445
|
+
### Anvil for Claude Code: security fix · a budget's OK let one more action through
|
|
446
|
+
|
|
447
|
+
- **A budget's OK now only goes past the budget.** While a budget was spent, its hold stood in for everything else the
|
|
448
|
+
action would be held for, so the action could be asked about again afterwards. For an edit, a write or a connected
|
|
449
|
+
app's action, that OK ran the action as well, even one Anvil always asks about, such as a change to Claude Code's own
|
|
450
|
+
settings. Only an action held for a spent budget and then allowed was affected, and blocked actions stayed
|
|
451
|
+
blocked. In 0.8.1, 0.9.0 and 0.9.1. The budget now spends its own OK, and the action is then judged for what it does.
|
|
452
|
+
- **The same for a second opinion** whose price would pass a budget: its OK no longer covers the action's own holds.
|
|
453
|
+
- **A budget's OK is for the task, whatever it was given at.** Given at an edit, it covered only that edit.
|
|
454
|
+
- **With two budgets spent, each is asked about**, before an action and before a message. An OK for the first also let
|
|
455
|
+
one action past the second, and any message. A message uses none of the OKs until every spent budget has one.
|
|
456
|
+
|
|
457
|
+
### Anvil for Claude Code: security fix · a patch or archive named by a pattern wasn't checked
|
|
458
|
+
|
|
459
|
+
- **A pattern is now every file a shell makes of it.** A step that brings in a change to Claude's own settings or
|
|
460
|
+
Anvil's rules is always held. One that named its file by a pattern (`git apply patches/*.patch`, `tar -xf {a,b}.tar`)
|
|
461
|
+
ran unheld: the pattern was looked for as a file of that very name, and never found. In 0.7.0 to 0.9.1. Each file
|
|
462
|
+
bash, sh or zsh may make of it is now read, and only a change to one of those files holds it.
|
|
463
|
+
- **Where that can't be told, it is held:** a pattern after another command on the line, which may make a file it names
|
|
464
|
+
(`cp x p/2.patch && git apply p/*.patch`), `**`, what zsh alone expands, or more than can be read in a second.
|
|
465
|
+
- **A hidden file among them, too.** A hidden file a pattern finds (a shell may be set to name it) that tar couldn't
|
|
466
|
+
list was skipped as the Mac's `._a.tgz`, yet tar unpacks an archive up to its first broken entry. Now it is held
|
|
467
|
+
unless it can't be an archive (the Mac's own file, or plain text), and so is a hidden patch that can't be read.
|
|
468
|
+
|
|
469
|
+
### Anvil for Claude Code: security fix · a repository's file filter could run while Anvil checked a step
|
|
470
|
+
|
|
471
|
+
- **Anvil's own check no longer runs a program the repository names.** Before a reset, a forced checkout or a restore,
|
|
472
|
+
Anvil asks git which of Claude's settings files the step would change. Reading the work tree runs the clean filter
|
|
473
|
+
of each touched file whose attributes name one, a program from the repository's config, and Anvil looked for one
|
|
474
|
+
only in `.gitattributes` and `.claude/.gitattributes`. Named in `.git/info/attributes`, a folder's own
|
|
475
|
+
`.gitattributes` or `core.attributesFile`, it ran inside Anvil's hook, outside Claude Code's permission checks. In
|
|
476
|
+
0.7.0 to 0.9.1. Every filter the config lists is now turned off for the check, as for keep-work's own question, and
|
|
477
|
+
a step with a filter Anvil can't turn off is held. Nor does the check look inside a submodule any more: to see if
|
|
478
|
+
its files had changed, git ran a status in it, under the submodule's own config, whose filters ran too.
|
|
479
|
+
|
|
480
|
+
### Anvil for Claude Code: an approval window on macOS, where Claude can't show its own prompt
|
|
481
|
+
|
|
482
|
+
- **Claude waits for you, wherever it runs.** Where Claude Code can't show its own Yes/No prompt (headless and
|
|
483
|
+
background runs, the desktop app under Bypass, an editor in auto mode, a spent budget), a hold was a denial with a
|
|
484
|
+
code to run in a terminal. On a Mac, Anvil now opens a window that says why and shows exactly what Claude wants to
|
|
485
|
+
do. Nothing has run, and Claude waits up to 5 minutes, then follows your answer and goes on by itself.
|
|
486
|
+
- **It looks like part of your Mac:** Apple's glass in your light or dark mode, Anvil's logo, Claude Code by name with
|
|
487
|
+
the Claude icon your Mac has, the folder, the time left, and two buttons of one size. A button that needs you to read
|
|
488
|
+
to the end first says so.
|
|
489
|
+
- **Touch the Touch ID sensor to allow it, or click Allow** for Touch ID, a paired Apple Watch or your Mac password. A
|
|
490
|
+
click or a key alone can't allow anything, and a touch needs no click. Its line says what works at that moment.
|
|
491
|
+
- **A touch meant for something else doesn't count.** macOS gives one only to the window that has the keyboard, so the
|
|
492
|
+
window borrows it, and the app in front stays in front. By itself it does that once, where the app Claude runs in is
|
|
493
|
+
in front and you haven't typed or clicked for 2 seconds. In any other app (and in a terminal it can't tell is
|
|
494
|
+
Claude's, like tmux) you point at the window first: a touch there may be for that app's own prompt, such as a
|
|
495
|
+
passkey, and nothing can see those from outside. It never borrows it from a password field, an open menu, a drag or
|
|
496
|
+
a held key. You have it back as you type, click elsewhere or move to another app, and, once you pointed, as the pointer leaves (at most one
|
|
497
|
+
key is lost, and none answers anything). A touch counts only after a second and a half of that, with the whole
|
|
498
|
+
request in view and nothing over it, the display on, your Mac unlocked and no Touch ID or password window of macOS's
|
|
499
|
+
up. A finger already on the sensor doesn't count. One that does waits a second and is checked again, as pressing
|
|
500
|
+
Touch ID to lock your Mac is a touch too; Don't Allow still works in that second. Once another app's prompt ends it,
|
|
501
|
+
it waits for you to point at it. With VoiceOver, or once macOS says touches don't match, it is a click. One limit is
|
|
502
|
+
left: a prompt inside the app Claude runs in, with no pointer near the window, can't be told apart.
|
|
503
|
+
- **Anything else allows nothing:** quitting the window, a crash, a timeout, a locked Mac, or a missing or changed
|
|
504
|
+
window program. If Claude Code stops or closes, the window closes with it.
|
|
505
|
+
- **An OK is for the one action shown**, not another like it or one waiting beside it. The action is checked again
|
|
506
|
+
before it runs. Anything blocked by then stays blocked. Another rule, or a cap reached, changed or used more since,
|
|
507
|
+
is asked about. So is anything the action does or uses that has changed, and the question says what: each file it
|
|
508
|
+
or its scripts name, or a connected app is given, by its contents (a patch, an archive, an attachment, a script of any
|
|
509
|
+
size), the model a rule starts a helper on, and, where git or gh runs, the branch, its commit, what else it names
|
|
510
|
+
there, git's settings and its hooks. Helpers reaching their at-once cap are never covered. A budget's OK lets the task
|
|
511
|
+
go on, as `allow` does, and the action is then asked about for what it does.
|
|
512
|
+
- **One unchanged action is asked about once.** What changes by itself isn't asked about: the time, a cap with room
|
|
513
|
+
again, a process that has ended, logs, databases, locks, where output goes, a folder made again, a fetch in the
|
|
514
|
+
background, and the notes editors and other tools keep in git's settings. The words of a commit message aren't taken
|
|
515
|
+
for branches.
|
|
516
|
+
- **What it can't know.** Anvil finds names the ways people write them. It doesn't compare what is in a folder, what is
|
|
517
|
+
staged, or what a Makefile or `package.json` runs, and it can't see every file a program may open. If it can't look
|
|
518
|
+
at what it does compare within 1.5 seconds, or looking goes wrong, the window isn't used and you get the code.
|
|
519
|
+
- **The reason names all of it.** A git, patch or archive step that changes several of Claude's own settings names three
|
|
520
|
+
and counts the rest (it named one). A helper says the model a rule starts it on. A push that names no remote names a
|
|
521
|
+
few of the repositories it may reach. A reason too long to show once its hidden characters are written out
|
|
522
|
+
offers no OK, rather than being cut short.
|
|
523
|
+
- **If the window can't open, you get the code, not a long wait.** A program that hasn't started within 20 seconds is
|
|
524
|
+
stopped. So is one whose window fails to be made, or isn't up 15 seconds after its turn comes. A home folder on a
|
|
525
|
+
drive that can't lock files gets the code at once. The window stays on screen when displays change, and says when
|
|
526
|
+
macOS closes its own question.
|
|
527
|
+
- **You see all of it, as it will run.** The text is never shortened or masked. Anvil's own marks, drawn apart so no
|
|
528
|
+
text can imitate one, show what can't be seen: hidden characters, every tab (one can be as narrow as nothing, so two
|
|
529
|
+
paths would read as one), spaces past one between words, spaces that end a line, long gaps, and the names of what a
|
|
530
|
+
tool is given. Lines that will run are numbered, so one that only wraps can't pass for another. `↪` marks a word
|
|
531
|
+
that goes on from the line above, so two can't pass for one. Text always reads left to right. Every reason is whole,
|
|
532
|
+
so no rule or cap an OK covers is out of sight, with a line break in a name shown as `↵`. Anything longer than its
|
|
533
|
+
box must be read first: all of it on screen, with nothing jumped over. A call or its reasons too long to show, or a
|
|
534
|
+
window too tall for the screen, keeps the code.
|
|
535
|
+
- **It doesn't nag.** It never takes the keyboard from someone typing, and one opens at a time. A call waiting behind another is checked
|
|
536
|
+
again before it opens, since that answer may have settled it. After Don't Allow, or no answer, that call isn't asked
|
|
537
|
+
about again until you send Claude a new message. Three that aren't allowed within ten minutes stop the window in that
|
|
538
|
+
session for a while. If no one answers, nothing runs: ask Claude to try again, or run `anvil-claude allow`. It
|
|
539
|
+
doesn't open while no one has used the Mac since one went unanswered.
|
|
540
|
+
- **A no in the window counts as declined** in the report and Proof, and it's for that call alone: another like it that
|
|
541
|
+
is still waiting stays.
|
|
542
|
+
- **`on` brings every place Anvil is on up to date together.** Two entries that differ both answer for an action, and
|
|
543
|
+
the older one could refuse what you had just allowed. The report says when a time limit was changed by hand.
|
|
544
|
+
- **In a burst** (more than 20 deletes in a minute, or helper launches in ten), the window and Claude's own prompt say
|
|
545
|
+
that a yes lets it go on.
|
|
546
|
+
- **You're told how you'll be asked.** `on` says it in one line: Claude asks, and where it can't, the pop-up does (off
|
|
547
|
+
a Mac, Anvil shows a command to run). Help has it under "Your OK". Claude is told about the pop-up as a session
|
|
548
|
+
starts, so it can say where to look. `enforce` had said that Claude Code always asks.
|
|
549
|
+
- **`anvil-claude popup` shows a sample** that approves nothing. The report says when the window can't open, and the
|
|
550
|
+
fix. `ANVIL_NO_WINDOW=1` turns it off and keeps the codes.
|
|
551
|
+
- **Where it doesn't open, the code stays:** Linux and Windows, over SSH, under CI, in `dontAsk`, with the plugin alone,
|
|
552
|
+
and on Claude Code before 2.1.295, which runs a call when its hook takes too long. A tool call's hook now has 330
|
|
553
|
+
seconds, set beside how long it may wait, so an older entry never waits. A check still stops itself at 5 seconds
|
|
554
|
+
and holds the call. The window's program also says no on macOS 11 and older. Work it can't interrupt, like a read from a drive that doesn't answer, ends at Claude Code's
|
|
555
|
+
limit instead, and the call is held there too. Helpers at their cap are never asked about: Claude waits for one to
|
|
556
|
+
finish.
|
|
557
|
+
|
|
558
|
+
### Anvil for Claude Code: its own card when something held still waits
|
|
559
|
+
|
|
560
|
+
- **A card of Anvil's own, in place of a notification that looked like Script Editor's** (and opened it when clicked).
|
|
561
|
+
It looks like the approval window: Apple's glass in your light or dark mode, Anvil's logo, what is held, the folder,
|
|
562
|
+
and how to allow it. One click copies the command, which is always shown whole. It approves nothing.
|
|
563
|
+
- **It comes when no one answered the window, or where only a code can allow a hold.** It says which way on works: ask
|
|
564
|
+
Claude to try again, or run the command. Helpers at their cap have none: they wait for one to finish.
|
|
565
|
+
- **It waits for you.** It stays until you have used the Mac for 15 seconds with it on screen (60 with VoiceOver): time
|
|
566
|
+
away, locked or asleep doesn't count, and it stays while the pointer is over it. It closes by itself once the hold is
|
|
567
|
+
allowed, or has gone another way, or Anvil is turned off.
|
|
568
|
+
- **It doesn't nag, and is never in the way.** One is up at a time, and a newer hold takes the place of one that is up
|
|
569
|
+
without arriving again. With none up, the next in a session waits until a minute after its last one closed with that
|
|
570
|
+
hold still waiting, and then comes if its own hold still waits. It steps aside while an approval window is open, makes
|
|
571
|
+
no sound, never takes the keyboard, and ignores clicks for its first moments. It doesn't come over SSH or under CI, and
|
|
572
|
+
`ANVIL_NO_NOTIFY=1` turns it off. The plugin alone doesn't have it.
|
|
573
|
+
- **The command a person is told to run comes only from a record of Anvil's whose seal holds.** It was read from
|
|
574
|
+
`install.json` whether or not something else had changed it, so a held message could name another command (beside a
|
|
575
|
+
warning that the file was changed). It now comes from the rules' own sealed record or the launcher then, and no card
|
|
576
|
+
comes.
|
|
577
|
+
|
|
578
|
+
### Anvil for Claude Code: in auto mode, a hold is Claude's own Yes/No prompt
|
|
579
|
+
|
|
580
|
+
- **Auto mode asks where you are.** A hold there was always a denial with a code to allow in a terminal, in the desktop
|
|
581
|
+
app and the terminal alike. It is now Claude Code's own prompt: Claude waits, Yes runs it once and Claude goes on, No
|
|
582
|
+
stops it. Helper agents ask too. From Claude Code 2.1.322, the oldest measured; anything older, VS Code, headless
|
|
583
|
+
runs, a spent budget, `SubagentHandback` (whose ask runs unprompted in auto mode) and Bypass in the desktop app (where
|
|
584
|
+
an ask once ran with no prompt) keep the code.
|
|
585
|
+
- **The prompt says what Yes does**: "Held by Anvil for your OK · pushes to main (a deploy) · Yes runs it once".
|
|
586
|
+
- **Wherever an OK is asked for, the reason is whole**: in Claude's own prompt, in the message with a code, and in
|
|
587
|
+
`allow`'s list. It was cut at 160 characters, or at the terminal's width, so a long one could leave out a rule or a
|
|
588
|
+
cap that the OK covered. Past 4,000 characters no OK is offered, and Claude is told to take smaller steps. Records
|
|
589
|
+
and the card stay short.
|
|
590
|
+
- **A reason says everything its OK covers.** A cap reached by one part of a line could take the place of what was held
|
|
591
|
+
in another. Caps are now beside the reason, a cap that can't count the action is named as well, and so is a daily
|
|
592
|
+
cap beside the at-once one. A rule on a repository says every repository it read.
|
|
593
|
+
- **A long session asks the same way.** Claude Code's version is read from the end of the session's file, where many
|
|
594
|
+
lines don't name it, some over a megabyte. At those moments a hold could fall back to a code. Up to 2 MB is now read.
|
|
595
|
+
- **Commands Anvil suggests as it runs paste as they are written.** Words with a `$`, like "$50 a day", are in single
|
|
596
|
+
quotes: in double quotes, a shell changes the amount.
|
|
597
|
+
|
|
598
|
+
### Anvil for Claude Code: Anvil's own rules are on by default, and you can turn each one off
|
|
599
|
+
|
|
600
|
+
- **Each has a switch of its own.** They were "always on", and nothing turned one off. On the rules screen, space on one
|
|
601
|
+
asks "This is an Anvil default. Turn it off?", and only `o` does. Space turns it back on. Wiping your home folder or
|
|
602
|
+
project, force-pushing main and killing every process were one rule; they are three.
|
|
603
|
+
- **Off is that rule alone.** It is left out of the judging, so every other rule, Anvil's and yours, still judges the
|
|
604
|
+
call. With "Force-push main" off, your own rule on force-pushes still stops one, and so does one on pushes to main,
|
|
605
|
+
which Anvil's block had stood in for. With "Use your account keys" off, sending a secrets file is still held where
|
|
606
|
+
Claude says it's on production. Wiping your home folder would take
|
|
607
|
+
Anvil with it, so it still needs your OK while "Change Anvil" is on.
|
|
608
|
+
- **Two keep the others working, and say so when you turn them off.** With "Change Anvil" off, Claude can turn off your
|
|
609
|
+
other rules, and the screen says that for as long as it is. With "Anything Anvil can't check" off, a command Anvil
|
|
610
|
+
can't read runs; a spent budget still holds it, and what Anvil could read of it is still judged.
|
|
611
|
+
- **Only you can, at your own terminal**: the rules screen, or `anvil claude off <rule>`. No `rules.md`, project,
|
|
612
|
+
workspace, other command, paste or file changed outside Anvil turns one off, and Claude can't. Where the modes' seal
|
|
613
|
+
doesn't hold and Anvil has no good copy, every one is on.
|
|
614
|
+
`enforce` turns back on those it names, or all of them. `ghost` turns none off. It stays as you left it when `on` runs
|
|
615
|
+
again.
|
|
616
|
+
- **Anvil not working still holds every call**, whatever is off: its rules missing, its checker broken, or a call it
|
|
617
|
+
read and couldn't judge.
|
|
618
|
+
- **Nothing claims a rule that is off**: not Home, the report, `rules`, the line as a session starts, or what Claude is
|
|
619
|
+
told then. Replay says its counts are by default.
|
|
620
|
+
Messages say "on by default" in place of "always on", and a block says where its rule is changed.
|
|
621
|
+
|
|
622
|
+
### Anvil for Claude Code: pasted rules, what an import left out, and CLAUDE.md for what Anvil can't enforce
|
|
623
|
+
|
|
624
|
+
- **A rule Anvil can't enforce can go in your CLAUDE.md.** Once the box says it adds nothing for your words, tab adds
|
|
625
|
+
them to the CLAUDE.md Claude Code reads (yours, or the project's beside a project's rules), under "Added from Anvil",
|
|
626
|
+
made if there is none: "Added to ~/.claude/CLAUDE.md, for Claude. Anvil doesn't enforce it." Never twice; a file it
|
|
627
|
+
can't write is said, and your words stay in the box.
|
|
628
|
+
|
|
629
|
+
- **Paste several rules into the box** (lines copied from a CLAUDE.md, with list marks or without) and they open the
|
|
630
|
+
same review a file does: each rule found, beside its line, and nothing saved until you choose. Before, each line's
|
|
631
|
+
enter saved it on its own, list mark and all. One line pasted goes in the box without its list mark.
|
|
632
|
+
- **After an import, it says what it didn't add, and why**: "Not added: 1 can't be enforced yet · 7 are advice for
|
|
633
|
+
Claude. They stay in CLAUDE.md."
|
|
634
|
+
|
|
635
|
+
### Anvil for Claude Code: a rule typed in plain words says what it became
|
|
636
|
+
|
|
637
|
+
- **Each rule is named as your rules list names it**: "Push or merge to main: each one is blocked", not "every
|
|
638
|
+
push-main is blocked".
|
|
639
|
+
- **More than one rule in a line is said before enter**, never shown as one rule with one verb. Enter shows each, and
|
|
640
|
+
what wasn't covered, with why.
|
|
641
|
+
- **"Ask before spending more than $20 a day" is a $20-a-day budget**, as "keep spending under $20 a day" was.
|
|
642
|
+
- **Words Anvil reads only as a whole aren't added on that alone**, and it now gives the line to type that adds the
|
|
643
|
+
rule: `Type "hold: lock the infra folder" to add it`.
|
|
644
|
+
|
|
645
|
+
### Anvil for Claude Code: one simple list of rules, and an import that explains itself
|
|
646
|
+
|
|
647
|
+
- **One list, every row the same**: what Claude might do, and one word for where it stands: on or off for Anvil's own,
|
|
648
|
+
and block, hold, watch or off, as you type them, for the rest. Blue stops Claude, grey doesn't. The headings are On,
|
|
649
|
+
Watching and Off. Every row can be chosen, and the line under the list says what it does. These replace the "from the
|
|
650
|
+
start" and "worst held" words below.
|
|
651
|
+
- **Rules about one thing are together**: files, git, data and what is live, secrets, this machine, runaway loops, and
|
|
652
|
+
Anvil itself. Yours come first, then your limits.
|
|
653
|
+
- **A default that holds part of a kind says which part** ("database folders only"). Space asks before it changes one,
|
|
654
|
+
to hold all, watch all or off, and can bring it back where no workspace keeps the modes.
|
|
655
|
+
- **No budget until you add one.** Then it is a rule like the rest, with what it has used. Space changes its amount and
|
|
656
|
+
its period in place, and never another line if the file changed meanwhile. A limit that does just what it says is only
|
|
657
|
+
"on"; one that is used up, can't be measured or has a gap says so in full, and one that needs you isn't counted as on.
|
|
658
|
+
- **Type any rule, roughly.** Words Anvil can't read get the closest rule it can enforce: "max 5 helpers", "50 a day",
|
|
659
|
+
"save money" and "hold deplyos" each offer the line that enter adds. "Lock a folder" asks which one. Words that
|
|
660
|
+
already read as a rule are only that rule. Words that ask for less ("no limit on spending", "stop asking before
|
|
661
|
+
deplyos") are never offered one. Four kinds didn't mean what they were read as: "turn off force-push main" and "let
|
|
662
|
+
claude deploy" added a hold, and now say how to turn a rule off; "spend less" and "max spend 30 per task" held paid
|
|
663
|
+
compute; "50/day" was a file. `rules add` offers the same.
|
|
664
|
+
- **A `rules.md` with Windows line endings can be changed from the screen.** Space on a rule of yours in one stopped the
|
|
665
|
+
screen with an error.
|
|
666
|
+
- **An import shows each rule to keep or leave out**, then comes straight back: "3 rules added: enforced now", each
|
|
667
|
+
marked. A file with no rules says what its lines are, quoting one, what Anvil does enforce, and what to do next.
|
|
668
|
+
`rules import` typed prints as before.
|
|
669
|
+
|
|
670
|
+
### Anvil for Claude Code: a rules screen that shows what is on, and takes a dropped CLAUDE.md
|
|
671
|
+
|
|
672
|
+
- **What is on shows as on.** The rules screen opened on "0 on · 20 watching" on a fresh install, though Anvil held
|
|
673
|
+
cluster, cloud and database destroys and printed cloud credentials, and its always-on stops were folded to a count.
|
|
674
|
+
The list now opens on every stop in force, in blue. Where Anvil isn't on
|
|
675
|
+
(never turned on, turned off, on for another project only, or Claude Code's hooks turned off), it says nothing is
|
|
676
|
+
checked, with the fix, and calls nothing on.
|
|
677
|
+
- **Losing one of those holds is said.** Any mode chosen for a kind replaces its hold from the start, so taking
|
|
678
|
+
`db-destroy` round with space (watch, hold, off, watch) let a production database drop run, on a row that read the same
|
|
679
|
+
as before. An import's "Watch them first" did the same. The screen, `rules add` and an import now say "No longer held:
|
|
680
|
+
remote and production database destroys." as it happens, for every kind that starts with one (`gh repo delete` among
|
|
681
|
+
them), and an import says it before you choose. What each mode does hasn't changed.
|
|
682
|
+
- **One cursor.** It starts in the Add a rule box, and ↑↓ walk to Import under it and the rules. Space and ⌫
|
|
683
|
+
change a rule only with the cursor on it: before, ⌫ pressed twice after adding a rule removed it again, and a space
|
|
684
|
+
in the empty box switched the first rule. Editing the box's words moves the cursor there, so holding ⌫ to clear them
|
|
685
|
+
stops when they are gone.
|
|
686
|
+
- **Adding a rule shows it, and you keep typing.** The cursor stays in the box; what was added is said under it, and
|
|
687
|
+
the list scrolls to it, marked ✓ with its mode. A save that was refused is never said to be added.
|
|
688
|
+
- **Import a CLAUDE.md from the screen, or drop one on it.** Import your CLAUDE.md lists the files here and takes one
|
|
689
|
+
dragged onto the window, in the form each terminal types its path. A CLAUDE.md dropped in the box is read for its
|
|
690
|
+
rules too: before, enter saved "hold: edits to" it. Only text files up to 1 MB are read, never a pipe or a device.
|
|
691
|
+
A folder dropped into a rule goes in quotes unless its name is plain: without them `~/My Docs/` was read as two
|
|
692
|
+
folders, `~/My` and `Docs/`.
|
|
693
|
+
The import's last question is chosen with the arrows, then you are back on the screen. Keys pressed while it was
|
|
694
|
+
still reading are dropped: an early enter used to enforce rules nobody had seen yet.
|
|
695
|
+
- **A CLAUDE.md heading with a long run of spaces is read in one pass**: 4,000 of them took 14 seconds.
|
|
696
|
+
- **Run from your home folder**, the import reads your own CLAUDE.md once, not twice.
|
|
697
|
+
|
|
698
|
+
### Anvil for Claude Code: a short screen once it is on, and a clearer Home
|
|
699
|
+
|
|
700
|
+
- **Turn it on ends on one short screen**: "Anvil is on and working.", how it starts, and what to do now, chosen with
|
|
701
|
+
the arrows (start Claude Code here or in the desktop app, make a rule, Home). With anything to fix, that is shown
|
|
702
|
+
instead. A hook that doesn't answer its test is never said to be on, and starting Claude Code is never the next step.
|
|
703
|
+
- **`on` says nothing about the web dashboard**, a refused key included: `report` and `sync` still do.
|
|
704
|
+
- **The usage notice is shorter.** In `on`, it is remembered once all of it has been on screen, and only then is
|
|
705
|
+
anything sent: a terminal too short for it, or a key pressed early, used to mark it as shown.
|
|
706
|
+
- **Home's suggestion reads as one** ("Suggested: hold deletes", "1 seen this week") and is never first, so enter on a
|
|
707
|
+
Home just opened can't switch a hold on. A long one no longer cuts the commands beside it. The footer says
|
|
708
|
+
`q` quits to type commands.
|
|
709
|
+
|
|
7
710
|
## [0.9.1] — Anvil for Claude Code: a second security review's fixes
|
|
8
711
|
|
|
9
712
|
A second review (2026-11-29) took up what the first left open: commands started through another program, the key that
|