News for hackers. Stuff that matters.
Re:Show HN: Superblocks AI – AI coding assistant for interna... by cududa on Tuesday June 27, 2023 @03:07PM (#36497316)
At first was excited when I clicked the link. I think for some people, this is a fantastic solution.

However, for me, what I was hoping it was/ one thing I'm still looking for: Feed in my whole repo to the GPT-4 API, train on it, and ask questions about the code base/ particular functions. Has anyone seen that?

Re:Show HN: Superblocks AI – AI coding assistant for interna... by anotherpaulg on Tuesday June 27, 2023 @03:28PM (#36497532)
My tool aider lets you ask GPT questions about a git repo, as well as letting you ask gpt to edit the code. Here's an example of exploring and then modifying an open source js repo:

https://aider.chat/examples/2048-game.html

Here's an article about how it does that:

https://aider.chat/docs/ctags.html

I think bloop is also good for searching and Q&A against code. I'm not sure if it will let you edit/modify the code though.

https://bloop.ai

Re:Show HN: Superblocks AI – AI coding assistant for interna... by dr_kiszonka on Tuesday June 27, 2023 @09:00PM (#36500909)
Your tool looks very impressive. Have you ever tried how well it works with Android app repos?
Re:Show HN: Superblocks AI – AI coding assistant for interna... by anotherpaulg on Wednesday June 28, 2023 @01:50PM (#36510017)
Aider seems pretty comfortable working with android apps. Here's a conversation I just had with it:

> what's a simple, popular open source android app?

One simple and popular open source Android app is "Minimal ToDo". It's a simple task management app with a clean, minimalistic user interface. The source code is available on GitHub and it's a great project for beginners who want to understand the structure and functioning of an Android app.

> clone command to clone minimal todo?

To clone the Minimal ToDo app from GitHub, you can use the following command:

  ```bash
  git clone https://github.com/avjinder/Minimal-Todo.git
  ```
This will create a local copy of the Minimal ToDo repository on your machine.

> tell me about the overall structure of this codebase

This codebase appears to be for an Android application, specifically a to-do list app. The structure is typical of an Android project, with Java source files, XML layout files, and resource files.

1. Java Source Files: These are located in the `app/src/main/java/com/example/avjindersinghsekhon/minimaltodo` directory. The package structure suggests that the app is divided into several modules such as `About`, `AddToDo`, `Analytics`, `AppDefault`, `Main`, `Reminder`, `Settings`, and `Utility`. Each module contains classes related to its functionality.

2. XML Layout Files: These are located in the `app/src/main/res/layout` directory. They define the user interface for different activities and fragments in the app.

3. Resource Files: These include drawable resources (images, icons), values (strings, dimensions, colors), and menu definitions. They are located in the `app/src/main/res` directory.

4. Gradle Files: The `build.gradle` files specify the build configuration for the app. There are typically two such files in an Android project: one for the project and one for the app module.

5. Test Files: These are located in the `app/src/androidTest/java/com/example/avjindersinghsekhon/minimaltodo` directory. They contain tests for the application's functionality.

6. Manifest File: The `AndroidManifest.xml` file in the `app/src/main` directory declares the app's components to the Android system and specifies permissions and other app requirements.

7. Properties and Configuration Files: Files like `gradle.properties` and `.travis.yml` are used for configuration of the build system and continuous integration services.

8. Other Files: The `google-services.json` file is typically used for configuring services from Google Firebase. The `.idea` directory contains configuration files for the IntelliJ IDEA IDE.

Re:Show HN: Superblocks AI – AI coding assistant for interna... by detour on Tuesday June 27, 2023 @03:10PM (#36497353)
haven't used it yet but Tzap looks like it'd fit the bill

- https://github.com/tzapio/tzap

- https://news.ycombinator.com/item?id=36377918

Re:Show HN: Superblocks AI – AI coding assistant for interna... by frankgrecojr on Tuesday June 27, 2023 @03:08PM (#36497329)
This will be awesome when it's possible! I often wish GitHub Copilot knew more about my repo than it does.
Re:Show HN: Superblocks AI – AI coding assistant for interna... by late_night_ on Tuesday June 27, 2023 @03:44PM (#36497705)
Ever heard of Cody by Sourcegraph?

about.sourcegraph.com

Re:Show HN: Superblocks AI – AI coding assistant for interna... by derwiki on Tuesday June 27, 2023 @03:58PM (#36497885)
Does it do well? How does it get around the context window limits?
Re:Show HN: Superblocks AI – AI coding assistant for interna... by ntonozzi on Wednesday June 28, 2023 @11:21PM (#36515936)
It uses Claude from anthropic which has a 100k context window. It typically stuffs the 15 most relevant files into the prompt to spit out the output. It’s shockingly fast.

I really like it for figuring out how something in my code base is done, like figuring out where exactly rate limits happen and what service we use to track them.

Re:Show HN: Superblocks AI – AI coding assistant for interna... by cududa on Thursday June 29, 2023 @03:34PM (#36525603)
Will check it out - thank you!