The agent can disable the lints inline, so that's not sufficient.
Also, I haven't found a cross-platform + cross-agent mechanism to set permissions. Much less one that works.
Right now, I'm working on a hook that checks for changes in source files, but the plug-in system (at least of opencode) seems quite buggy.