Thank you, I just created a merge request with the proposed change.
rabbitlair → created an issue.
penyaskito → credited rabbitlair → .
lauriii → credited rabbitlair → .
ckrina → credited rabbitlair → .
penyaskito → credited rabbitlair → .
mherchel → credited rabbitlair → .
I implemented some changes to the open MR.
A new form named "Developer settings" has been added, with its own route and menu item. It contains a checkbox, "Enable Twig debug mode", which enables the Twig "debug" flag, and two other conditional checkboxes. These are to handle Twig's "autoload" and cache disabling. The one disabling cache disables both Twig cache flag and the Drupal's page, render and dynamic page caches.
The three options can also be overridden from settings file. Please, let me know if this implementation works better!