Skip to content

Feature: semantic-diff for commit messages #36

Open

Description

@qdrddr

Description

Currently, git diff captures pure text changes, which may include mostly irrelevant.
This consumes LLM tokens and creates commit message comments that bloat the message, potentially hiding important changes in toll pile of garage messages.

Suggested Solution

I’d like to have a octocode commit --salemantic-diff parameter when enabled, it would use diffsitter that is based on AST code changes and only would capture semantically meaningful and important changes.
https://github.com/afnanenayet/diffsitter

This idea could be extended:

By still leveraging the remaining less important changes that are captured as usual git diff, but then clearly identifying and separating them as less important, that we could ask LLM to pay less attention to and produce less detailed summary.

So I could get full picture of the changes, but have LLm focus with on summarizing with more details important chances. While keeping semantically not important formatting and spend less output LLM tokens on those (potentially even using another cheaper model).

Activity

  1. self-assigned this
    on Apr 3, 2026
  2. donhardman commented on Apr 4, 2026

    @donhardman
    Contributor

    I tried to use the tool, but unfortunately it didn't work for me — it always says "unsupported file type," even for Rust and other file types. So I guess it's too early to integrate it.

    However, with the new octocode diff feature, the goal is to show behavior changes that may help understand what changed better and also eliminate any bugs.

    As for the commit command, I still need to think about how to improve the quality of committing, so I'm keeping this task open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions