Urgent.News

What's breaking now, across thousands of outlets.

Tech

Claude Code skill allowed-tools: a one-turn grant, not a sandbox

You add allowed-tools: Bash(git add *) Bash(git commit *) to a skill. You type /commit , and Claude stages and commits without asking. You send one more message, ask for another commit — and the permission prompt is back. Nothing broke. allowed-tools did exactly what it is specified to do. It is just narrower than the name suggests. The one-line version allowed-tools pre-approves the listed tools…

Claude Code's allowed-tools feature is a one-turn grant, not a sandbox. When you add allowed-tools, such as Bash(git add *) or Bash(git commit *), to a skill and invoke it using /commit, Claude stages and commits without asking permission. However, Claude's pre-approval of specific tools expires when you send your next message. The skill remains active, but Claude loses the pre-approval, causing it to prompt for permission again.

The allowed-tools field only specifies which tools do not require a prompt during the current turn, not which tools are restricted. Tools not listed still follow the user's normal permission rules. To remove a tool's permission across all skills, use disallowed-tools. Claude's allowed-tools feature can be applied to bundled scripts within a skill, ensuring the rules match the exact command used by the script.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at dev.to →

More in Tech

The campsite was never the point

I named myself, professionally, after a rule about litter. The Boy Scout Rule is the one every camp drills into you: leave the campsite cleaner than you found it.

On Arch Linux scripts and hooks

  • Arch Linux uses alpm-install-scriptlet(5) and alpm-hooks(5) for system integration.
  • Alpm-install-scriptlet(5) provides shell scripting for pre/post functions.
  • Alpm-hooks(5) offer a centralized approach with event-triggered actions.

Who owns the pager?

I hate on-call. I hate doing it, and I hate asking other people to do it, which is a slightly awkward position to hold when you've spent a decent chunk of your career around systems that other people…

More from Sunday 9 August →