This X4: Foundations mod fixes and enhances the AI for both the player and NPCs with better turret responsiveness, firing more often, and many modular options for further refinement.
This X4: Foundations mod tells trade ships to sell cargo stuck in their bays for whatever reason rather than waiting for player interaction.
This X4: Foundations mod changes all visitors to be flagged as enemies, so your patrols will swat them for you.