-
Notifications
You must be signed in to change notification settings - Fork 44.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pause continuous loops and give feedback #3083
Pause continuous loops and give feedback #3083
Conversation
CI is failing. You have linter errors. |
Thanks @hdkiller I just fixed the linter issues. I'll keep my eyes on this to see if there's more I need to do, please let me know if so, thank you. |
I wanted this feature earlier today when autogpt got stuck dealing with things like an interactive prompt or a bash shell on another host with no other way to run commands once logged in and trying to edit a file with a text editor. It needs to be told it's blind and cannot see nano. |
@sneibarg - it does feel great being able to pause autogpt and re-align it! Especially on those longer runs. |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
This is a mass message from the AutoGPT core team. For more details (and for infor on joining our Discord), please refer to: |
this should probably be tackled from not just the perspective of a human being the top-level "agent", but also so that it would work for agent/sub-agent chains, where the agent would need "guide/direct" the sub-agent as needed ? |
Please remove changes that have nothing to do with this topic, I saw a couple like the readme change with docker-compose |
Gladly. Can you confirm if this PR would be merged if that's updated? I spent some time keeping this updated, but stopped due to unclear merging requirements. |
Hi, just a short update - thanks for taking the time to update your PR, your PR was today discussed on Discord by several devs and it's being assigned to be reviewed right now! So, given that there seem to be at least 5+ different PRs in the pipeline currently using similar but still a different method, it is likely that we're going to take parts from each and every one of these PRs, to ensure that the feature is well-aligned with the ongoing re-arch effort. This means, you will end up in the credits automagically - but won't have to do any more work from now on. If there are remaining questions, someone is going to contact you, the PR is being reviewed by @gravelBridge |
Thanks for the update. Just to clarify, my understanding = "don't do any further work right now, unless @gravelBridge asks". I will refrain from making any changes as @Wladastic requested. Happy to make changes as needed, just let me know.
Thanks! That's exciting 👯 Happy to contribute. Again, just let me know if anything needs cleaning. |
Hello! Thank you so much for your contribution and feature suggestion! I have finished implementing our version of this feature here: #4230. Once again, thank you! |
Reopening to allow credit to adrianegraphene since I prematurely closed it. After credit has been registered, I will re-close this PR. |
Deployment failed with the following error:
|
Hello! Thank you so much for your contribution and feature suggestion! I have finished implementing our version of this feature here: #4230. Once again, thank you! |
Background
This is a resubmit of PR #2069, which got a little messy. This is a cleaner version of that. Tested & working.
Added the ability to pause a continuous loop. When we input "y -X", where X is some number, there is a desire to be able to pause the AI and input some human feedback, then have the AI continue on its trajectory, as noted here #563
Changes
Uses can pause a long loop with just 3 key presses. Hold "SHIFT" and press "P" twice. Then users can enter feedback + have the loop automatically continue.
"Shift + P + P"
User friendly UX
On the 2nd iteration of a loop, the message "Thinking...." changes to "Thinking... Hold Shift & press 'P' twice to give feedback to the AI"
Documentation
The person must click into the same code window where the code originally ran, then hold "Shift" + hit "p" twice
"SHIFT + P + P" will bring pause the loop on the next run, so that someone can entire feedback to the AI.
This way, instead of having to stop a long loop, you can just pause it, give feedback, and have the loop continue.
The clicks will not be detected if the active windows is something besides the running code window.
Test Plan
Tested several iterations on Windows, to ensure that expected behavior is experienced (it is).
Request that someone tests this on Linux.
PR Quality Checklist
Edit: Updated with documentation on README