Skip to content

Comments

Workon feature#3438

Draft
domelqq wants to merge 10 commits intoAider-AI:mainfrom
domelqq:workon_feature
Draft

Workon feature#3438
domelqq wants to merge 10 commits intoAider-AI:mainfrom
domelqq:workon_feature

Conversation

@domelqq
Copy link

@domelqq domelqq commented Mar 4, 2025

new /workon command.
Please specify your source dir in
aider conf
workon-source-dir: src

otherwise src will be used as default.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@paul-gauthier
Copy link
Collaborator

Thanks for your interest in aider and for taking the time to make this PR.

What does this do?

@domelqq
Copy link
Author

domelqq commented Mar 4, 2025

Hi. I think this one is more preview of the feature rather than something ready to be merged. Will change it status to draft.
It adds new command /workon .
Script performs scan of entire codebase trying to find object like classes, interfaces etc.
then based on fileName extensions script perform analysis of all imports from codebase that are used in the provided file.
As a result it passes found list of files.
image

Current implementation of imports/exports parser is rather ugly (im not python programmer) it was 100% generated by aider. But it works for java kotlin and typescript which is super helpfull for me for large code base. With it knowing that I will work on file A aider can quickly provide all referenced files greatly increasing chances of correct context.

After some comments on discord looks like I could use treesitter to implement this. Let me work on it if you think that whole idea on /workon makes sense.

@domelqq domelqq marked this pull request as draft March 4, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants