Building a Coding Agent in Swift, Part 2: Tool Dispatch

Dictionary-based tool dispatch, path sandboxing, and the read/write/edit file tools that let the agent work with code.