Think, CL tool that makes AI your command line copilot (written in Go)
Think, CL tool that makes AI your command line copilot (written in Go)
Hi HN, I'm thrilled to share with you think, a command-line tool that I developed while diving back into the programming scene. For the past few years, my focus had shifted from hands-on programming to managerial roles, my last one being at Affirm (I started Affirm's Polish office). However, I recently left my job to revisit my passion for coding and see if I could still write code that works. Not to mention that with what is currently going on in AI if you are a developer this probably the best possible time for a sabbatical in human history :) My first attempt was with LangChain, but I found it too abstract and elusive for my liking. I knew that Python was the go-to for serious ML research, but as I was primarily dealing with API calls, I wasn't bound to it. So I picked Go for its simplicity, performance, and to spare myself from the notorious Python dependency issues. Over the last few weeks, I've been hacking on Agency (github.com/ryszard/agency), a framework for writing agents backed by AI. Agency provides an idiomatic interface to various LLM providers (currently OpenAI works and Hugging Face is experimental/brokenish). It simplifies the creation and management of Language Learning Model-based agents, aiding the implementation of autonomous agent systems. It also offers features for production deployment, like caching, retrying, or rate limiting. The idea was to allow managing how data flows between different AI agents without sacrificing my sanity. With Agency as my foundation, I was able to write think over the course of a weekend. Most of that time was spent figuring out the right UX (and how to use the readline library, whose documentation is... sparse). Today, I'm presenting you with think – a utility that uses OpenAI's AI models to assist in crafting shell commands. Simply describe what you want to do in your own words, and think generates the relevant shell commands.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Identicon library + command line tool written in Golang
Neofetch – A command-line system information tool written in bash 3.2+
Teleport: Simple command line app tutorial written in Haskell
OCaml Bindings to Brotli and Command Line Tool
Hyperfine – a command-line benchmarking tool
Hyperfine – a command-line benchmarking tool
Argsearch – A composable tool for sweeping over command-line arguments
Slap - A command line tool for pasting
A Command-Line Sentence Tokenizer Written in Golang
Tsv2csv Clojure Powered Command Line Tool