Allow composer to invoke rake/cli tasks

I would love it if the chat and/or composer could invoke cli tasks as part of it’s process. For example, if it needs to add a database migration (rails), it currently attempts to add a file with the letters “YYYYMMDDHHmmSS” or something similar where the timestamp goes – if it could invoke bin/rails g migration <migration-name> instead, then modify the resulting file, the process would be much smoother.

Also, when implementing specs, it would be really awesome if the composer could make its updates, invoke the specs (bin/rspec <files>), and iterate automatically on the results.

3 Likes

Deeper Rails integration would be amazing, yes. We’re inserting a relatively large Ruby on Rails code base with Hotwired Turbo Native (turbo-ios and turb-android) and having some additional abilities such as the above would be useful.

@fbcouch I wonder if we (rails developers) add specific instructions via Cursor’s VScode Settings or root file if it’s possible to mitigate some of the problems you mentioned.

I will test something like that soon since everything connected well while I transitioned my W11 Pro WSL Ruby on Rails dev environment to Cursor.

GL and tag me if you find something that works better.