My New Book: Prompt Engineering 2.0: Agents, Skills, and Loops
By Youssef Hosni
Published: 2026-10-09
URL: https://todatabeyond.substack.com/p/prompt-engineering-20-book-is-here
Hi,
I’ve just published Prompt Engineering 2.0: Agents, Skills, and Loops, the second edition of my 2024 book.
The first edition came out in September 2024, with examples built around gpt-3.5-turbo. This edition expands the coverage to include tool use, structured outputs, reasoning models, retrieval, and building applications with agents.
The book now has 288 pages and 16 chapters across five parts. The largest addition is a complete part on agent skills and loops: packaging instructions and code into reusable skills, retaining state across runs, verifying results, and deciding which actions need human approval.
I also reran the earlier examples. Several no longer demonstrated the problems they were supposed to show. The updated experiments examine which techniques still help, which made no measurable difference, and where older advice needs reconsidering.
There is also dedicated coverage of evaluation, prompt injection, cost, latency, and caching. The final chapter brings these ideas together in a customer-support system that grounds replies in a policy, validates them in code, and escalates unresolved cases to a human.
You’ll get more than 20 figures, chapter exercises, and a companion code repo, including notebooks, a complete skill, and a working loop example.
There is an early bird discount: the book is $19 instead of $29 until Sunday, 18 October, at 23:59 EEST. Use code 5otr3fv at checkout.
50% discount for To Data & Beyond paid subscribers
You can also get it as part of the Latest Books Bundle, alongside Hands-On LangChain, the 280-page, code-first guide to building LLM applications and agents with LangChain, LangGraph, LangMem, and LangSmith.
Together, the books cover prompting and evaluating models, then building applications and agent workflows around them.
Get both books for $45 instead of $59.
A few other updates you may be interested in:
I am hosting a Claude Cowork MasterClass that takes place on Sunday, 18 October, from 19:00–21:00 EEST. During the session, you’ll build a working Cowork workflow that you can continue using afterward.
The early price is €29 until Sunday, 11 October, at 23:59 EEST, after which it increases to €36.
30% discount for To Data & Beyond paid subscribers
Finally, the Building Multi-Agent Deep Search Systems from Scratch course is now available as a course. It includes 8 video lessons, slides, a 150-page technical handbook, and the code using the Claude Agent SDK.
Building Deep Search Agent course
Thank you for supporting my work.
Youssef
