Writing the Labyrinth: How AI, Power, and Instability Shaped my Debut Thriller, A Spy Inside the Castle
A Spy Inside the Castle: The Genesis of a Story
When I first began sketching the outline for A Spy Inside the Castle, I didn’t imagine I would be writing about artificial intelligence, shadow networks, or the fragility of the world order. What I wanted, at the start, was to capture how a relatively ordinary individual can be swept up inside the world of power. But as I wrote, the world itself pushed me in those directions. Living abroad, watching events unfold in Europe, China, and the U.S., I found myself absorbing the atmosphere of uncertainty, secrecy, and technological change. The novel grew out of those impressions.
From Research to Storytelling
I read widely during the drafting process—intelligence books on predictive technology, online articles about the post-9/11 surveillance programs, and real unfolding geopolitical crises in the FT or Foreign Affairs. At first, I worried this material would bog the book down. But then I asked: how can I translate these ideas into human drama? That became my challenge as a writer.
The result was ARCLIGHT, the quantum supercomputer at the center of the novel. It embodies the dream that data can make the future knowable. But instead of lecturing readers on AI, I wove the theme into the characters’ choices. Would they trust a machine’s predictions? What happens when prediction itself begins to shape reality? The philosophy came alive only once I attached it to flesh-and-blood dilemmas.
A Spy Inside the Castle: Building the Labyrinth

Writers often talk about settings as characters. For me, the true setting was not just Castlemartin Manor in Scotland that houses ARCLIGHT, but the labyrinth of secrecy that surrounds modern intelligence. I was fascinated by how democracies bury their most difficult decisions in classified corridors. It reminded me of a maze: the deeper you go, the harder it is to find the center—or a way out.
As a writer, I had to make that labyrinth feel real. That meant inventing shadowy elite societies, top secret government programs, and decision-making structures that would challenge my protagonist, Ethan Briar, while keeping the narrative tense and fast-moving. The research gave me the scaffolding, but imagination supplied the walls of the maze.
Writing Global Instability
A thriller thrives on uncertainty, and our time has no shortage of it. Wars, pandemics, financial volatility—these became part of the fabric of the book, but not as headlines pasted onto the page. Instead, I asked: what does it feel like for a character to live with that instability? How would someone like Ethan make moral choices when nothing around him seemed within his control? Writing in that space was less about predicting the future and more about capturing the unease of the present.
The Craft Challenge
Balancing research with narrative was the hardest part of the process. Too much realism and the novel risked sounding like a policy paper. Too much imagination and it would drift into fantasy. I rewrote entire sections to find the right mix of pace, suspense, and depth. Dialogue often saved me: when characters argued over AI or politics, readers absorbed the complexity without feeling lectured. A lot of ARC readers absolutely loved the mini lore dumps, but some liked the character journeys more. That fine tuning of balance was a lesson I’ll carry into future books—let characters wrestle with the themes so the writer doesn’t have to explain everything.
What I Learned as a Writer
This book taught me patience. It took years of drafts, false starts, and structural overhauls. It also taught me humility: the themes I was writing about—technology, power, secrecy—are bigger than any one writer. My task wasn’t to solve them but to make them accessible, to turn abstract fears into a human story.
For any writer, especially debut authors, my advice is this: don’t be afraid to tackle big themes, but always anchor them in the particular. Readers will follow you into complex territory if they care about the people at the center of it. That balance—between big ideas and intimate stakes—was the heart of my process.
A Spy Inside the Castle: Bringing it All Together
A Spy Inside the Castle isn’t ‘just another spy thriller’, it’s my attempt to explore what it feels like to live in an age where prediction, secrecy, and instability collide. Writing it was a way to process my own anxieties about the future, and to give readers a story that entertains even as it makes them think.
In the end, that’s the gift of fiction. It allows us to walk the labyrinth without getting lost, to confront the Minotaur of our times in a safe but meaningful way.
(c) M.B. Courtenay
About A Spy Inside the Castle by M.B. Courtenay:

le Carré meets Black Mirror in this cerebral espionage thriller about secrets, power, and the cost of truth.
When intelligence analyst Ethan Briar is drawn into a covert mission on the windswept Isle of Skye, he enters a world where nothing is as it seems. An abandoned supercomputer, a defector’s warning, and the specter of a long-buried betrayal set the stage for a high-stakes investigation with global implications.
At Castlemartin Manor-a decaying stronghold for a once-cutting-edge surveillance program-Ethan is forced to navigate shifting loyalties, encrypted legacies, and the labyrinthine politics of modern intelligence. As the storm outside intensifies, so does the war within: between faith and cynicism, memory and manipulation, human judgment and machine prediction.
Gripping, intelligent, and hauntingly prescient, A Spy Inside the Castle explores the intersection of technology and truth in an age where perception is weaponized-and no one is beyond suspicion.
Order your copy of A Spy Inside the Castle online here.
And read more Meet the Authors of Crime Fiction on Writing.ie here.




