In the case of Bitcoin development there are only two options.
The first is that developers must be anonymous and not expose their real identity and on the other hand we need a decentralized git repository, for example based on nostr so that the code cannot be censored.