Is the rattle followed by a strong vibration? How does the clutch pedal feel? If you're having transmission issues, it could be the throw out bearing going bad. They'll sometimes make a rattle if worn out enough, but will definitely cause a vibration up the transmission. Which you should be able to feel through the shifter!