Late one night in Chang'an, Qin Jian, a young master of the Wordcraft, is forced to break the seal on the ancient text The Heavenly Mechanism Bamboo Slips for Prince Jin. He thinks all he needs to do is alter a few passages of history against his conscience, only to discover that the text seals away the very source of the power of words, and that Prince Jin's true aim is to rewrite the fate of an entire dynasty.
To protect the truth of history, Qin Jian flees with a mysterious jade token to the Wordmasters' sacred site deep in the Qinling Mountains, the Monastery of Guarding the Text. There he meets Lin Su, an orphan from Yangzhou who can read the stars and discern history. He learns that the massacre of salt workers fifty years ago is being quietly erased from history by a hidden mastermind. Defying the monastery's rules, the two head south and discover that the history-rewriters possess a forbidden art called Memory Implantation, which can plant false memories in people's minds.
Their investigation takes them west through the Jade Gate and deep into the desert in search of the legendary Gate of the Source of Writing. There lies the sleeping primordial power that created written language, as well as the most agonizing choice ever faced by the Wordmasters: become gods who control history, or remain ordinary people who protect the truth?
As the plot to alter history reaches its peak at Yumen Pass, Qin Jian must face the ultimate question: when using the power of words to fight tyranny, how can he make sure he does not become a rewriter himself? This is a war over memory and forgetting, truth and fiction. The victor will decide whether history is a mirror reflecting the human heart or a plaything in the hands of power.