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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Exo – the electron app that’s helping to build itself

8 点作者 kmgrassi大约 2 年前
Hi HN folks!<p>I’m the creator of Exo and wanted to share my progress with the HN community.<p>Exo is an electron app that uses a chat interface and open Ai to write code directly to your file system&#x2F;repos.<p>Exo is a work in progress - its very new and has many rough edges. I was hoping to get some early feedback from HN folks and hopefully some early users. Once you create an account the universal electron installer link is on the dashboard.<p>Here is a quick explainer video: <a href="https:&#x2F;&#x2F;www.loom.com&#x2F;share&#x2F;5f34499ccfb54bfdae32ee50f454b365" rel="nofollow">https:&#x2F;&#x2F;www.loom.com&#x2F;share&#x2F;5f34499ccfb54bfdae32ee50f454b365</a><p>Exo started as a thin wrapper around my file system. I built a bunch of functions that let me use open Ai to write&#x2F;refactor code directly in my repos. I wanted to build some simple tools to help increase my programming productivity.<p>At one point I realized this app could be useful to other engineers so I started using it to build itself… hence the clickbait title. Don’t hate me :).<p>Here’s how it works:<p>All of the chat functionality (including message classification and processing) uses GPT-3.5 turbo so it’s pretty fast.<p>There is a bunch of logic that uses OpenAI to classify and adapt the incoming user messages to route them to the correct place (search, write code, ask for clarification, etc). I’ve experimented with an “agent&quot;(<a href="https:&#x2F;&#x2F;python.langchain.com&#x2F;en&#x2F;latest&#x2F;modules&#x2F;agents&#x2F;agents&#x2F;custom_llm_chat_agent.html" rel="nofollow">https:&#x2F;&#x2F;python.langchain.com&#x2F;en&#x2F;latest&#x2F;modules&#x2F;agents&#x2F;agents...</a>) model for this but it didn’t work as well as the classification layer.<p>Exo uses GPT-4 to write code. I’ve found a pretty big difference in code quality and “correctness” between GPT-3.5 and GPT-4. It doesn’t fall back to 3.5 but if 4 stays flakey I may have to build a fall back mechanism.<p>You can index a (small) repo or subset of a repo (components section for example) for search. I recommend starting with a directory with 10-50 files to start. This will take 2-3 min to index. After it runs you can search based on the code functionality. For example “find the component that renders the login page…”.<p>The indexing process uses tree sitter to parse the files. It then uses GPT-3.5 turbo to summarize what the code does. It then embeds the code itself with the explanation. When you search, it embeds your search phrase and matches based on the code explanation.<p>I’m using supabase for the db. I’m using the pgvector postgres add on to store the embeddings. This is very useful as the code explanation and all the metadata sits right next to the embedding so returning the search list is super fast. Its also simple to render given it doesn’t need to pull data from multiple places.<p>I plan on adding the functionality to add your own OpenAI api code soon. For now the app uses my personal OpenAI account. So you get to use GPT, including GPT-4, for free :). Don’t go crazy.<p>GPT-4 can be pretty flakey. There are some days when 50% or more api requests get throttled. I’ve added a basic throttling function but the OpenAI api still throws a 429 with nontrivial consistency. I suspect if a bunch of people are using Exo at the same time most of the calls will fail making it nonfunctional. I’ll post an update and likely cap signups if that happens.<p>I’d love feedback on the Exo app itself. Mostly if you’d use something like this to increase your programming throughput. The static site was just thrown together and needs a bunch of work so don’t judge me on that :). Also a lot styling&#x2F;layout in the app is pretty poor. I’ve basically focused exclusively on functionality at the expense of looking nice.<p>I’ve been posting videos of my progress and how it works to my Twitter feed which you can find here: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;KevinGrassi" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;KevinGrassi</a><p>If you have any feedback or questions you can email me at my hn handle at gmail. I’d love to hear from you!<p>Thanks for reading this far!

暂无评论

暂无评论