~/talk

Building an AI Agent CLI from scratch in PHP

Talkat Laravel Live Denmark 2026 · 2026-08-20..08-21· [php, ai-assisted-development]
slides:none on file

A minimal PHP CLI agent is implemented using Laravel AI SDK that runs a simple agent loop: an outer user turn and an inner loop that processes model tool calls via two-call contracts. Concrete tools shown include list_files, read_file and post_tweet; an approved tweet posts successfully while a read_file on a missing path fails. The harness adds sandboxing, tool approval, observability and replay, and the model remains unchanged while tool-enabled capabilities make it practically useful.

AI-written summary · about

  1. 0:00Introduction to AI agents
  2. 1:49Understanding model vs agent
  3. 3:28The role of the harness
  4. 5:26Harness lifecycle and safety
  5. 7:13Building the agent loop
  6. 10:42Advanced agent capabilities
  7. 13:59Applying AI in workflows
  8. 17:50Observability and failures
  9. 21:16Implementing with Laravel AI
  10. 25:31Q&A and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.