OussemaBenAmeur/lesson

4 stars · Last commit 2026-04-20

Turn AI coding sessions into textbook-quality lessons via knowledge-graph extraction. Works with Claude Code, Cursor, Codex, and more.

README preview

# lesson

[![PyPI](https://img.shields.io/pypi/v/lesson-ai)](https://pypi.org/project/lesson-ai/)
[![Python](https://img.shields.io/pypi/pyversions/lesson-ai)](https://pypi.org/project/lesson-ai/)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

**An AI coding plugin that turns real working sessions into grounded, reusable lessons.**

`lesson` watches tool activity inside a live AI session, keeps a compact record of the important turns, and turns the final arc into a lesson built from your actual files, commands, errors, and wrong assumptions.

Instead of generating a generic tutorial from scratch, it produces a lesson about what really happened:

- what you were trying to do
- where it broke
- which concept was actually missing
- why the misconception was believable
- what fixed it
- how to test whether you now understand it

```text

View full repository on GitHub →