ubiquity / .github

3 stars 8 forks source link

Autonomous Coding Agent #105

Open 0x4007 opened 2 months ago

0x4007 commented 2 months ago

https://github.com/nus-apr/auto-code-rover

https://x.com/abhikroychoudh1/status/1777494000611852515

This might be worth setting up as an experiment first, and then a github action that responds to new issues being opened, with an event dispatcher so that we can run when specifications are modified and finalized.

Finally we can make it a plugin for our kernel as part of a future task.

I imagine it will do well with the simpler, and tighter scoped tasks!

sergfeldman commented 2 months ago

It would be great to conduct an experiment with these autonomous agents.

chris-chris commented 2 months ago

@pavlovcik I think this task is kind of experimental feature. If I integrate this module, the robot would be dumb at the first time. So, it would be better to clarify the expectation of the functionality.

For example, the robot can solve simple issue like minor bug.

0x4007 commented 2 months ago

@pavlovcik I think this task is kind of experimental feature. If I integrate this module, the robot would be dumb at the first time. So, it would be better to clarify the expectation of the functionality.

For example, the robot can solve simple issue like minor bug.

From what I understand, they already did all the hard work of making it smart. You just need to "connect the wires" basically set it up for use in our org/repos. Not sure the best way to implement, probably as CI in a single repo to start. Later should be integrated into our UbiquiBot so that it can run across all of our repos.

chris-chris commented 2 months ago

Got it. First, I'll try to connect the SWE-Agent as originally designed to address the issues in our GitHub repo.

harjaapdhillon16 commented 3 weeks ago

/start

ubiquibot[bot] commented 3 weeks ago

Warning! This task was created over 62 days ago. Please confirm that this issue specification is accurate before starting.
DeadlineTue, Jun 4, 8:17 PM UTC
Registered Wallet 0x7b3813a943391465Dd62B648529c337e52FbA79b
Tips:
harjaapdhillon16 commented 3 weeks ago

/wallet 0x712913366F98aa0A5E77EfddA05BaC65C52ae9bD

ubiquibot[bot] commented 3 weeks ago
+ Successfully registered wallet address
harjaapdhillon16 commented 3 weeks ago

@0x4007 Can you give me more details on this , like which tasks exactly should be included to use with the coding agent ? And once issues are fixed with the coding agent , should there be a pr raised for the changes made by the coding agent ?

0x4007 commented 3 weeks ago

I have sort of loose expectations for this. It's mostly a research project to set this up and get it working. In order for it to be indisputably set up correctly, perhaps we can run this as part of our CI on new issues created.

So when a new issue is filed, it can open a pull request right away. This could be very useful for contributors to start work from!

harjaapdhillon16 commented 3 weeks ago

Meaning that the autonomous coding agent understands the issue filed , does the code changes that it understands and then make a pull request in the repo ? is that what we are looking to do ?(and set it up as a CI to auto capture and run whenever a new issue is created ?) @0x4007

0x4007 commented 3 weeks ago

Yes it seems that the open source project did the heavy lifting, you just need to invoke it from a GitHub Action (with an issue created listener.)

And possibly need to feed the relevant GitHub data in as a parameter of sorts.

Then ideally we should have a pull request output. We might even be able to break that apart into separate tasks, but the purpose of this task is to see if that tool actually works as advertised. Connecting all the wires end-to-end can potentially be handled iteratively if they are too large of projects.

At minimum output in the logs the results of the program.

sergfeldman commented 3 weeks ago

I would suggest to review

GitHub Copilot Workspace https://www.youtube.com/watch?v=L5Xny6yehUg https://github.blog/2024-04-29-github-copilot-workspace/

Tools similar to SWE agent https://github.com/OpenDevin/OpenDevin OpenDevin https://github.com/stitionai/devika Devika

harjaapdhillon16 commented 3 weeks ago

@0x4007 these tools require docker build and deploy and then creating a conda env which is not possible to create inside github action environment https://github.com/harjaapdhillon16/code-rover

0x4007 commented 3 weeks ago

Anything is possible in a GitHub action environment. It's a Linux box. You can do it.

harjaapdhillon16 commented 2 weeks ago

https://github.com/harjaapdhillon16/code-rover @0x4007 someone else can continue on this , I developed it to the point where I have developed the docker image , but I have tried nearly everything I am not able to create an environment where I can execute this.

harjaapdhillon16 commented 2 weeks ago

/help

ubiquibot[bot] commented 2 weeks ago

Available Commands

Command Description Example
/start Assign yourself to the issue. /start
/stop Unassign yourself from the issue. /stop
/help List all available commands. /help
/query Returns the user's wallet, access, and multiplier information. /query @user
/ask Ask a context aware question. /ask is x or y the best approach?
/multiplier Set the task payout multiplier for a specific contributor, and provide a reason for why. /multiplier @user 0.5 "multiplier
reason"
/labels Set access control, for admins only. /labels @user priority time
price
/authorize Approve a label change, for admins only. /authorize
/wallet Register your wallet address for payments. /wallet ubq.eth
harjaapdhillon16 commented 2 weeks ago

/stop

ubiquibot[bot] commented 2 weeks ago
+ You have been unassigned from the task