Skip to content
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

feat: /repeat command #2912

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: /repeat command #2912

wants to merge 2 commits into from

Conversation

hux
Copy link

@hux hux commented Jan 19, 2025


Purpose: To facilitate multi-length or long-running prompt commands. ( Aka: to avoid repeated 'up-arrow-press-enter' fatigue )


Example: After priming a chat session with test development, executing:

/repeat 5 Please continue with writing test cases until all coverage is reached.


Additionally for large operations, it comes in handy as well:

/repeat 20 Please align all 200 frontend form fields with their corresponding backend database field each section at a time

Both use-cases are taken from successful real-world scenarios.

@CLAassistant
Copy link

CLAassistant commented Jan 19, 2025

CLA assistant check
All committers have signed the CLA.

@hux
Copy link
Author

hux commented Jan 19, 2025

If it is of interest, here is the prompts I used for this:

I would like to add a command to the running prompt, called /repeat -----    /repeat 5 'Please continue fixing tests'          would result in 5 repeated prompts of 'Please continue fixing test' - each time the LLM was completed with its previous prompt.    Can you please help me plan and implement this?
Please write all needed tests for this too.
Can you make the tests in the tests/basic/test_commands instead of the new file?

I run aider with --no-auto-commit so the commit is just rolled into that one that I manually created. I had to clean up the new test file it generated, but once I told it the right file to modify then it seemed to work well.

@hux
Copy link
Author

hux commented Jan 19, 2025

pytest is failing, so I'm iterating on fixing this.

…t was just the extra quotes despite many repeated instructional attempts
@hux
Copy link
Author

hux commented Jan 19, 2025

pytest tests/basic/test_commands.py PASSING

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants