Tessl tutorial builds scheduled agent to repair documentation drift
Tessl published a tutorial for creating an agent skill that compares CLI documentation with code, scans the repository on a weekly schedule, and opens a pull request when drift is detected. The walkthrough introduces drift manually, runs the loop by hand, and reviews its output before granting it greater autonomy. Tessl also notes that per-change checks cannot detect pre-existing drift or block changes that bypass them.
The tutorial provides a concrete implementation for using a scheduled AI agent to maintain documentation across an entire repository, extending Tessl’s docs-verification workflow beyond per-change checks.
ARTICLE
Build an agent that opens a PR whenever your docs drift
Chandler Mayo
·2 Dec 2026·11 min read

TL;DR: In Part 1, you built a check: a test and a Tessl verifier that run on every change to a CLI's docs. In this post, you'll write the loop itself: a skill that compares the docs with the code, scheduled to run every week and open a pull request when they've drifted. Then you'll plant some drift, run the loop by hand, and check its work before you trust it.