npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

llm-chat-manager

v0.1.2

Published

Manage local Codex and Claude chat histories with a lightweight GUI and CLI.

Readme

LLM Chat Manager

npm version license

LLM Chat Manager (lcm) is a lightweight local GUI and CLI for managing Codex and Claude chat histories.

It helps when a project folder is renamed or moved and your local LLM chat history still points at the old path. It can move, copy, or delete selected conversation files while keeping a preview of what will change.

Features

  • Detect local Codex and Claude histories by project path.
  • Show conversations inline under the selected project.
  • Preview the latest message for each conversation.
  • Select all conversations or choose individual conversations.
  • Move history metadata from an old project path to a new project path.
  • Copy selected histories without changing originals.
  • Delete unwanted conversations after explicit confirmation.
  • Keep backups and recoverable deleted files under ~/.llm-chat-manager.
  • Run as a zero-dependency Node.js app on macOS, Windows, and Linux.

Install

npm install -g llm-chat-manager

Then run:

lcm

You can also run it directly from a checkout:

npm install
npm start

Requirements:

  • Node.js 20 or newer.
  • Local Codex and/or Claude history files on the same machine.

GUI

lcm

The app starts a local server and opens a browser-based GUI. It does not send chat history to a remote service.

Run a sanitized demo with sample data:

lcm --no-open
open http://127.0.0.1:7348/?demo=1

On Windows or Linux, open the same URL in your browser manually.

Screenshots

The screenshots below use demo data only. They do not contain real chat history, real project paths, or personal local file paths.

History selection and conversation management

Delete confirmation dialog

Typical flow:

  1. Select a detected Codex or Claude project history.
  2. Review the conversations that expand under the selected project.
  3. Select the conversations you want to manage.
  4. Choose Move or Copy.
  5. Enter the new project path.
  6. Run Scan.
  7. Apply the planned change.

Deletion uses a dedicated confirmation dialog. Deleted conversations are moved to:

~/.llm-chat-manager/deleted/<timestamp>/

CLI

List detected project histories:

lcm list

Scan a move before applying:

lcm scan --old /old/project/path --new /new/project/path

Move matching history metadata:

lcm apply --old /old/project/path --new /new/project/path

Copy selected conversation files instead of moving:

lcm apply --old /old/project/path --new /new/project/path --operation copy --file /path/to/session.jsonl

Delete selected conversation files. The --confirm flag is required:

lcm delete --file /path/to/session.jsonl --confirm

Common options:

--provider all|codex|claude
--file /path/to/session.jsonl
--json

Use repeated --file <jsonl> arguments to limit scan, apply, or delete operations to selected conversations.

Privacy

LLM Chat Manager runs locally. It scans files on your machine and serves the GUI from 127.0.0.1. It does not upload chat history or project paths to any remote service.

What It Changes

Codex:

  • Reads JSONL files under ~/.codex/sessions.
  • Updates path-like metadata fields, such as payload.cwd, only when they exactly match the old path.
  • Does not rewrite normal chat message text.
  • Copy mode creates a rewritten sibling copy and leaves the original unchanged.

Claude:

  • Reads JSONL files under ~/.claude/projects.
  • Moves or copies project folders to the encoded new project path.
  • When selected files are provided, only those conversation files are moved or copied.

Safety

Move operations create backups under:

~/.llm-chat-manager/backups/<timestamp>/

Delete operations move files under:

~/.llm-chat-manager/deleted/<timestamp>/

Malformed JSONL lines are preserved unchanged and reported.

The delete API requires an explicit confirmation flag, and the GUI always shows a confirmation dialog before deleting selected conversations.

Platform Support

LLM Chat Manager is designed for macOS, Windows, and Linux. It uses Node's platform-aware path handling and scans Claude cwd metadata directly, so it does not depend solely on a single folder-name encoding.

Development

npm test
npm start

Run the CLI locally:

node ./bin/lcm.mjs --help
node ./bin/lcm.mjs list

Release preflight:

npm test
npm pack --dry-run

Publishing notes are in docs/PUBLISHING.md.