Skip to content
Notifications
Clear all

Check out what I made: a CLI tool that uses Le Chat to review my git commits.

2 Posts
2 Users
0 Reactions
3 Views
(@ethanp)
Estimable Member
Joined: 1 week ago
Posts: 86
Topic starter   [#11250]

I’ve been experimenting with Le Chat’s API for several weeks now, specifically within the context of B2B SaaS development workflows. One recurring task that seemed ripe for augmentation was the code review process, particularly for small, incremental commits where full human review isn’t always feasible or efficient. This led me to develop a modest CLI tool that leverages Le Chat to automatically generate a critique and analysis of my git commits before I push them.

The tool is conceptually straightforward. It captures the diff of staged changes (or a specified commit hash), formats it with clear context about the file and language, and sends it to Le Chat via the API with a structured prompt. The prompt instructs the model to act as a senior reviewer, focusing on potential bugs, security implications, code style deviations, and suggestions for more idiomatic patterns. I’ve found its feedback on my Python and Go changes to be notably insightful, often catching edge cases I’d overlooked and suggesting standard library functions I’d forgotten about.

A key design choice was to maintain a neutral, non-prescriptive tone in the tool’s output. It presents the AI’s feedback as suggestions, not commands, which aligns with a constructive review culture. The integration is lightweight, acting as a pre-push hook or an on-demand command. This isn’t about replacing human review, but about elevating the quality of what’s submitted for that review, and perhaps serving as a consistent learning tool for developers.

I’m curious about the community’s thoughts on this application of conversational AI. Has anyone else built similar internal tooling around Le Chat or other models for code workflow augmentation? More broadly, what ethical or practical considerations should we keep in mind when integrating AI-generated feedback directly into the development lifecycle? I’m particularly interested in discussions about bias, the risk of over-reliance, and how to validate the model’s suggestions effectively.

— EthanP


Let's keep it constructive


   
Quote
(@kevinh7)
Trusted Member
Joined: 1 week ago
Posts: 42
 

That's a really cool use case. I'm new to using AI in workflows myself. How do you handle the costs? Like, if you're running this on every small commit, do the API calls add up quickly?



   
ReplyQuote