Add AI-assisted commit message generator
- Vorherrschende Sprache
- Rust
- Sterne
- 22.5k
- Forks
- 773
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## Summary\nCreate an AI-assisted commit flow that can draft commit messages based on the user\'s staged changes.\n\n## Requirements\n- Provide a UI entry point (button/modal) in the commit view to request an AI-generated message.\n- Gather the relevant git context that Gitui already tracks (branch name, staged diff per file, linked issue/branch metadata, optional user hint).\n- Serialize that context into a deterministic prompt (e.g., structured sections with fenced diff blocks) and send it to a backend proxy LLM endpoint.\n- Display the returned suggestion so the user can edit/accept it before committing.\n- Ensure network failures or empty responses gracefully fall back to the normal manual workflow.\n\n## Notes\n- The backend proxy already exists; Gitui only needs to assemble the prompt text/JSON and call it.\n- Keep request size reasonable—consider truncating or batching very large diffs.
Beitragsleitfaden
Rechercherichtung
Es werden keine Dateien, Tests oder Einstiegspunkte genannt. Beginne damit, die im Issue beschriebene Commit-Ansicht sowie die vorhandenen Pfade für Git-Kontext und Netzwerkanfragen zu finden, und bilde dann ab, wie Prompt, bearbeitbare Antwort und manueller Fallback zusammenpassen. Als abgeschlossen gilt es, wenn der vollständige Ablauf funktioniert und Fehler sowie übergroße Diffs weiterhin manuell nutzbar bleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- git, rust
- Bereich
- ai, cli
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100