diff --git a/aider/watch.py b/aider/watch.py index c346b1341..4d0f21edd 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -9,6 +9,7 @@ from pathspec.patterns import GitWildMatchPattern from watchfiles import watch from aider.dump import dump # noqa +from aider.watch_prompts import watch_prompt def is_source_file(path: Path) -> bool: @@ -186,12 +187,7 @@ class FileWatcher: self.analytics.event("ai-comments execute") self.io.tool_output("Processing your request...") - res = """ -The "AI" comments below marked with █ can be found in the code files I've shared with you. -They contain your instructions. -Make the requested changes. -Be sure to remove all these "AI" comments from the code! -""" + res = watch_prompt # Refresh all AI comments from tracked files for fname in self.coder.abs_fnames: diff --git a/aider/watch_prompts.py b/aider/watch_prompts.py new file mode 100644 index 000000000..138651d82 --- /dev/null +++ b/aider/watch_prompts.py @@ -0,0 +1,6 @@ +watch_prompt = """ +Find the "AI" comments below (marked with █) in the code files I've shared with you. +They contain your instructions. +Make the requested changes. +Be sure to remove all these "AI" comments from the code! +"""