Small computer program performing a particular task, working within a larger one (6)
I believe the answer is:
applet
(Other definitions for applet that I've seen before include "limited application of computing" , "Java program" , "Computer application, sounds like small fruit" , "modest programme" .)