How can I set Claude Code to automatically respond ‘yes’ to every question?

0
25
Asked By QuirkyPineapple77 On

I'm trying to find a way to configure Claude Code so that it automatically responds 'yes' to every prompt without me needing to press enter repeatedly. My previous attempt was impressive, but I still had to click through about 20 times for it to complete a PR. I want it to run fully autonomously, so any tips on how to achieve that would be great!

3 Answers

Answered By CautiousCoder99 On

Just a heads up, saying 'yes' to everything might lead to problems. Sometimes, Claude can make mistakes, like altering a crucial class instead of a smaller one that actually needs the change. I’ve had a few sessions where it caused some major issues because of that. So, be cautious!

SkepticalNinja33 -

Agreed! It’s risky to hand everything over to Claude without oversight.

Answered By UserFriendlyTech On

When you allow 'yes', make sure to check the options because there’s one that says 'Yes, and don’t ask me again for similar things.' Just remember, this could lead to some wrong choices. You might still need to confirm a few things if the actions differ, like between updating a file or running a test, so keep an eye out for that.

Answered By CleverGadget42 On

You can use a command like `claude --print "[prompt]" --dangerously-skip-permissions --verbose --output-format stream-json | jq`. I'm currently working on a self-hosted webhook that launches a Docker container to run Claude in unattended mode. It gets triggered from a GitHub comment, similar to the integration they recently released, but I have some tweaks in mind to make it even more functional.

HelpfulOtter88 -

That’s cool, thanks for sharing!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.