Liberty by Alasdair Shaw
Struggling with newfound sentience and desperately trying to repair itself, The Indescribable Joy of Destruction is a ship trying to find a new home. In a galaxy torn apart by generations of civil war, that isn't an easy task. Tired of being used as a killing machine, it has a huge decision to make: hide and save itself, or help other artificial intelligences achieve freedom. Unable to make the decision alone, it revives the sole human aboard - the enemy officer who crippled it.
Commander Olivia Johnson wakes to find herself in the infirmary of a strange vessel. Her nightmares deepen when she discovers it is the ship that attacked her destroyer. Even as she recovers from her physical injuries, she can't get past her survivor's guilt. She might have failed to protect her crew, but she vows to take revenge on their killer.
When the ship uncovers a genocidal plot by the commander's own admirals, Johnson realises just what is at stake. Together, the AI ship and the human officer must recruit outsiders from both sides. Training the misfits in battle to prevent the atrocity may be an impossible task, but running and hiding is no longer an option.