You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally, I define my new issue in docs/issues/001.md and ai agent picks it up and continues to work in background in a separate branch.
Here is a little more detailed version imagined using aider (cli based coding tool)
To establish a streamlined workflow where an AI agent like Aider autonomously addresses issues by creating new branches using Jujutsu (jj), follow these concise steps:
1. Install and Configure Aider and Jujutsu (jj):
- Initialize `jj` in your repository:
```bash
jj init
```
2. Set Up Issue Tracking:
Create a directory for issues:
mkdir -p docs/issues
Add new issues as markdown files in docs/issues/ (e.g., docs/issues/001.md).
3. Automate Issue Detection and Branch Creation:
Develop a script to monitor docs/issues/ for new files. Upon detecting a new issue file:
Create a new branch using jj.
Invoke Aider to address the issue described in the markdown file.
Sample Script (Python):
importtimeimportosimportsubprocessissues_dir='docs/issues'processed_issues=set(os.listdir(issues_dir))
whileTrue:
current_issues=set(os.listdir(issues_dir))
new_issues=current_issues-processed_issuesforissue_fileinnew_issues:
issue_path=os.path.join(issues_dir, issue_file)
withopen(issue_path, 'r') asf:
issue_content=f.read()
branch_name=f"issue-{issue_file.split('.')[0]}"subprocess.run(['jj', 'new', branch_name])
subprocess.run(['aider', '--edit', '--message', issue_content])
processed_issues.add(issue_file)
time.sleep(10) # Check for new issues every 10 seconds
4. AI Agent (Aider) Workflow:
Aider processes the issue description, makes necessary code modifications, and commits changes automatically.
5. Merging Changes:
Review and test changes on the new branch. Or raise a PR
Merge the branch back into the main codebase:
jj merge issue-001
By implementing this workflow, you enable seamless collaboration between Aider and jj, facilitating efficient issue resolution and code management within your project.
The text was updated successfully, but these errors were encountered:
Ideally, I define my new issue in
docs/issues/001.md
and ai agent picks it up and continues to work in background in a separate branch.Here is a little more detailed version imagined using aider (cli based coding tool)
To establish a streamlined workflow where an AI agent like Aider autonomously addresses issues by creating new branches using Jujutsu (
jj
), follow these concise steps:1. Install and Configure Aider and Jujutsu (
jj
):2. Set Up Issue Tracking:
docs/issues/
(e.g.,docs/issues/001.md
).3. Automate Issue Detection and Branch Creation:
Develop a script to monitor
docs/issues/
for new files. Upon detecting a new issue file:jj
.Sample Script (Python):
4. AI Agent (Aider) Workflow:
5. Merging Changes:
By implementing this workflow, you enable seamless collaboration between Aider and
jj
, facilitating efficient issue resolution and code management within your project.The text was updated successfully, but these errors were encountered: