Beyond Building Agents: Why Harness Design and Optimisation Matter
summary
Built a social‑media agent that generates scripts, scene plans and stitched video clips, then discovers testing costs spike to £100 experiment bill and repeated reasoning loops. Uses Google ADK building blocks, adds a harness layer for input validation, token and tool-call tracking, caching and dry‑run mode, and splits work into multi‑agent tiers (routing on cheap models, content on medium, visuals on powerful models). Optimization cuts tokens from 16174 → 468 tokens and yields an eval score around 0.7.
AI-written summary · about
chapters (20)
- 0:00Introduction and speaker background
- 1:05Why agents are popular now
- 2:51From chatbots to agents evolution
- 4:38Social media agent project idea
- 6:49Realizing agent cost and inefficiency
- 8:57What is harnessing in agent development
- 10:21Harnessing layers and their importance
- 12:12Tool control and execution optimization
- 14:00Google ADK building blocks overview
- 16:26Multi-agent systems for optimization
- 17:49Using tools instead of LLMs for tasks
- 18:57Dry run mode for cost saving
- 20:26Caching to reduce repeated calls
- 21:11Measuring and optimizing prompts
- 21:53Model tiering for cost efficiency
- 22:58Reducing context size and token waste
- 23:38Structured output for predictable results
- 24:40Cost calculation formula explained
- 25:22Harness matrix before and after
- 26:31Future of agent engineering and Q&A
