Building a CLI Coding Agent from Scratch
summary
Shows how the same model behaves completely differently when the harness changes: a tiny CLI runs an agentic loop (a while loop asking if the model wants another tool call) and the demo enables a tool registry (list files, read file, post tweet) so the model issues many RPC-like tool calls, compacts history, requests authorization, and returns structured output that the app enforces; uses the AI SDK for telemetry and sandboxing and the demo succeeds at identifying project files and executing approved actions.
AI-written summary · about
chapters (12)
- 0:00Introduction and setup
- 1:02What is a CLI coding agent
- 3:57Model vs harness in agents
- 7:27Simple agent loop demo
- 9:14Building a basic CLI agent
- 11:00Tool calls and contracts
- 12:02Applying agent concepts to apps
- 14:51Guardrails and observability
- 17:20AI SDK and structured output
- 20:10Designing agent workflows
- 22:34Key takeaways and summary
- 23:17Q&A session
