P.F. Sloan and Steve Barri, who at the time were just starting the band The Grass Roots, wrote this song. Secret Agent was a US adaptation of a hit show in England called Dangerman, and CBS needed a 15-second theme to replace the British version. Sloan wrote of the song (from his website): "Somebody thought I should do a full length instrumental of the song. So I did. Meanwhile the song was picked by CBS and Johnny Rivers recorded the quick 15-second song for the TV show. The Ventures, the genius guitar instrumental group, heard the demo and recorded and released the song way before Rivers even had a finished song. The publishers asked me to finish the song, Rivers recorded it, not one of his favorite songs back then, but he's happier with it now."