The Shadow Cipher is the first book in the York trilogy, set in an alternate-history New York City shaped by the inventions of twin architects Theresa and Theodore Morningstarr. In a prologue set on New Year's Eve, 1855, the novel establishes that the twins spent 57 years transforming the city with extraordinary technology: solar-powered cobblestones, electromagnetic elevators, a transit system called the Underway, Lion batteries (a proprietary power source), and machines modeled after natural creatures, such as beetle-like street cleaners called Rollers. Four weeks earlier, the twins vanished into their Tower, deeded all property to the city, and left behind a puzzle called the Old York Cipher, promising treasure to whoever solves it. A thief stalks Ava Oneal, a young woman the Morningstarrs hired and came to regard as a granddaughter, hoping to extract their secrets. Ava overpowers him and enters 354 W. 73rd Street, one of the original Morningstarr buildings.
In present-day New York, 13-year-old twins Tess and Theo Biedermann live at 354 W. 73rd Street with their parents. Their mother is a police detective, and their maternal grandfather, Benjamin Adler, the former president of the Old York Puzzler and Cipherist Society, lives in the building's penthouse. He taught the twins everything about the Morningstarrs, though memory problems have forced him to step down from the society. Tess is prone to anxiety; Theo is analytical and guarded. One morning, a TV broadcast features real estate developer Darnell Slant arguing that the city must move past the Morningstarrs. While picking up Grandpa Ben's mail, Tess's oversized hybrid cat, Nine, grabs an envelope covered with the words "TRUST NO ONE," sealed with gold wax.
Two unsettling men sent by Slant soon arrive: The impossibly tall Mr. Stoop and the very short Mr. Pinscher deliver legal papers confirming the city has sold the building to Slant, giving residents 30 days to leave. Mrs. Biedermann's calls confirm nothing can be done legally. Jaime Cruz, a nearly-13-year-old aspiring artist who lives in the building with his grandmother Mima, the building manager, pockets the TRUST NO ONE envelope after Nine drops it. His mother died when he was young, and his father works overseas.
The three retreat to Grandpa Ben's penthouse. Tess proposes that solving the Cipher could yield treasure to save the building and prove the Cipher is real, protecting all Morningstarr structures from demolition. Theo is skeptical but agrees; Jaime agrees because the building is his home. At the Liberty Statue, Jaime opens the letter and discovers it is from Theresa Morningstarr to her brother Theodore, containing an underlined phrase about the Tredwell House being "enlightening for all who need it." Jaime suggests the letter represents a secret trail of clues parallel to the known Cipher.
Meanwhile, six-year-old Cricket Moran, a precocious building resident, encounters Stoop and Pinscher trying to open a brass dumbwaiter door in the lobby. She notices Pinscher has a strange leathery creature and resolves to spy on the men.
The trio visits the Tredwell House (the Merchant's House Museum), where Tess realizes the phrase is a pun: The servants literally "enlightened" the house by lighting its fires and lamps. In the servants' attic, she finds a verse etched under a stove referencing George Washington's "grand & pleasant seat." Theo interprets "seat" as a literal chair. At the Old York Puzzler and Cipherist Society, Edgar Wellington, Grandpa Ben's longtime friend and the society's president, warmly receives them. The children call Edgar "Uncle Edgar." A member mentions Washington's inaugural chair at the New-York Historical Society.
Each clue leads to the next. At the museum, they use washing soda to reveal invisible ink on a painting, uncovering the message: "The Other Hamilton shows you the shape of things." At Trinity Churchyard, they find a small octagon etched on the grave of Eliza Hamilton, Alexander Hamilton's wife. Theo connects the shape to the Octagon, the entrance to the former New York City Lunatic Asylum on Roosevelt Island. In the building's basement, Theo discovers a copy of the novel
Penelope inscribed by Ava Oneal: "I'm going home to find my heart. I hope you find yours."
The inscription points them back to their own building. Tess discovers that Morningstarr seals embedded in the building's window moldings can be popped out, revealing silver tokens whose positions form a Rosicrucian cipher, a substitution code using dots within a grid. Jaime recognizes the output as Underway train route designations and the tokens as fare. Over a harrowing afternoon, they ride each line, offering tokens to the Guildmen, the secretive guild operating the Underway. On the final train, the Guildman delivers the message, "To read the map, you'll have to look into the lights," then leaps from the roof. With no driver and disabled brakes, the train hurtles forward; Tess saves both boys from falling off the speeding car before it screeches to a halt. Afterward, a metal caterpillar, a Morningstarr Machine clinging to the train, metamorphoses into a giant sphinx moth and flies toward Manhattan. Theo begins to suspect that Morningstarr Machines are alive.
The moth selectively disables lights across the city, creating a pattern. They reveal their discoveries to Uncle Edgar, who flies them over the city in the society's solarship. From above, the pattern resembles a star map corresponding to December 3, 1844, viewed from Brooklyn: the date the Atlantic Avenue Tunnel opened. During a visit to Grandpa Ben at his care facility, an aide reveals that Grandpa himself mailed the Morningstarr letter to his own post office box, though how he obtained it remains unclear.
Edgar organizes a midnight expedition to the tunnel, telling the families the kids are having a sleepover. Inside, he breaks into a hidden chamber and reveals a silver suitcase, then betrays them: He has been secretly pursuing the Cipher, believing Grandpa Ben solved it before getting sick. He plans to trap the children using memory-erasing drugs. The explosion awakens a massive mechanical digging machine; Edgar is struck and carried off by Rollers into the darkness. Tess is knocked unconscious, and Theo and Jaime carry her and the suitcase through the collapsing tunnel, helped to the surface by two society members who followed them.
The suitcase proves indestructible, and its keyhole is shaped like a heart. On the last day before eviction, Tess notices that Cricket's necklace charm, a heart pierced by an arrow with key-like fletching, matches the keyhole. Cricket found the necklace in the dumbwaiter and gives it to Tess.
Using a code entered into the elevator keypad, the trio discovers Ava Oneal's hidden apartment, preserved since the 19th century, with a library and an ornate grandfather clock. The key opens the suitcase, revealing a dragon-headed walking stick and a warning that inserting the cane into the clock will start something irreversible. They place the cane in the clock's base, triggering a swarm of metallic moths. In the lobby, Stoop and Pinscher release the leathery creature, but Nine kills it, and the moths force the men into the dumbwaiter. Outside, the building implodes in controlled detonations. Tess is devastated, but as the dust clears, moonlight passing through a water tower casts a shadow in the shape of a door onto the newly exposed adjacent wall, visible only because 354 W. 73rd Street no longer stands.
Weeks later, Jaime lives in Hoboken, the twins live with their great-aunt Esther in Queens, and Mima has started her own repair business. Edgar was found alive with no memory; Stoop and Pinscher were found equally amnesiac. One evening, the three friends reunite at the empty lot, open the shadow door with the pewter dragon handle, and step across the threshold into a dark passage together.
An epilogue set in 1861 reveals the origin of the walking stick and the letter. Ava asks Charles L. Reason, a Black mathematician and educator who had known the Morningstarrs personally, to pass the Morningstarr letter through his descendants until it reaches the right people, establishing how it eventually reached Grandpa Ben. She also asks for his dragon-headed walking stick, a gift from the Morningstarrs. As Reason leaves, he senses something ominous closing in and runs, hinting at larger dangers tied to the Morningstarrs' legacy.