Feature Request: AI-Powered Semantic Search for Git Commits

AI-Powered Semantic Search for Git Commits

Enable Cursor AI to perform AI-driven semantic searches on previous Git commits, allowing developers to query commit history using natural language and retrieve relevant changes efficiently.


Why should people use this category? What is it for?

This feature would help developers quickly find relevant commits, understand historical changes, and debug issues without manually searching through git log or git diff. Instead of relying on basic keyword searches, users can leverage AI-powered commit retrieval for better insights into their codebase.

How exactly is this different than the other categories we already have?

Unlike existing search or version control integrations, this feature would introduce semantic search over commits. Developers could ask questions like:

  • “Where did we change the auth middleware?”
  • “Which commit introduced the JWT validation bug?”
  • “What were the last major changes to this function?”

This goes beyond simple commit message lookups by analyzing diffs and indexing commit history for AI-assisted queries.

What should topics in this category generally contain?

  • Prompt-Based Git Search: Query previous commits using natural language.
  • Semantic Search Over Commits: Use embeddings and a vector database for better retrieval. Also super cool, would be integration with the prompting commands like @{filename}. This could be extended by @{filename}-{commit message} with text completion while writing the commit message :smiley:
  • Inline AI Assistant: Provide contextual commit history while coding.

Topics should focus on improving AI-assisted version control, discussing implementation strategies, and gathering user feedback on potential use cases.

Do we need this category? Can we merge with another category, or subcategory?

This could fit under an AI-Powered Development Tools category or a Git & Version Control Enhancements subcategory. However, if Cursor AI expands its AI-driven search capabilities, a dedicated section for AI-Augmented Git History Navigation could be beneficial.

Thumb up
Similar request here Source control history indexing (such as git history)

Temporary workaround with this How to use a Commit as reference in Cursor IDE?