# Lathe

> Have a coding agent write the hands-on tutorial, then work through it yourself in a local reader

- Category: AI Productivity & Writing / Learning & Tutoring
- Language: Go
- Licence: MIT
- Repository: https://github.com/devenjarvis/lathe
- Canonical page: https://ai-tldr.dev/tools/lathe/
- Updated: 2026-06-07

## In short

Lathe describes itself as an experiment in using LLMs to teach you rather than think for you. It sits in the Learning & Tutoring category of the AI Productivity & Writing tools and is open-source, written in Go and licensed MIT. To get started: install the binary.

## Overview

Lathe describes itself as an experiment in using LLMs to teach you rather than think for you. You prompt a coding agent with a topic, its skills write a hands-on, multi-part technical tutorial, and then you work through that tutorial by hand in a local reader built for the purpose — typing the code out yourself instead of watching an agent produce it. Every tutorial records its sources, which model wrote it, and the prompt that set its voice.

It has two halves. The LLM skills (`/lathe`, `/lathe-extend`, `/lathe-verify`, `/lathe-ask`, `/lathe-tag`, `/lathe-work`) run inside an interactive coding-agent session; the Go CLI stores tutorials under `~/.lathe/tutorials/`, serves the rendered output at `http://localhost:4242`, and owns all durable state. The binary never calls a model itself — all model work stays in whatever agent session and subscription you already use. The skills are bundled into the binary and install into Claude Code, Cursor, Codex, Gemini CLI, opencode, Cline, Windsurf or Antigravity with `lathe skills install`.

The reader is where the project spends its effort: search and filtering over a tutorial library, hover table-of-contents navigation, and side-notes written throughout to prompt deeper thinking. Its Ask, Verify and Add-a-part buttons work two ways — run `/lathe-work` once and a worker loop drives them directly in your agent session, with answers rendering in place; with no worker connected, each button hands you the exact slash command to paste. The author is candid that Lathe is itself vibecoded, that its tutorials are LLM output rather than a substitute for human-written material, and recommends reaching for the largest thinking model you have.

## What it does

- Generate a single-part or multi-part technical tutorial from any prompt, inside the coding agent you already use
- A purpose-built local reader at localhost:4242 with search, filtering, table-of-contents navigation and inline side-notes
- Ask, Verify and Extend a tutorial from the reader — live through a `/lathe-work` worker loop, or by pasting the command it hands you
- Agent-agnostic skills bundled into the binary: Claude Code, Cursor, Codex, Gemini CLI, opencode, Cline, Windsurf and Antigravity targets
- The CLI never calls a model, so tutorials run on your existing agent subscription — including a local OpenAI-compatible endpoint such as Ollama
- Every tutorial documents its sources, the model that wrote it, and the voice prompt behind it

## Getting started

Lathe is a single self-contained binary. You need `lathe` on your $PATH and a supported coding agent for the skills to run in.

1. Install the binary

   Homebrew is the recommended path on macOS (it ships as a cask, so it is macOS-only); the install script and `go install` (Go 1.25+) cover Linux.

```bash
brew install devenjarvis/tap/lathe

# or
curl -sSf https://raw.githubusercontent.com/devenjarvis/lathe/main/install.sh | sh

# or
go install github.com/devenjarvis/lathe@latest
```

2. Install the skills into your agent

   The skills are bundled into the binary; this drops them where your coding agent will discover them. Use --user for all projects, or --agent to target a specific tool.

```bash
lathe skills install                   # ./.claude/skills/<name>/SKILL.md
lathe skills install --user            # ~/.claude/skills/<name>/SKILL.md
lathe skills install --agent cursor    # Cursor slash commands
lathe skills install --agent all       # every supported target
lathe skills list
```

3. Generate a tutorial

   Prompt the agent with the /lathe skill and the thing you want to learn by building.

```text
/lathe build a 3D Slicer in Erlang
```

4. Read it

   Starts the local web server and opens the browser at localhost:4242. Pick your tutorial and start working through it.

```bash
lathe serve
```

5. Optional: connect the live worker

   Run this once in your agent session while `lathe serve` is up. The Ask drawer shows "agent connected" and the reader's Ask / Verify / Add-a-part buttons drive that session directly instead of handing you commands to paste.

```text
/lathe-work
```

## When to use it

- Get from zero to one in an obscure or very young domain where no human-written tutorial exists yet
- Learn by typing the code yourself rather than having an agent write the project for you
- Ask a question about the part you are reading and have the answer land in the reader, without leaving the tutorial
- Extend a tutorial you finished with another part, or have the agent verify that its code actually compiles and runs

## Version history

- 2026-06-07 v0.3.0: Lathe v0.3.0 shipped: a Go CLI plus /lathe skills that have Claude Code, Cursor or Codex write hands-on tutorials, served in a local reader at localhost:4242 with search, table of contents and verification.
