I’d love to be able to use something like this for my Python codebase, think you’ll ever expand to other languages?
The feature that can read specific functions/methods out from files only works for TypeScript (at the moment).
21–28 of 28 posts
I’d love to be able to use something like this for my Python codebase, think you’ll ever expand to other languages?
The feature that can read specific functions/methods out from files only works for TypeScript (at the moment).
Super interesting project! I like that you're exposing the structure of the git repo to GPT, and helping it understand and access the code in a semantically meaningful way via the function definition APIs. I've been working on similar things with GPT, but in a language agnostic way. That makes things a bit trickier, having to parse arbitrary source code languages. I was curious how you were parsing/lexing the files t…
That would have been impossible with just pasting the file contents into a single user interaction in chat, because of token limits. But with the plugin, it seems to work (mostly). It still meets token limits for very large files, or if it starts recursing into querying functions in each file - which is why I often tell it to only read the full files themselves.
1. Prompt: "Read project code files. Describe the flow of ? Just a step by step description of each operation taking place that this software is doing. Be as detailed as you possibly can."
2. Prompt: "Suggest improvements to this process described above, how , how taken into account, and add any additional edge cases that you can think of to make the process more robust and to cause it in a more complete way.
3. *WRITE THE TWO ABOVE ANSWERS INTO A FILE CALLED GAME_PLAN.md*
4. Prompt: "Read the file called GAME_PLAN.md and write code that implements the first improvement."
5. Profit!
ChatGPT can be quite corny in default mode. I recommend experimenting with prompts to make it sound more natural, and not using its responses verbatim in your communications.
Cool project though.
"a new era", really? ChatGPT can be quite corny in default mode. I recommend experimenting with prompts to make it sound more natural, and not using its responses verbatim in your communications. Cool project though.
"a new era", really? ChatGPT can be quite corny in default mode. I recommend experimenting with prompts to make it sound more natural, and not using its responses verbatim in your communications. Cool project though.
This plugin allows ChatGPT to pull files (on its own) from your local software project. How can you enable that with prompts exactly? Other than spending hours copy-pasting, which is what this project solves.
I'd like to know how these kinds of tools (Copilot included) avoid reading users' secret tokens and passwords. But knowing how we programmers work and how we treat security collectively, I guess I've already had the answer.
I wrote a small utility to do this (https://www.npmjs.com/package/@qnzl/lockbox) and it behaves similar to `pass` by using gpg encryption. I wrote it because I was doing a lot of programming streaming and I kept exposing secrets.
So rather than having a .profile that is:
GITHUB_TOKEN="steal this"
It's
GITHUB_TOKEN=$(lockbox product/dev/githubToken)
Then you `source` it and your secrets are in your environment without putting them into plain-text.