Skip to main content
Future of Work University

Session 3

AI 2010, intermediate

Gathering Context and Planning the Work

A hands-on session: every exercise is run live on your own machine, with the class following along together. Participants will gather the context an agent actually needs — a product brief, a real persona, the code and team rules already in place — then write a Planner agent and review its plan before any code is written, because every question it asks back is a line a specification is missing.

60 minutes

Homework due before your sitting of session 4 on 13 November 2026

Recording

Open in SharePoint — use this if the player above is blank, or asks you to sign in.

Captions and a transcript are available in the SharePoint player.

Homework

Due before your sitting of session 4 on .

Task
Pick a real PBI from your backlog, or an idea within Navitaire that you would like to try as a proof of concept, and gather its inputs: the PBI itself, any Confluence pages, and a persona from the persona library if one fits. Then run it through your planner, and iterate on the plan over a few rounds.
Deliverable
Your plan, as a Markdown file.
File name
{lastname}-{firstname}-{title}.md

Every submission is entered into a draw for exclusive program swag, awarded at the end of the semester.

Notes

Session 2 was about the harness. This session was about what goes into it: the inputs an agent needs before it can produce something predictable. It was hands-on, with the class following along on their own machines, and the UX team joined to introduce their persona library. The exercise started here, a checked bag fee calculator, continues in session 4, where its inputs and plan become a specification.

Eleven words and five thousand

The session opened with a prompt for everyone to run, in the Copilot CLI or in Visual Studio Code: “Build me a web version of the original arcade Pac-Man game.” Copilot generally declined to copy a copyrighted game and built something close instead, under names such as Pulse Runner or Muncher, whichever model was chosen. With Claude, Ryan got something very close to Pac-Man itself, and fairly consistently. The results in the chat varied widely, and running the same prompt again gave something different each time.

Eleven words go a long way because the model already knows what Pac-Man is: the rules, the maze, the levels and the scoring are all carried by the name. To see what the name was doing, Ryan asked Copilot to write a prompt that built the same game without naming it, and iterated on that prompt until it reached about 5,000 words. The result was closer to the arcade game, but it was still a muncher.

Our PBIs have no famous names in them. “Build Delta’s booking engine” does not carry the context that “Pac-Man” does, so we have to write that context down. The 5,000-word prompt was more or less a specification, though not a great one: it described everything from scratch, while almost everything we build sits on top of something that already exists.

From AI-assisted to human-led AI agents

March Madness set out to make people comfortable using chat and agents for their everyday work, and across the company, in engineering and well beyond it, they are. AI 2010 is about the next step, human-led AI agents: steering, framing, validating and correcting, while the agent does most of the work, rather than asking for a line or a method at a time and inspecting each one.

The software development lifecycle that we have used for twenty years is a series of handoffs: product defines the why and the what, engineering the how, and testing follows. The AI development lifecycle, or AI-DLC, uses agents through the whole of it, so that one person, or a few, can carry the work, validating it at points along the way. Amadeus has its own version, adapted from AWS’s, with five steps. It is the subject of session 4.

Don’t be intimidated by the terminal

Ryan does most of his agentic work in a terminal. Even in Visual Studio Code, an agent is running command-line commands on your behalf, so it is worth being comfortable there, and working from a terminal helps make the move from reading every file to verifying the outcome. Install the Copilot CLI or the Kiro CLI if you do not have one, and get to know it. A few commands go a long way:

  • mkdir bag-fees-example makes a folder, and cd bag-fees-example moves into it.
  • ls lists what is in a folder, and cd .. moves back up one level.
  • git init starts tracking a folder in Git, locally, so a change can be undone.
  • code . opens Visual Studio Code in the folder you are in.

Context makes results predictable

Coding agents are non-deterministic: the same request gives different results, as the Pac-Man exercise showed. The aim is an outcome that is as predictable as possible, and the way to get it is to give the agent the context it needs. Thin context gives results that are all over the place. Full context means intent, requirements, the existing code, the rules that apply, such as coding standards, and an approved plan.

Derek pointed out that coding with AI is expansive: a few words in, and a lot of code, and a lot of decisions, out. Many other uses, such as summarising an email, are compressive. The more expansive the task, the more the detail you give matters.

What a specification is

A specification is a saved document: a real file the team can find, compare and review, usually a Markdown file in Git alongside the code, or a page in Confluence. It guides both the AI and the people working with it, so that a team agrees on what it is trying to achieve.

