I got tired of committing "fix: please work", so I built a Rust CLI/TUI to write Conventional Commits for me Cogit v0.1.0
▲ 0 r/git+1 crossposts

I got tired of committing "fix: please work", so I built a Rust CLI/TUI to write Conventional Commits for me Cogit v0.1.0

Hey everyone,

Let’s be honest for a second. We’ve all seen (or written) commit histories that look something like this:

- fix: bug
- fix: actually fix the bug
- fix: forgot semicolon
- please work
- asdfghjkl
- final_final_v2_really_working

Your team lead sighs. Git blame becomes a game of Russian roulette. And when it’s time to write a release changelog, nobody has any idea what actually changed.

I got tired of staring blankly at a 500-line diff on Friday afternoon trying to craft the perfect Conventional Commit message, so I built Cogit — a lightweight CLI and TUI tool written in Rust.


What does it actually do?

You stage your files with git add, run cogit, and it inspects your staged diff to generate clean, structured Conventional Commits (feat:, fix:, refactor:, chore:, etc.).

Here’s why it’s not just another Python wrapper script:

  1. Dual-Pane TUI (cogit --tui): Built with ratatui. You get a syntax-highlighted diff on the left and an editable textarea on the right. You can scroll through your changes, edit the generated message in-place, press [r] to regenerate with a hint (e.g. "focus on the auth refactor"), or hit [e] to drop straight into $EDITOR.
  2. Multi-Provider AI: Works out of the box with Google Gemini, OpenAI, Grok (xAI), Groq, or 100% locally with Ollama if you don't want your code leaving your machine.
  3. Lockfile & Noise Sanitization: It automatically strips Cargo.lock, package-lock.json, and binary blobs from the diff payload before sending it to the LLM so you don't burn tokens on 15,000 lines of hash changes.
  4. Safe by Design: It invokes git commit -F under the hood via a temporary buffer, meaning it preserves your existing pre-commit hooks, GPG/SSH signatures, and git config.
  5. Detailed Mode (-d): If you need more than a single-line summary, -d generates a conventional subject line along with bulleted rationale for PRs and complex reviews.

Links & Code

It's completely free and open source under the MIT license:

I’d love to hear your feedback, feature requests, or constructive roasts. Let me know what you think!

Also any contributions are welcome 🦀

u/milanpramod — 2 days ago
▲ 1 r/coding

leetrs – A blazing-fast Rust CLI & Ratatui TUI for solving LeetCode natively in Neovim/Terminal (Looking for │ Contributors!)

github.com
u/milanpramod — 20 days ago
▲ 85 r/devtools+2 crossposts

Leetrs - A TUI application to search, pick, and submit leetcode problems.

Built a LeetCode TUI called leetrs so you can solve and submit problems directly from the terminal

I built a terminal-based UI for LeetCode that lets you browse problems, code solutions, run tests, and submit — all without leaving your terminal.

I made it because I wanted a faster, more focused workflow without constantly switching between the browser, editor, and terminal. If you like working in the CLI, this might be useful.

What it does

Browse LeetCode problems from the terminal

View problem details and metadata

Write solutions in your preferred terminal workflow

Run tests

Submit solutions directly from the TUI

Stay fully inside the terminal while solving

Looking for feedback + contributors

The project is open source, and I’d love:

feedback on the UX and workflow

bug reports

feature suggestions

contributions from anyone interested in TUIs, developer tools, or LeetCode integrations

If you want to contribute, check out the repo here: https://github.com/shadowmkj/leetrs.git

If people are interested, I can also share more details about the architecture, implementation choices, and roadmap.

u/milanpramod — 29 days ago