Skip to content

Watch for git-aware project changes, generate diff continuously and analyse it with Mistral LLM

Notifications You must be signed in to change notification settings

plavreshin/gitwatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitWatcher - A CLI tool for analyzing git changes with Mistral

Table of Contents

  1. Prerequisites

0. Prerequisites

  • Cargo

Configuration

  • Set MISTRAL_API_KEY environment variable to your Mistral API key for report command to work

Implementation details

This project is just a command-line application that mainly has dependency on tokio and few others. It also bundles mistral client api client library.

Sample run with gitwatcher report command

 INFO  gitwatcher > Generating report...
 INFO  gitwatcher > AI Analysis: ### Summary of Git Changes

As a result, one should have the following markdown file generated report_2025-01-18 11:14:13.md

Sample run with gitwatcher watch command

 INFO  gitwatcher > Starting watch mode...
 INFO  gitwatcher > Listening for changes...
 INFO  gitwatcher > Found changes: [".gitignore", ".idea/vcs.xml", "Cargo.lock", "Cargo.toml", "README.md", "src/git_flow.rs", "src/main.rs", "src/mistral_analyzer.rs", "reports/"]
 INFO  gitwatcher > Listening for changes...

and it will be continuously listening for changes until you press Ctrl+C

Project tree

Following is the project structure/tree layout:

[]()
[reports](reports)
[report_2025-01-18 11:14:13.md](reports/report_2025-01-18%2011%3A14%3A13.md)
[src](src)
[main.rs](src/main.rs)
[git_flow.rs](src/git_flow.rs)
[mistral_analyzer.rs](src/mistral_analyzer.rs)
[Cargo.lock](Cargo.lock)
[Cargo.toml](Cargo.toml)
[README.md](README.md)

About

Watch for git-aware project changes, generate diff continuously and analyse it with Mistral LLM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages