Here's a comprehensive implementation plan for AI Rebase, drawing from issue #177 , the existing split architecture in issue #196 , and the codebase structure .
The AI Rebase is the inverse of the split feature — instead of one commit → many, it's many commits → fewer logical ones. You can mirror the existing split pipeline but reverse the data flow. The key files to model after are omni_commit.rs on the Rust side and the commit view components in src/views/commit/ .
Add a new Tauri command in src-tauri/src/ (e.g., omni_rebase.rs) that: