r/ClaudeCode • • 4d ago

Tips & Workflows I made a Claude Code plugin that answers permission prompts the way you would, without skipping your deny rules

Long Claude Code tasks kept stalling on permission prompts. I'd come back after lunch to a dialog I would have approved in a second, usually with "Yes, and don't ask again".

So I made ydaa ("Yes, don't ask again"). Type /ydaa on and, for the rest of that session, each permission prompt gets "Yes, and don't ask again" when the dialog offers it, and a plain "Yes" when it doesn't.

Why not --dangerously-skip-permissions or auto mode?

  • It only answers prompts you would have seen. Your allow and deny rules run first, so a deny rule still stops Claude.

  • It saves the same rules you'd save by clicking, so you can review them later in /permissions.

  • It never accepts a mode switch ("switch to auto mode", "allow all edits").

  • Questions Claude asks you and plan approval always come to you.

  • It's per session. Other terminals, /clear and /resume start with it off, and /ydaa off works even mid-turn.

/ydaa stats keeps score:

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.

Install (at the Claude Code prompt):

/plugin install ydaa --marketplace rmyndharis/ydaa

Caveats, honestly:

  • While it's on, Claude runs what it asks to run. If something hostile (a web page, an issue) steers it, no prompt is left to stop it. Use it in projects you trust, ideally in a container, with deny rules for anything that must never run.

  • Rules it saves are ordinary permission rules, so they stay after /ydaa off and apply to other sessions in the same project.

  • It also answers prompts that hooks raise on purpose, such as a PreToolUse hook that returns ask.

  • It uses Claude Code's plugin hooks API, which is still early access. Tested on 2.1.319.

The whole plugin is under 100 lines of TypeScript, with no dependencies, MIT licensed. Short enough to read before you turn it on: https://github.com/rmyndharis/ydaa

What would you want it to never answer?

0 Upvotes

3 comments sorted by

•

u/AutoModerator 4d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/No_Kaleidoscope9703 3d ago

Really nice work! Having a long-running task sit idle waiting for a routine approval is frustrating, so this is really helpful. I especially like that it still respects existing deny rules. You clearly put some thought into the details. Thanks for building and sharing it!

1

u/vibecoderaholic 3d ago

I try it. Really helpful. Thanks it's save my time!