Blog

  • Oct 30, 2026 24 min read

    Inside toolbench: the runtime for small interactive web tools

    The internals of toolbench, the framework behind mainLog's tools: what the runner guards against, why a worker exists only to be terminated, how a graph is laid out and routed the same in every browser, how known answers and size budgets keep tools honest, and why every migration is the identity function.

    frameworksarchitecture
  • Oct 29, 2026 25 min read

    Introducing toolbench: a tiny framework for interactive web tools

    Toolbench is a small framework for interactive tools in web pages. A tool is a pure function and a JSON manifest, and the runtime builds the form, runs the function and draws the answer. What it is, how it fits together, and the choices behind it, shown with tools that run live on mainLog.

    frameworksarchitecture
  • Oct 26, 2026 20 min read

    What an agent should remember

    AI & agentic architectures

    Agent memory stores mostly decide what to forget by time: a TTL, or deleting what hasn't been used. In a 90-day scripted scenario, that kept a cancelled booking alive for weeks and stored a restaurant's sentence as the user's preference. Two fields fix both: who wrote the memory, and which event would make it false.

    ai-agentsarchitecture
  • Oct 23, 2026 21 min read

    SFU, MCU, and the participant that has to decode

    AI & agentic architectures

    Put an AI agent in a group call and two questions decide the design: does the model hear each person, or one blend, and who has to hold the keys? Both come down to where the agent's audio gets decoded.

    ai-agentswebrtc
  • Oct 21, 2026 12 min read

    The one-sentence API design test

    The unwritten rules

    Six AI agents each designed one extension to my framework, and each design held up on its own. Side by side they disagreed about names every user touches. One question sorted them out, and writing down the rules my existing code already followed made the answer countable.

    api-designai-agents
  • Oct 19, 2026 21 min read

    Circuit breakers for inference

    AI & agentic architectures

    Timeouts, retries and budgets for model calls that finish too slowly, produce unusable answers or keep repeating themselves. With the real Anthropic SDK, timeout=3.0 let an 18-second stream finish. In a simulated support chat, with invented failure rates, five checks took the conversations waiting over two minutes from 249 to 0.

    ai-agentsreliability
  • Oct 30, 2026 24 min read Software craft

    Inside toolbench: the runtime for small interactive web tools

    The internals of toolbench, the framework behind mainLog's tools: what the runner guards against, why a worker exists only to be terminated, how a graph is laid out and routed the same in every browser, how known answers and size budgets keep tools honest, and why every migration is the identity function.

    frameworksarchitecturetesting
  • Oct 29, 2026 25 min read Software craft

    Introducing toolbench: a tiny framework for interactive web tools

    Toolbench is a small framework for interactive tools in web pages. A tool is a pure function and a JSON manifest, and the runtime builds the form, runs the function and draws the answer. What it is, how it fits together, and the choices behind it, shown with tools that run live on mainLog.

    frameworksarchitectureweb-components
  • Oct 26, 2026 20 min read AI

    What an agent should remember

    Agent memory stores mostly decide what to forget by time: a TTL, or deleting what hasn't been used. In a 90-day scripted scenario, that kept a cancelled booking alive for weeks and stored a restaurant's sentence as the user's preference. Two fields fix both: who wrote the memory, and which event would make it false.

    AI & agentic architecturesai-agentsarchitecture
  • Oct 23, 2026 21 min read AI

    SFU, MCU, and the participant that has to decode

    Put an AI agent in a group call and two questions decide the design: does the model hear each person, or one blend, and who has to hold the keys? Both come down to where the agent's audio gets decoded.

    AI & agentic architecturesai-agentswebrtcarchitecture
  • Oct 21, 2026 12 min read Software craft

    The one-sentence API design test

    Six AI agents each designed one extension to my framework, and each design held up on its own. Side by side they disagreed about names every user touches. One question sorted them out, and writing down the rules my existing code already followed made the answer countable.

    The unwritten rulesapi-designai-agentspython
  • Oct 19, 2026 21 min read AI

    Circuit breakers for inference

    Timeouts, retries and budgets for model calls that finish too slowly, produce unusable answers or keep repeating themselves. With the real Anthropic SDK, timeout=3.0 let an 18-second stream finish. In a simulated support chat, with invented failure rates, five checks took the conversations waiting over two minutes from 249 to 0.

    AI & agentic architecturesai-agentsreliability

  • Mar 10, 2020 16 min read

    Artificial Intelligence: A Guide for Thinking Humans

    Melanie Mitchell's honest assessment of where AI actually stands, the cycles of hype and winter, and why the barrier of meaning still separates narrow AI from anything resembling human intelligence.

    book-reviewai-agents
  • Jan 31, 2020 9 min read

    Statistical Modeling: Simple Linear Regression

    A practical introduction to statistical modeling and simple linear regression, from mathematical foundations to a real-world housing price prediction.

    machine-learningstatistics
  • Mar 10, 2020 16 min read Books

    Artificial Intelligence: A Guide for Thinking Humans

    Melanie Mitchell's honest assessment of where AI actually stands, the cycles of hype and winter, and why the barrier of meaning still separates narrow AI from anything resembling human intelligence.

    book-reviewai-agents
  • Jan 31, 2020 9 min read AI

    Statistical Modeling: Simple Linear Regression

    A practical introduction to statistical modeling and simple linear regression, from mathematical foundations to a real-world housing price prediction.

    machine-learningstatistics