TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Think, CL tool that makes AI your command line copilot (written in Go)

14 点作者 szopa将近 2 年前
Hi HN,<p>I&#x27;m thrilled to share with you think, a command-line tool that I developed while diving back into the programming scene.<p>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&#x27;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 :)<p>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&#x27;t bound to it. So I picked Go for its simplicity, performance, and to spare myself from the notorious Python dependency issues.<p>Over the last few weeks, I&#x27;ve been hacking on Agency (github.com&#x2F;ryszard&#x2F;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&#x2F;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.<p>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).<p>Today, I&#x27;m presenting you with think – a utility that uses OpenAI&#x27;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.

2 条评论

tuchsen将近 2 年前
Hey, nice work! Being able to continue the conversation and work iteratively looks useful. Bash scripts seem to be one of ChatGPT&#x27;s sweet spots, where it just gets things right most of the time.<p>Not to shill, but I&#x27;m also doing a GUI version of this as a file manager (aerome.net), with a built in ChatGPT &quot;shell&quot; where you ask it to write scripts and then evaluate them. The goal&#x27;s to make shell scripting accessible to non developers.
szopa将近 2 年前
A friend just mentioned to me <a href="https:&#x2F;&#x2F;github.com&#x2F;m1guelpf&#x2F;plz-cli">https:&#x2F;&#x2F;github.com&#x2F;m1guelpf&#x2F;plz-cli</a> (whose tagline I unknowingly reproduced). The difference between think and plz is that in think you are able to keep the conversation going, which allows you to easily ask for followup tasks.