Session

Burn Your Code: Feature Files as the Ultimate AI Agent Prompt

Most teams still prompt an AI agent with "build me this", accept plausible code and move on: no durable specification, no regression safety, and nobody knows why it works. This talk turns that around. Gherkin feature files become the single source of truth for behaviour and the prompt for the agent.

I show a workflow in which the agent takes a service from red to green and on to a Cloud Run deployment on its own, guided only by executable specifications. Because the tests describe behaviour rather than code, one suite validates implementations in Go, Java and Kotlin, and the code becomes something you can delete and regenerate. Burn your code, keep the spec.

We look at what makes this work in practice: specs without magic values, the Red/Green loop as the agent's guardrail, decision and limitation records as extra context, and the one step you cannot delegate. Models optimise for green, and they will hide business logic in the test glue code if you let them, so a human has to review the step code for test honesty.

Key takeaways:
1. Write behaviour as executable Gherkin first. It is the most reliable prompt you can give an agent.
2. Treat the implementation as replaceable: one test suite can validate the same behaviour in any language.
3. Review step code for honesty. A green suite proves nothing if the glue code cheats.


Format: talk, 30 minutes (a 50-minute version with a live rebuild on stage is available).
Level: beginner to intermediate. For developers, tech leads and architects using or evaluating AI coding agents; no BDD experience required.
Code on slides: Gherkin feature files, the step implementations behind them, and one suite running against implementations in three languages.
First public delivery: April 2026, at a community event; updated since.
A matching 60-minute hands-on workshop is available as a separate session.
Technical requirements: projector with HDMI or USB-C. Slides and demos run offline; a recorded run is available as a fallback for the live demo.
Danach Save changes. Sag Bescheid, wenn die Session gespeichert ist, dann kommt der Workshop.

Randy Gupta

Cloud Architect

Uelzen, Germany

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top