Skip to main content

Module prompt

Module prompt 

Source
Expand description

Prompt building utilities for commit message generation

This module contains the core prompt construction logic used by all providers. It handles system prompts, user prompts, file type categorization, and project context.

Functionsยง

build_prompt
Build the combined prompt for providers without system message support
build_system_prompt
Build the system prompt part (role definition, rules)
build_user_prompt
Build the user prompt part (actual task + diff)
extract_file_summary
Extract file type summary from diff
get_project_context
Get project context from .rco/context.txt or README
split_prompt
Split the prompt into system and user parts for providers that support it