Skip to main content

Crate retcon

Crate retcon 

Source
Expand description

Pravda: Reconstruct clean git history from messy branches using LLM assistance.

Pravda takes a history specification (TOML) describing logical commits and reconstructs them from a messy source branch, creating a clean history suitable for code review.

§Architecture

  • Spec: Parse and manipulate history specifications
  • Execute: Run the reconstruction loop with LLM assistance
  • Prompt: Generate guidance for creating specifications

Structs§

CommitSpec
A single logical commit to reconstruct.
ExecuteConfig
Configuration for the execute command.
HistorySpec
The complete history specification.

Enums§

HistoryEntry
An entry in a commit’s execution history.

Functions§

execute
Execute the reconstruction loop for the given spec file.
prompt
Generate the prompt that guides an LLM to create a history specification.