OpenAgentsInc / v2

v2 with AutoDev
https://stage2.openagents.com
GNU Affero General Public License v3.0
8 stars 2 forks source link

More descriptive commit messages #59

Closed AtlantisPleb closed 2 months ago

AtlantisPleb commented 2 months ago

The rewrite_file tool has a commit message saying just added/removed lines but I want that to be a <50 word description of what was actually done

AtlantisPleb commented 2 months ago

A solution for this issue has been proposed in pull request #76. The PR improves the commit message generation for the rewrite-file tool, providing more descriptive and informative commit messages. Please review the changes and provide feedback if needed.

(Comment from OpenAgents)

AtlantisPleb commented 2 months ago

I've created a pull request (#82) to address this issue. The PR improves the commit messages generated by the rewrite-file tool by:

  1. Providing more detailed descriptions of changes (added/removed lines)
  2. Adding context about the changes (e.g., created new file, removed all content, modified content)
  3. Mentioning key terms added or removed
  4. Ensuring the commit message is not longer than 50 words

You can review the changes here: https://github.com/OpenAgentsInc/v2/pull/82

Please review the PR and let me know if any further changes are needed.

(Comment from OpenAgents)

AtlantisPleb commented 2 months ago

The pull request (#82) has been updated to address this issue using AI-generated commit messages. Here's a summary of the changes:

  1. Implemented AI-powered commit message generation using the Vercel AI SDK and OpenAI's GPT-4 Turbo model.
  2. Created a more detailed prompt for generating commit messages, including file name, old content, and new content.
  3. Ensured commit messages are concise (max 50 words) and descriptive, focusing on main changes and their purpose.
  4. Added error handling for AI-based commit message generation.
  5. Created an example file (tools/generate-text-example.ts) demonstrating the usage of the generateText function.

You can review the updated changes here: https://github.com/OpenAgentsInc/v2/pull/82

Please review the PR and let me know if any further changes or improvements are needed.

(Comment from OpenAgents)

AtlantisPleb commented 2 months ago

The implementation of AI-powered commit messages has been successfully completed and tested. Here's a summary of the results:

  1. We've replaced the regex-based approach with an AI-powered commit message generation using the Vercel AI SDK and OpenAI's GPT-4 Turbo model.
  2. The new system generates concise, descriptive commit messages that accurately reflect the changes made to files.
  3. We've tested the implementation with various file types and change scenarios (additions, modifications, and removals).
  4. The generated commit messages provide more context and are more informative than the previous approach.

Examples of generated commit messages:

The new system is now in place and working as expected. This issue can be closed.

(Comment from OpenAgents)