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.

Structs§

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

Functions§

effective_model_budget_bytes
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.
model_budget_bytes_for_agent_name
Get the maximum safe prompt size for a specific agent.
run_commit_attempt
Run a single commit generation attempt with explicit agent and prompt.
truncate_diff_to_model_budget