AIBussin

Build useful systems with modern AI.

Books, tools, experiments and working solutions for agents, context, memory, language, retrieval and AI applications.

Books

Understand the machinery

View all books →

The books work through difficult subjects from first principles. The goal is not to stop at explanation: each path should lead toward something that can be built, tested or used.

30
Harness Engineering From First Principles cover

Harness Engineering From First Principles

Book II in the Pi Agents series: thirty planned chapters and ten cumulative experiments in harness engineering.

Read 30 chapters →
42
Distillation From First Principles cover

Distillation From First Principles

Teaching AI to Learn from AI. A first-principles engineering guide to knowledge distillation: knowledge transfer, compression, specialisation, reasoning, evaluation, and lawful improvement of AI systems.

Read 42 chapters →
48
Fine Tuning From First Principles cover

Fine Tuning From First Principles

Understand fine-tuning from gradients and LoRA to data, preference learning, evaluation and release. Build FineTuneLab and learn when not to train.

Read 48 chapters →
38
Adversarial Mathematics: From First Principles cover

Adversarial Mathematics: From First Principles

A new approach to mathematical investigation using AI, proof assistants, counterexamples, reproducible experiments, and independently checked evidence.

Read 38 chapters →
39
Language cover

Language

What form does communication take when intelligence becomes part of the medium through which meaning moves? A first-principles investigation of representation, attention, personal mediation and delegated action.

Read 39 chapters →
46
Pi Agents cover

Pi Agents

A practical book about finding the right layer for agent behaviour, using Pi to see and build each one: from a direct model call, through an agent core and the coding-agent application, out to interfaces and authority boundaries — worked from the least powerful mechanism that solves the problem.

Read 46 chapters →
31
Applied AI cover

Applied AI

Build from a callable model to explicit context, durable state, controlled actions, independent verification, and a deterministic runtime that decides what happens next.

Read 31 chapters →
27
Context From First Principles cover

Context From First Principles

Context as a bounded working set built from a larger information world: selection, eligibility and representation, a deterministic Context Compiler, observable delivery to a runtime, and behavioural evaluation, with an honest record of where each kind of evidence stops.

Read 27 chapters →
22
Machine Coding cover

Machine Coding

Software development when machines write the code: directing, organising, evaluating, and improving machine-produced software.

Read 22 chapters →
30
Retrieval From First Principles cover

Retrieval From First Principles

How a system discovers, ranks, filters, and selects evidence from a larger information world, and how to establish whether that evidence improved the outcome.

Read 30 chapters →
36
Jev From First Principles cover

Jev From First Principles

A practical investigation of typed decisions, with measured classifier, embedding, NLI and retrieval results, tested runtime machinery, simulations and explicitly unrun experiments. No Jev or general decision model was evaluated.

Read 36 chapters →
45
Inference From First Principles cover

Inference From First Principles

Build an inference engine from first principles: trace a trained model from tokens and tensor operations through caching, scheduling, serving and measurement, while separating performance gains from correctness and quality.

Read 45 chapters →
25
Browser AI From First Principles cover

Browser AI From First Principles

Build browser-native AI from the capability boundary upward: local models, observability, WebMCP tools, agent security, and a user-owned browser policy engine.

Read 25 chapters →
21
Memory From First Principles cover

Memory From First Principles

Build AI memory from storage and retrieval through provenance, temporal state, unfinished work, context selection, behavioural evaluation, trust, the boundary with learning, and the promotion boundary from memory to durable knowledge — adding only the mechanisms that measurement earns.

Read 21 chapters →
21
DSPy From First Principles cover

DSPy From First Principles

Turn language-model behavior into an experimental variable, then learn when optimization is measurable, when improvement is trustworthy, and what DSPy contributes to the process.

Read 21 chapters →
26
Embeddings From First Principles cover

Embeddings From First Principles

Explore what it means for information to become geometry, when that geometry can be trusted, and how representation, similarity, retrieval, calibration, cross-space alignment, and compression combine into an embedding runtime that knows its own limits.

