Carbon nitride combined with metal sulfides offers a way to investigate light absorption and charge transfer in hydrogen-evolving photocatalysts. Findings from AgIn5S8 and MoS2 composites show why interface structure, cocatalyst location and sacrificial reagent choice matter.