Relationship Engineering: the fifth phase of building with AI The software development profession has evolved through four phases of AI integration—prompt engineering, context engineering, agentic engineering, and now relationship engineering—according to a practitioner's analysis. The author predicts the fifth phase, relationship engineering, will focus on managing long-term interactions with AI agents, shifting the primary actor from human to AI. This evolution has already made many professional software engineers stop writing code, with the author's March 2025 discovery of Windsurf's Cascade mode marking a turning point. Building things with AI has gone through four major phases already. I believe the fifth one is around the corner. I saw the fourth one coming, so why not put my predictions in writing? Let's see where the future takes us. But first, a quick review of the past and present. A quick note: this is focused on software development, but I believe the same concepts apply to all knowledge work because I have applied it to other fields, such as finance/tax work and, eventually, all work. Prompt Engineering First, there was Prompt Engineering. In prompt engineering, the user was in charge of the project, the files, the concepts, everything. And they used some kind of very simple, very quick mini-harness to ask the agent questions. In this phase, the work was not that different from before AI, just a bit more efficient. No more wading through 10 pages of google results to find an obscure incantation to solve some weird problem you were having. No more checking StackOverflow for how to solve some common problem you couldn't remember how you solved last time. Just ask. In this phase, the primary concept was... the question, and the primary actor was the human, as it had always been. But then people realised, instead of asking a short question like "How do I center a