~/talk

AI Agent as a Function

slides:none on file

Live coding builds an AI agent from scratch using Kotlin, http4k, and Claude API, starting from a simple API call and adding prompts, conversation memory, and tools. Implements caching and request streaming (a two‑line cache filter), a message‑completion loop that detects tool_use events, tools to read/list/write files and run Gradle tests, an NDJSON message store for session memory, auto‑commit and a Gradle run tests tool; refactors the loop into an agent function with composable filters and the tool‑call loop, and the features execute end‑to‑end.

AI-written summary · about

  1. 0:00Introduction to AI agents
  2. 1:06H24K basics and setup
  3. 4:13Anthropic API integration
  4. 8:04Message completion loop
  5. 10:08Defining tools for agents
  6. 12:34Tool calling workflow
  7. 17:27Creating the agent loop
  8. 22:07Adding Gradle test tool
  9. 24:36Rendering agent outputs
  10. 26:04Implementing session memory
  11. 29:09Refactoring to agent as function
  12. 32:18Adding skill support
  13. 35:09Auto-committing agent
  14. 36:57Memory tools implementation
  15. 38:22Self-improving agent filter
  16. 39:27Summary and key takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.