4 ms·
Cool project! I'm working in the same space (a ChatGPT plugin that can edit files within a shared VS Code workspace) and have built something similar to your "r
by ghughes 3y ago
Cool project! I'm working in the same space (a ChatGPT plugin that can edit files within a shared VS Code workspace) and have built something similar to your "repo map" concept, except slightly lower-level: what you might call a "file map" generated by selectively collapsing AST nodes to fit within the available token budget. If ctags isn't cutting it for you, have a look at tree-sitter [1]. It can generate ASTs for most languages and has a nice API.
[1] https://tree-sitter.github.io/tree-sitter/ https://tree-sitter.github.io/tree-sitter/
- anotherpaulg 3y agoGlad to hear there are others working on similar things. I've been wishing there was a good forum for like minded folks to share ideas about AI coding, beyond the random drive-by commenting that happens here on HN. I have been looking at tree-sitter quite a bit actually. I love that it has broad language support, which is a key design goal for my tool. My only hesitation is that it doesn't appear to correctly identify multi-line function signatures & calls. If you look below at create, io.tool_error and __init__ you can see that the (row,col)-(row,col) indicies only reference the first line. GPT would really benefit from seeing the entire function signature and call sites. $ tree-sitter tags aider/coders/base_coder.py ... create | function def (39, 8) - (39, 14) `def create(` check_model_availability | call ref (54, 19) - (54, 43) `if not check_model_availability(main_model):` tool_error | call ref (56, 23) - (56, 33) `io.tool_error(` EditBlockCoder | call ref (66, 19) - (66, 33) `return EditBlockCoder(main_model, io, **kwargs)` ... __init__ | function def (74, 8) - (74, 16) `def __init__(` set | call ref (89, 26) - (89, 29) `self.abs_fnames = set()` ...
- deathmonger5000 3y agoI too would be interested in a good forum for like minded folks to share ideas about AI coding!
- IanCal 3y agoSame. I don't know if it'd be Lemmy or something else just hosted somewhere, and there might just be 5 of us - if people are interested I can make something today. Strong preferences on platforms? If not I'll make something.
- braindead_in 3y agoCount me in as well.
- LuisFerreira 3y agoAnd me!
- ninjaa 3y agoInterested. I currently use GPT to write the majority of my commit messages and catch bugs at commit time.
- selestify 3y agoIs there a tool you use for that?
- IanCal 3y agoI don't want to spam everyone so will just reply here in the chain - I setup https://aicoding.club/ https://aicoding.club/, a lemmy instance for this. Emails aren't working just now as I've only just setup the domain and need to sort spf/etc, but I'll keep an eye on things to approve people.
- kaechle 3y agoLikewise interested and exploring the same area.
- Garlef 3y agoI'm also interested
- spaghetti1535 3y agoHi, I like discussing these topics too. I just created this for this purpose if you want to join me here https://discord.gg/r3vK4xY4 https://discord.gg/r3vK4xY4 There's also an existing larger "gpt hackers" Discord you might be interested in checking out that I'm not involved with: https://discord.gg/pMjHMvkK https://discord.gg/pMjHMvkK
- deathmonger5000 3y agoThank you
- spaghetti1535 3y agoHi, I like discussing these topics too. I just created this for this purpose if you want to join me here https://discord.gg/r3vK4xY4 https://discord.gg/r3vK4xY4 There's also an existing larger "gpt hackers" Discord you might be interested in checking out that I'm not involved with: https://discord.gg/pMjHMvkK https://discord.gg/pMjHMvkK
- qrian 3y agoI'd also like to join. Care to open up the invitation link again?