Skip to content

AI-suggested commit message & description (claude -p primary) #61

Description

@Sph3ricalPeter

Goal

Generate a suggested commit message + description from the staged diff using the shared AI substrate (#57) — primarily the user's claude -p (BYO Claude Code), with Local (Ollama) / BYOK as fallback tiers. Entry point: a button in the commit box (src/components/staging/commit-box.tsx).

Decision (2026-06-20)

Scope

  • Single bounded claude -p --output-format json call over the staged diff (respecting the configured tier); returns subject + body suggestion.
  • Pre-fills the commit box as an editable suggestion — never auto-commits.
  • Degrades gracefully when the substrate is unavailable.

Relationship to other issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions