Yes, and don't ask again.
A Claude Code plugin that answers permission prompts for you, the way you would have answered them yourself.
Read Before you turn it on first. While ydaa is on, Claude runs what it asks to run without waiting for you. Your deny rules still stop it. The prompt no longer does.
/plugin install ydaa --marketplace rmyndharis/ydaa
/ydaa on
For the rest of the session, each permission prompt is answered "Yes, and don't ask again" when the prompt offers that option, and "Yes" when it does not. Questions Claude asks you and plan approval still wait for you. /ydaa off hands the prompts back, and /ydaa stats shows what ydaa has saved you so far.
ydaa answers in Manual and acceptEdits modes, and leaves prompts in auto and plan modes to you. Claude Code 2.1.283 and later start terminal and VS Code sessions in auto mode, so press Shift+Tab once to switch to Manual (the status bar reads manual mode on).
In Manual mode, Claude Code asks before it edits a file, runs a shell command, or fetches a URL. On a long task those prompts are where the work stops: you come back after lunch to find Claude waiting on a dialog you would have approved in a second. By Anthropic's own count, people approve 93% of these prompts. Most of the time you pick the same answer anyway: "Yes, and don't ask again".
The built-in ways around the prompt each give something up:
| Option | At a prompt | Saved for next time |
|---|---|---|
Manual mode (default) |
Asks you, and waits | What you choose to save |
acceptEdits mode |
Accepts file edits and common file commands such as mkdir and mv; everything else still asks |
Nothing |
auto mode |
A model classifier approves or denies | Nothing |
bypassPermissions (--dangerously-skip-permissions) |
Skips almost every prompt and safety check; deny rules still apply | Nothing |
| ydaa | Picks "Yes, and don't ask again", else "Yes" | What the prompt offered to save |
ydaa sits between being asked every time and not being asked at all. It clicks the button you would have clicked, so the rules that build up are the ones Claude Code itself offered: plain permission rules in your settings that you can read and remove. Your deny rules keep working, it never changes your permission mode, and the dialogs that need a person keep waiting for one.
ydaa needs a Claude Code release that supports function hooks in plugins. It is tested with Claude Code 2.1.322. The hooks-module API is in early access and can change between releases.
In a Claude Code session:
/plugin install ydaa --marketplace rmyndharis/ydaa
Answer y to add the marketplace, then choose a scope (user scope is listed first; press Enter). Claude Code confirms with Installed ydaa. Plugin is now active.
From a shell:
claude plugin install ydaa --marketplace rmyndharis/ydaaIn the desktop app, click + next to the prompt box, then Plugins, Add marketplace with rmyndharis/ydaa, then Add plugin.
ydaa installs switched off. Nothing changes until you run /ydaa on.
| Command | Effect |
|---|---|
/ydaa on |
Answer permission prompts for you, for the rest of this session |
/ydaa off |
Stop answering; prompts reach you again (rules already saved stay) |
/ydaa |
Show whether ydaa is on |
/ydaa stats |
Show how many prompts ydaa has answered, and the time that saved you |
While ydaa is on, the status line under the prompt reads ydaa: auto-answering permission prompts, or ydaa: paused in auto mode (Shift+Tab for Manual) in auto mode (and ydaa: paused in plan mode in plan mode). ydaa reads the mode from each prompt you send and each permission prompt in the main conversation, so the line reads ydaa: on, except in auto or plan mode until your first prompt, and catches up at your next prompt after you switch modes or approve a plan. What ydaa answers follows the mode each permission prompt reports, so a line that lags never changes an answer.
/ydaa off takes effect at once, even while Claude is in the middle of a turn, so you can take the prompts back without waiting for the turn to finish.
> /ydaa stats
ydaa has answered 1284 permission prompts for you.
That's about 43 min of reading and answering you didn't have to do (2 s a prompt), and 1284 stops Claude didn't have to make.
The count is kept across sessions. Time is estimated at 2 seconds a prompt, about what it takes to read one and pick an answer. That is the floor, not the full saving: a prompt that arrives while you are away holds Claude until you come back, and those waits are not counted.
ydaa hooks the moment Claude Code is about to show a permission dialog (the PermissionRequest event). Your allow and deny rules have already been applied by then, so ydaa only ever sees calls that were going to ask you.
- Off, or in auto or plan mode: the dialog shows as usual. ydaa also stays out of
dontAskandbypassPermissionsmodes. - On: ydaa answers in place of the dialog, and counts the answer for
/ydaa stats.- When the dialog offers "Yes, and don't ask again" (a rule for this command or tool, or access to a folder), ydaa picks it. The grant is saved exactly where that option would save it, often the project's
.claude/settings.local.json, so the same call does not prompt again. - When it offers no such option, ydaa answers a plain "Yes" for this one call.
- An offer to change your permission mode, such as "switch to auto mode" or "allow all edits", is never taken.
- When the dialog offers "Yes, and don't ask again" (a rule for this command or tool, or access to a folder), ydaa picks it. The grant is saved exactly where that option would save it, often the project's
- Always yours:
AskUserQuestion(a question Claude asks you) andExitPlanMode(approving a plan) go to you whether ydaa is on or off.
Hooks from your organization's managed settings run before ydaa and can still refuse a call. PermissionRequest hooks in your own settings, such as one that sends a notification when Claude is waiting, do not run for a prompt ydaa has answered, since nobody is waiting.
The whole plugin is under 120 lines in hooks/register.ts. It is kept short so you can read all of it before you turn it on.
-
ydaa approves what Claude asks to do. Shell commands, file edits, network requests and MCP tool calls that would have prompted you now run without you. If Claude reads something hostile (a web page, an issue, a file in a dependency) and is steered by it, no prompt is left to stop it. Use ydaa in projects you trust, ideally inside a container or a throwaway VM.
-
Deny rules are your hard stops. A call a deny rule refuses never reaches ydaa. Put what must never run without you in
~/.claude/settings.json:{ "permissions": { "deny": ["Bash(git push:*)", "Bash(curl:*)", "Read(./.env)"] } }Deny rules match a call as it is written, so
Bash(git push:*)does not catch every way to push. Treat them as a seatbelt, not a sandbox. -
It stays out of auto and plan modes. Auto mode replaces most prompts with a classifier, and the prompts it still shows are meant for you, such as the one after the classifier blocks 3 times in a row or 20 times in a session; plan mode prompts when a call tries to write or run before a plan is approved. ydaa leaves both alone (along with residual safety prompts in
bypassPermissionsmode). To have ydaa answer prompts, switch to Manual withShift+Tab, or set"defaultMode": "default"underpermissionsin~/.claude/settings.jsonto start every session there. -
The switch covers one session.
/ydaa onholds until you run/ydaa off, start over with/clear, switch with/resume, or close the session. Whatever comes next (a new conversation in the same terminal, another terminal, or a reload of the plugin after an update) starts with ydaa off, and ydaa answers nothing there until you type/ydaa onin it. Compacting a long conversation does not end the session, so ydaa stays on through it. -
Rules ydaa saved are shared, and they stay. They are ordinary permission rules, in the same settings files as the ones you save by hand, so they hold after
/ydaa offand in every other session that reads those settings: a rule saved fornpm testin one terminal means no prompt fornpm testin another terminal on the same project. Review and remove them with/permissions, or edit the settings file. -
Ask rules and confirmation prompts from hooks are answered too. A call that matches an
askrule in your settings, or that a plugin or settings hook asks you to confirm (for example aPreToolUsehook that returnsask), raises the same dialog, and ydaa answers it like any other. If a rule or hook exists to make you look at something, make it deny instead, or keep ydaa off.
From a shell:
claude plugin uninstall ydaaPermission rules ydaa saved are part of Claude Code's settings, not of the plugin, and stay until you remove them with /permissions. To pause ydaa without uninstalling it, /ydaa off is enough.
ydaa is one hooks module with no dependencies.
| Path | Purpose |
|---|---|
.claude-plugin/plugin.json |
Plugin manifest |
.claude-plugin/marketplace.json |
Makes this repository installable as a marketplace |
hooks/hooks.json |
Names the hooks module |
hooks/register.ts |
The plugin |
tests/ydaa.test.ts |
Tests, run by claude plugin test |
Load your working copy into a session, for that session only:
claude --plugin-dir .Check the manifest and hooks, then run the tests:
claude plugin validate .
claude plugin test .Issues and pull requests are welcome. CONTRIBUTING.md covers how to report a problem, the commit and pull request conventions, and how a release is cut. What changed in each version is in CHANGELOG.md.
Report a security problem privately, as SECURITY.md describes.
If ydaa saves you a few clicks a day, you can support its development by buying me a coffee.
Released under the MIT License.
Claude Code is a product of Anthropic. ydaa is an independent project and is not affiliated with or endorsed by Anthropic.
Made with ❤️ by Yudhi Armyndharis & ydaa contributors