Handles

"" was the name given by the Eleventh Doctor to a Cyberman head that he had obtained from the Maldovarium Market, and subsequently repaired. All of its organic components and Cyberman protocols had been cleaned out, leaving it a plain, docile robot that interpreted commands literally, whether or not they were meant to be taken as rhetorical statements. It went on many adventures with him as he searched for the mysterious planet of Trenzalore. When the Doctor went aboard ships orbiting Trenzalore before he gained access, Handles was accidentally brought aboard a Cyber-Ship, which led the Cybermen to attack the Doctor.

Outliving the residents he had chosen to protect, Handles was the Doctor's only companion during his first three hundred years in Christmas. (TV: The Time of the Doctor)

The Doctor left Handles behind when he stopped the Krynoids from spreading across Trenzalore. He spoke with Handles about happiness after he had defeated the Krynoid during the harvest festival in Christmas. (PROSE: An Apple a Day)

As the years passed, Handles began to corrode with rust and slowly lost his functionality. The Doctor kept repairing Handles as best he could, but he lacked enough spare parts and it eventually broke down. Before shutting down, Handles finally fulfilled an order the Doctor had given it prior to landing on Trenzalore: reminding the Doctor to patch the TARDIS phone back to the console. Handles' death reduced the Doctor to tears. (TV: The Time of the Doctor)

In his delirious post-regenerative condition, the Twelfth Doctor briefly believed Handles had regenerated into Clara Oswald. (TV: Deep Breath)

Abilities
Handles still carried a full set of databanks from its time as a Cyberman. The Doctor used Handles to access and compute that data. Handles was also a source of advice and conversational partner to the Doctor, with varying degrees of success due to its literal computer brain.

Handles was able to interface with the Doctor's TARDIS itself, piloting the ship as well as making use of its databanks and other systems, via a custom post on the console he could be mounted onto. When the Doctor was wearing a communicator earpiece, Handles could maintain contact with him from within the TARDIS and teleport him aboard when needed. Handles could also home the TARDIS in on the Doctor and materialise it around him when the Doctor activated his TARDIS key.

The Doctor occasionally brought Handles along on trips outside the ship. When he was being shot at by Cyberman, the Doctor used Handles to block blasts from Cyber wrist blasters. (TV: The Time of the Doctor)

Behind the scenes
Handles is the longest-serving companion, in terms of time, the Doctor has had, as he was with him for the first 300 years he was on Trenzalore.