Skip to main content

Module commit

Module commit 

Source
Expand description

Commit message generation phase.

This module generates commit messages using a single agent attempt per reducer effect. All validation and retry decisions are handled by the reducer via events; this code does not implement fallback chains or in-session XSD retries.

Re-exports§

pub use diff_truncation::effective_model_budget_bytes;
pub use diff_truncation::model_budget_bytes_for_agent_name;
pub use diff_truncation::truncate_diff_to_model_budget;

Modules§

diff_truncation

Structs§

CommitAttemptResult
Outcome from a single commit attempt.
CommitMessageResult
Result of commit message generation.

Enums§

CommitMessageOutcome
Outcome of commit message generation.

Functions§

create_session_and_get_attempt_number
generate_commit_message
Generate a commit message using a single agent attempt.
generate_commit_message_with_chain
Generate a commit message with fallback chain support.
run_commit_attempt
Run a single commit generation attempt with explicit agent and prompt.