Skip to content
Maxwell CollinsContact

lazyrecall, a terminal app for finding and resuming AI sessions

A terminal app for finding past AI coding sessions by what happened in them and resuming them.

What it achieved

He finds any past AI session by what happened in it and resumes it with one keystroke.

The short version

Maxwell finds any past AI coding session by what happened in it and resumes it, in its own project folder, with one keystroke. Maxwell built lazyrecall, a terminal app that shows projects, their sessions and a preview side by side, driven entirely from the keyboard with Vim keys. A background worker writes a one-line summary of every session and keeps the list current as sessions change. It reads the session files and never writes to them. It installs with one command on four platforms, through a shell installer or the Homebrew package manager.

The problem

Claude Code keeps every session as a transcript, but finding one again means remembering which folder it ran in and scrolling a list of dates and identifiers. Resuming from the wrong folder starts the agent in the wrong project. With dozens of sessions a day across many projects, earlier work is effectively lost.

In use

  1. He opens lazyrecall. Projects are on the left, that project's sessions with their summaries in the middle, and a preview on the right.
  2. He moves with Vim keys or searches for what the session was about.
  3. He presses Enter. lazyrecall moves into the session's own folder and hands over to Claude Code, which resumes with its full history.

What it achieved

  • One keystroke takes him from any past session to the agent back at work in the right project, with its full history, across every project on the machine. Before, resuming from the wrong folder started the agent in the wrong project.
  • Earlier work is found by what happened, not by date: every session carries a one-line summary of what it was about.
  • The screen never waits: summaries are written six at a time in the background, and the list updates itself as sessions change.
  • Anyone can install it with one command on four platforms, through a shell installer or the Homebrew package manager, with automatic checks on Ubuntu and macOS.

The full record

On this page
In one sentence

Maxwell built lazyrecall, a Rust terminal app that indexes every Claude Code session on the machine, writes a short summary of each with a background model worker, updates as sessions change, and resumes any session in the right project folder in one keystroke, measured at 2,541 lines of Rust in 15 source files across 2 crates, 26 tests plus a property test, CI on two operating systems, and release binaries for 4 targets with a shell installer and a Homebrew tap. He builds by directing AI agents, and he built this system that way.

lines of Rust
2,541
source files
15
crates
2
release targets
4

What it does

Three panes, one keystroke

  • A three-pane layout in the style of lazygit. Projects on the left, that project's sessions in the middle, and a preview of the selected session on the right.
  • Vim keys throughout. Move with j and k, switch panes, search, and act without leaving the keyboard.
  • Resume in one keystroke. Press Enter on a session and lazyrecall reads the session's working-directory field from its transcript, changes into that folder, and replaces itself with claude --resume for that session. The agent comes back in the project it was working in, with its full history, and lazyrecall leaves no extra process behind.

Every session summarized

  • Summaries inline. Each session in the list carries a one-line summary of what it was about, written by Claude Haiku 4.5, so a session is found by what happened in it rather than by date or identifier.
  • A background worker. Summaries are written by a worker that runs six requests at a time, reads the last 30,000 characters of each transcript, and keeps an attempt counter so a session that fails is retried a bounded number of times and never blocks the rest.
  • The interface never waits. The list is usable at once; summaries fill in as they arrive.

Always current

  • A file-system watcher sees new and changed transcripts as Claude Code writes them, with a 200-millisecond debounce, and updates the index and the panes without a restart.
  • A persistent SQLite index with a versioned schema keeps every project, session and summary between runs, so start-up is instant and summaries are written once.
  • Three threads with three connections (interface, watcher and summarizer) share the index in write-ahead-log mode, so reading and writing never block each other.

Safe by construction

  • Read-only on transcripts. lazyrecall reads Claude Code's session files and never writes to them; everything it learns goes into its own index.

Two crates

  • lazyrecall-core holds the transcript parsing, the index, the watcher and the summarizer.
  • lazyrecall-tui holds the terminal interface, built with ratatui, and the resume handoff.

What it achieved

  • One keystroke from any past session to a resumed agent in the right folder, across every project on the machine.
  • 2,541 lines of Rust in 15 source files, with 26 tests and a property test.
  • CI on Ubuntu and macOS with Clippy warnings treated as errors.
  • Release builds through cargo-dist for 4 targets, a shell installer and a Homebrew tap, under a dual MIT and Apache licence.
  • 23 commits.

The problem it solves

Claude Code keeps every session as a transcript file, but finding one again means remembering which folder it ran in and scrolling a list of dates and identifiers. Resuming it from the wrong folder starts the agent in the wrong project. With dozens of sessions a day across many projects, earlier work is effectively lost unless it can be found by what happened in it and resumed exactly where it ran. lazyrecall makes every session findable by its summary and resumable in place.

How he built it

  • A core and an interface kept apart. All logic sits in lazyrecall-core, testable without a terminal; the interface crate draws and dispatches keys.
  • Concurrency designed in. Three threads, three database connections and write-ahead logging were chosen so summarizing hundreds of sessions never freezes the screen.
  • Bounded model use. Six concurrent requests, a 30,000-character window and an attempt counter keep summarizing fast and cheap.
  • Strict checks. Clippy runs with every warning as an error on both operating systems, and a property test exercises the transcript parser on generated input.
  • Shipped as a real tool. cargo-dist builds the binaries for four targets, with an installer and a Homebrew tap, so it installs with one command.
  • Maxwell built it by directing AI agents.