I've been using AI tools daily at work—thanks to my employer’s support for AI-assisted development. At the same time, I like keeping my text editor simple and sometimes prefer writing code without real-time AI suggestions.

Recently, I found Uithub, a helpful web service introduced by a coworker. It renders Git repository contents (directory trees and file contents) in a format that works well for AI conversations.

Here’s a related blog post from a teammate:

Qiita: Uithubを使ってAIとコードを会話する

I liked the idea so much that I wanted something similar locally—without needing to upload code anywhere.

ニホンゴ版


First Attempt: Shell Script

My first attempt was a Bash script that mimicked Uithub’s output. I wrote about it here:

Local version of Uithub using shell script

While it worked, it was hard to maintain or extend. So I decided to rewrite it in a more suitable language.


Rewriting in Go

Around the same time, I noticed that asdf was rewritten in Go. I had also been practicing Go recently, so I rewrote my local Uithub-inspired tool as a Go CLI app.

For the CLI framework, I picked urfave/cli/v2, which is also used by asdf. It’s lightweight and works well for small tools.

I named it uit, short for Uithub-Inspired Tool

Here’s the GitHub repo: https://github.com/mnishiguchi/uit

You can download prebuilt binaries for macOS and Linux from the Releases page.


Wrapping up

Just a small tool I built for myself, but if it helps others too — even better.