A specification is the source of truth for the intent, and must not be left to go stale. The intent of the Pac-Man game would be the same whether it was built in HTML or in Java. When the intent changes, or more detail turns out to be needed, the specification is updated too.

A participant asked how much one specification should cover. “Build New Skies” is clearly too much, and session 4 goes into what a specification should include.

The questions inputs answer

This session focused on one part of a specification: its inputs. Each one answers a question.

  • Why are we doing this? The product requirements document, and what is in Azure DevOps. Information is spread across an epic, a feature, a PBI and the comments on each, and decisions are often made in the comments. AI can combine all of it into one source of truth.
  • Who is it for? Who the audience is. The persona library, below, answers this.
  • What already exists? The part of the existing product that is relevant to the change: architecture documents, API contracts and data models.
  • What rules apply? Coding standards, and the tribal knowledge of the airline industry, covered as instructions in session 2.
  • What does good look like?
  • What has already been decided? Functional requirements documents, for example.

Garbage in is garbage out, amplified. Good inputs are:

  • current, not stale;
  • authoritative, the source of truth for the intent;
  • reachable, so that an agent can read them and, where it should, update them; and
  • safe, with no personal data and no passwords, just as in code.

The persona library

Paul Jessee, with Michael Jackman and Chad Bowen of the UX team, introduced a centralised persona library. Its aim is to help UX, product and engineering make decisions around the people who actually use the product, rather than assumptions about them, and so reach the right solution sooner.

Building personas by hand is slow. The team combined existing user research and product knowledge with research done by AI, using three Markdown files: a persona template for the layout, a skill for the workflow, and an agent holding what had been gathered about each user. Each persona has five sections:

  • a snapshot, summarising the rest;
  • a journey map;
  • the primary information: needs, pain points, behaviours and context;
  • the secondary information: quotes, demographics and roles; and
  • other, listing the sources the AI used.

The team is still making the output more consistent and easier to read. The Markdown version of each persona is the one to give an agent: reference the file as an input, and the agent takes the user’s frustrations and success criteria into account as it plans. The personas are in the class materials for now, and will have a permanent home, probably in Azure DevOps, so that you can download the latest versions.

Exercise: planning a bag fee calculator

The class materials, in SharePoint and in the course’s GitHub repository, have everything for the exercise. Ryan built it from scratch, and doing the same is good practice.

  1. Make a folder for the example, with docs/inputs/personas inside it.
  2. Save the product requirements document for baggage fees, which is deliberately vague, as a Markdown file in docs/inputs.
  3. Copy the airport agent persona from the library into docs/inputs/personas. Juraj checks passengers in, accepts their bags and collects the fees, so he is the user of what is being built.
  4. Switch the agent to plan mode, so that it plans rather than writes code. In Visual Studio Code, choose Plan from the agent picker, which defaults to Agent.
  5. Ask it to “plan a checked bag fee calculator for the persona in inputs/personas”, and answer its questions.

The class materials also include a Planner agent, at .github/agents/planner.agent.md. It reads the inputs and the code, never edits the code, and asks up to five questions. Ryan’s planner asked whether this was a standalone web app, whether the pricing rules should be a configurable fee schedule, whether fees apply per flight segment, and which currency to use.

By default, the Copilot CLI saves its plan in its own session folder rather than in your workspace. Ask for it to be written to docs/plans instead, or, as a participant suggested, say so in the planner’s instructions.

The demonstration did one round of questions. Real planning takes several rounds of review and feedback. At the end, there is a set of inputs, a persona and an approved plan, with the agent’s questions answered in it. Those are the inputs to the specification in session 4, which carries on from this exercise.

Questions from the session

Do I have to build all of this by hand? No. The Amadeus AI-DLC guides you through it: it has skills and agents that ask questions, build up the inputs and write the specification, so that when the agent comes to build, it has everything it needs. Kiro does something similar. The course does it by hand first so that you understand each piece. Search for “AI-DLC” and you will find a hundred different versions; the one adopted here is based on AWS’s, and a few teams are piloting it. The details are changing month to month, but the principle holds: define the intent clearly, and the agent produces what you intended.

Is this mainly for greenfield development, or does it work on older code bases? It works on older code. Ryan has used it on Cerebrum for individual bug fixes and features, taking each PBI through the same process: a small scope, a specification and an implementation plan. The aim is to use this process for everything you do.