Read 26 chapters →
19 Artificial life, complex systems and computational emergence
Digital Life: From First Principles cover

Digital Life: From First Principles

An experimental search for life-like organization in computational systems — through emergence, causality, persistence, material turnover, hidden state and finite computation.

Read 19 chapters →
16
Hallucination From First Principles cover

Hallucination From First Principles

Explore why language models hallucinate, how hallucination can be measured and evaluated, where individual detection methods fail, and how evidence, verification, policy, abstention, and memory gates can be combined to build reliable systems around stochastic models.

Read 16 chapters →
16
PyTorch From First Principles cover

PyTorch From First Principles

Understand PyTorch from first principles — from tensor geometry and autograd to model structure, transforms, attention, debugging, performance, compilation, reproducibility, and a GPT-style model built from scratch.

Read 16 chapters →
13
Models From First Principles cover

Models From First Principles

Learn to read modern AI models by decomposing them into smaller mechanisms, then rebuilding quality scorers, value and policy heads, recurrent reasoning systems, optimizers, and preference rankers in PyTorch.

Read 13 chapters →
11
Agents From First Principles cover

Agents From First Principles

Build reliable AI agents by understanding the mechanisms underneath them: control loops, actions, validation, planning, state, tools, memory, search, and external verification.

Read 11 chapters →
59
Cellular Automata From First Principles cover

Cellular Automata From First Principles

Build cellular automata from the smallest local rules, then follow them through measurement, computation, continuous artificial life, learned dynamics and reproducible engineering. A first-principles investigation of what simple local systems can do — and how to tell what the evidence actually supports.

Read 59 chapters →
47

Advanced Agents From First Principles

Go beyond basic agent loops into orchestration, evaluation, reliability, multi-step reasoning, memory, and production-grade agent systems.

Read 47 chapters →
60
Debugging AI cover

Debugging AI

Progress from deterministic debugging to diagnosing models, evidence, trajectories, and AI-generated work.

Read 60 chapters →
32
Freestyle Cognition cover

Freestyle Cognition

Think, create, research, write, and build with AI through open conversation, clear intent, structured reflection, iterative collaboration, and amplified creation.

Read 32 chapters →
16
Agent Architectures: Advanced Strategies for Intelligent LLM Systems cover

Agent Architectures: Advanced Strategies for Intelligent LLM Systems

Explore how LLM agents grow from simple conversations into reflective, tool-using, memory-enabled and multi-agent systems—and how those systems can become collaborators, companions, interfaces, and extensions of human agency. Second edition: verified sources, frozen terminology, executed examples with negative controls, and evidence boxes that state exactly what each result supports.

Read 16 chapters →
Apply

Working systems and solutions

Browse solutions →

The practical destination of the work: projects, diagnostics and tools that turn the underlying ideas into something usable.

Live · Plugin

OpenCode Remembering

A standalone memory runtime for AI agents that separates retrieval, historical recall, temporal validity, current work, trust, decisive selection, traceability, unfinished work, and explicit memory writes from permission to influence present behaviour.

Explore solution →
Live · System

ZeroModel

Evidence-first AI systems where claims, decisions, policy boundaries, failure states and replay remain explicit.

Explore solution →
Ongoing work

Latest articles, experiments and research

Browse the archive →

The New Math

Tao, Schwartz and Alpöge show that the critical skill in AI-assisted research is not prompting. It is perceiving quality: noticing when work is degrading, and recognising, then chasing, the rare moment when something exceptional happens.

Read →
Opinion

I Don't Write Code Anymore

How I went from writing and debugging software to directing AI systems, and what happens when the work no longer requires me to do it.

Read →
ZeroModel

ZeroModel: Evidence Before Ambition

ZeroModel is an attempt to compile useful parts of intelligence into identified, portable, inspectable decision artifacts — and to preserve enough evidence around those artifacts …

Read →
Archive

The long-form archive remains part of the library.

Earlier tutorials, experiments, research and technical writing stay available without making chronology the organizing principle of the site. The aim is not to chase every development; it is to preserve what remains useful.

Browse all articles