Get started

Introduction

What Driftless is, and how it keeps docs in step with code.

Driftless is an open-source docs site with agent skills. Your coding agent writes pages from your code and updates them from each pull request. It also keeps draw.io diagrams, screenshots and clips current. You review every change.

How it works

Each docs page lists the product files it describes. The agent that builds a feature also updates the pages that the feature changes, in the same session. If the docs are in your app repo, the docs change goes in the same pull request. If they are in a repo of their own, the agent drafts a linked docs pull request. On each pull request, a check lists the pages to review. A weekly check finds anything that slipped through.

How Driftless keeps docs current

What you get

Part What it does
Static site Astro and MDX, with search, light and dark themes, versions and an API reference.
Source map Links each page to the product files it describes.
Drift checks Lists pages that a change can make out of date, on each pull request and each week.
Diagrams Editable draw.io files that the agent updates in place.
Screenshots and clips Captured by a script from seeded demo data, in light and dark.
Agent skills driftless-init, docs-update, docs-diagram and docs-capture.

Driftless has no telemetry and no hosted service. The site is static files on any host.

Limits

The drift check compares file paths. A changed file means that a page can be out of date. It does not prove that the page is wrong. A person or an agent still reads the page and the change.

These docs are built with Driftless, in a repo of their own, and they describe the Driftless repo. The same drift checks keep them current.