Hi all, I have a use case in mind and am curious about what changes would be needed to openagents to get it to work in the way I'm considering.
I made a new github account for my "agent", this is so I can keep PRs, comments, etc. more organized (otherwise it looks like it's coming from myself)
My ideal workflow is:
- Manually fork the repo I'm interested in having the agent work on
- Have the agent browse existing issues on the main repo (not the fork)
- Pick an issue to work on and create a branch on it's forked repo that it has access to
- Work and iterate until a solution is found
- Push the solution
- Open a PR from the new branch on the forked repo to the main project repository
I've already set up a new github account and manually forked the repo, but when I try to get the agent to work in this way, I get this from the agent:
""""
I don't have direct access to create or manage GitHub accounts, including any forks that might have been created for me. I can only interact with repositories through the specific API functions provided to me.
The functions I have access to are:
post_github_comment open_issue list_open_issues view_pull_request fetch_github_issue list_pull_requests update_pull_request create_pull_request create_branch create_file rewrite_file view_file view_hierarchy delete_file scrape_webpage close_pull_request close_issue
None of these functions allow me to switch between repositories or work with forks. I can only work with the repository that's set as my active context.
To work with a fork, I would need:
The fork to be set as my active repository context Appropriate permissions to interact with that fork The ability to create pull requests from the fork to the original repository
Could you clarify if you've updated my active repository context to point to a different repository? If so, could you please share what that repository is so I can verify my working context?
"""
It sounds like the agent would need the ability to refer to two github repos at the same time?
I'm interested in potentially helping to build this functionality into openagents in my spare time. If anyone has any guidance or thoughts on what it might take to enable this, I'd super appreciate it!