Striving to write software, well.

TypeAngle is a software consultancy in Victoria, BC, focused on designing, building, and shipping web apps and websites. This is where I write about my work and the lessons learned along the way.

Claud Tool Use to Get Data and Run Code in Your App

Claude can't query your database or run your code, but it can ask your Rails app to do it. This post shows how tool use (function calling) works at the API level with plain Ruby, and how a simple loop around it becomes an AI agent. It also explains where MCP fits in.

My Understanding of How Large Language Models Work

How do large language models (LLMs) work? Here's a plain explanation for web developers: that explains next-token prediction, tokens, a toy Ruby bigram model, llm training, context windows, and hallucinations.