Dirk Gently's Holistic Detective Agency was originally a humorous detective novel written by Douglas Adams and published in 1987. The protagonist Dirk Gently is a private detective who attempts to solve crimes by investigating the "fundamental interconnectedness of all things." The novel had a sequel titled The Long Dark Tea-Time of the Soul, and an uncompleted third book was titled The Salmon of Doubt. There have been many adaptations of Dirk Gently in other media, including two separate television shows. The 2010 adaptation Dirk Gently aired on BBC Four and starred Stephen Mangan in the title role. The 2016 adaptation Dirk Gently's Holistic Detective Agency is a BBC America production starring Samuel Barnett.