ChrisTimperley / RepairChain

AIxCC: automated vulnerability repair via LLMs, search, and static analysis
Apache License 2.0
3 stars 0 forks source link

Consider using unified diff without line numbers as output format #29

Open rubengmartins opened 3 months ago

rubengmartins commented 3 months ago

Some people point out that asking for code in JSON format may lead to worse results.

Unified diff is an alternative but the LLM always messes up the line numbers.

Another alternative would be something like: https://aider.chat/docs/unified-diffs.html#unified-diff-editing-format

We could encourage a high-level diff where we ask the LLM the reduce the number of blocks changed and then do a string replacement in the code.

Pros:

Cons: