Skip to content

Show HN: An Agent That Resolves Merge Conflicts Automatically

github.com/r33drichards
3 pointssomeguy1010102 comments
On HN

Wanted to take a crack at agents so I wrote one for resolving merge conflicts based on this blog post https://sketch.dev/blog/agent-loop. I have found this to be pretty effective on some prs i've thrown at it but I'd run this in a vm because it just runs shell commands locally.

Comments

I really like your agent-loop blog post.

How does the agent know which to keep and which to discard for a conflict? This would that it has deep contextual information about the codebase it's looking at.

Thanks but its not mine! I just found it inspirational.

How does the agent know which to keep and which to discard for a conflict? This would that it has deep contextual information about the codebase it's looking at.

There is no guidance regarding this in the agent. For some conflicts this is important but I have found that for the conflicts I've tried this on it does not need the additional context to do the right thing! There is a option to add additional prompting before it solves a conflict. I will add notes in here to guide it such as "ignore auto generated files, i will generate them again later" so that it doesn't get stuck on generated data.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.