I am using macher for small edits on a codebase with gptel: https://github.com/kmontag/macher

The package define a list of tools that gptel can use to inspect and edit a project. The tools are packaged as a preset so all you have to do is add "@macher" to your prompt to include the tools & update the system directive.