backfill: keep every Claude Code and Codex session in your project

backfill keeps every Claude Code and Codex session of a project in the project itself. Install it once per computer; from then on each session you start, in any repository, is saved to that repository’s .claude-logs/ or .codex-logs/ folder.

Get backfill on PyPI Get backfill on Homebrew

Install

pipx install backfill            # or: uv tool install backfill
brew install focsd/tap/backfill  # Homebrew alternative
backfill install                 # once per computer: hooks into Claude Code and Codex
backfill doctor                  # everything green? you are done

Restart open Claude Code or Codex sessions. Upgrade with pipx upgrade backfill or brew upgrade backfill, then run backfill install once more.

What it does

Private by design

Requirements

Python 3.11 or later, and Claude Code, Codex or both.

Availability

Version 0.3.0 is on PyPI and in the Homebrew tap. Questions are welcome at .