Books, research and new writing

Understand it.
Build it. Use it.

Books explain the machinery. Articles follow the research, experiments and ideas as they develop. Solutions put them to work.

Fresh from the notebook

Latest writing

All 165 articles →

New ideas, working experiments and the things learned along the way.

Books

Understand the machinery

View all books →

A selection from the growing bookshelf. Each book builds from first principles toward systems you can understand, test and use. Explore the complete collection of 26 books.

00
Research

Harness Engineering From First Principles

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

Read 0 chapters →
42
In development

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
In development

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
In development

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
Published

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
Published

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
Published

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
Published

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 →
00
Published

Machine Coding

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

Read 0 chapters →
30
Published

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
Research

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
Published

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
Published

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
Published

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
Published

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
Published

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 Published

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
Published

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
Published

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
In development

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
Published

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
Published

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
In development

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
In development

Debugging AI

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

Read 60 chapters →
32
PublishedMajor rewrite underway

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
Published

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 →
Live · Runtime

RELATE

A relation-aware embedding runtime that measures identity, compatibility, preservation, and policy-scoped usability instead of trusting raw vector similarity.

Explore solution →
Archive

Explore the article archive.

Browse 165 published articles covering experiments, technical guides and research. New writing appears above automatically as it is published.

Browse all articles