fjrdomingues / autopilot

Code Autopilot, a tool that uses GPT to read a codebase, create context and solve tasks.
610 stars 63 forks source link

Suggestion: Package as global tool #86

Open jakenuts opened 1 year ago

jakenuts commented 1 year ago

Thanks so much for doing this as I'm sure I'm not the only one who has had this on their mental "to-do" list for weeks.

One thing that might help in usage is if it was callable from any directory like "index-code" and "with-code" so you can move around your projects and index, act within that directory like the incredibly useful "ai-shell" from @builder.io/ai-shell. Maybe even as an extension to that project as it's already there.

If my boss wasn't looming, yes, I'd try. One day.

hatkyinc2 commented 1 year ago

Hi @jakenuts, I think if you alias the command then you can have it if I understand the ask, something like alias autopilot='node ~/code/autopilot/ui -d $PWD' if you add that to your ~/.profile/.bashrc/... then every time you run autopilot it would work on that directory and you can run it as autopilot -t "TASK" should work...

If you are on Windows OS, ask chatGPT to produce the equivalent

We could consider some future packaging as a npx package, or docker but need to do some config refactors first. Just not on short-term priority at the moment in my mind personally, but be happy to guild people that want to take stuff on. (I know nothing of npx, but I know Docker pretty well)