Skip to main content

sede: SEssion DEleter

logo

Delete archived coding assistant sessions from terminal, fast and safely.

CI License


Features

  • Interactive TUI flow for provider selection and session deletion
  • Supports Claude Code, GitHub Copilot, Antigravity, and OpenCode
  • Multi-select deletion with confirmation
  • Storage-aware list: title, project path, storage path, size, updated-at
  • Safe Claude cleanup: removes selected session file and prunes empty project directory
  • Non-interactive clean command for scripted, bulk deletion with a --dry-run preview

Installation

Recommended

uv tool install sede

Or

pipx install sede

Run

After installation, run:

sede

Bulk Cleanup

Delete every discovered session, across all providers, without the interactive TUI:

sede clean

Preview what would be deleted first, without touching anything:

sede clean --dry-run

Limit cleanup to one provider (--claude, --copilot, --antigravity/--agy, --opencode):

sede clean --copilot --dry-run
sede clean --claude --yes

Skip the confirmation prompt with --yes/-y. If some session files require elevated permissions to remove, re-run with sudo:

sudo sede clean --dry-run
sudo sede clean --yes

TUI Preview

Main screen:

               _      
  ___  ___  __| | ___ 
 / __|/ _ \/ _` |/ _ \
 \__ \  __/ (_| |  __/
 |___/\___|\__,_|\___|

Session Deleter
https://github.com/ilypopv/sede/
Deep clean archived coding assistant sessions from your device.

 Choose coding assistant
 ➤ 1. Claude Code
   Delete archived Claude Code sessions

   2. GitHub Copilot
   Delete archived Copilot sessions

   3. Antigravity
   Delete archived Antigravity sessions

   4. OpenCode
   Delete archived OpenCode sessions

↑↓ Navigate  |  Enter / → Select  |  Ctrl+C / Q Quit

Session selection screen:

 Available sessions: Claude Code
 1 session(s) loaded. Total size: 1.5 MB.

 Choose sessions to delete
 » ○ 1. Session title...
     Project:  /Users/you/project-path
     Storage:  ~/.claude/projects/-Users-you-project/
     Details:  1.5 MB  •  2026-07-03 09:44 UTC

↑↓ Navigate  |  ← Back  |  Space Select  |  A Toggle All  |  Enter Delete  |  Ctrl+C / Q Quit

When no sessions are found for a provider, the same screen layout is shown instead:

 Available sessions: Claude Code
 0 session(s) loaded. Total size: 0 B.

 No sessions found for Claude Code.

 Press any key to go back...

Safety Notes

  • Deletion is permanent.
  • Claude: deletes selected .jsonl session file, then removes parent project dir only if empty.
  • Copilot: deletes the selected session directory recursively.
  • Antigravity: deletes the selected conversation directory recursively.
  • OpenCode: deletes selected session rows (part/message/session with PRAGMA foreign_keys=ON) from the shared opencode.db; DB file and other sessions are untouched.
  • Always review selected entries before confirming.

Session Sources

  • Claude: ~/.claude/projects/*/*.jsonl
  • Copilot: ~/.copilot/session-state/<session-id>/
  • Antigravity: ~/.gemini/antigravity-cli/brain/<session-id>/ and ~/.gemini/antigravity/brain/<session-id>/
  • OpenCode: ~/.local/share/opencode/opencode.db (fallback ~/Library/Application Support/opencode/opencode.db, XDG_DATA_HOME honoured; same XDG path for brew/non-brew) — only chat sessions are surfaced, caches (~/.cache/opencode, ~/.local/state/opencode, snapshot/log) are excluded

Release files for sede 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sede 0.2.1
File Size Uploaded
sede-0.2.1.tar.gz 31.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sede 0.2.1
File Interpreter ABI Platform
sede-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 51.9 kB

Release files / sede-0.2.1.tar.gz

Download URL sede-0.2.1.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5b672a52df576c781646ed6c182ded0b9b910b823cca23f97909deffdcfe602c
BLAKE2b-256 checksum
How to use checksums
699fca643f860ce8eb0023c24773b020d821ede5ef11bea1da8a29399796aaa4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Release files / sede-0.2.1-py3-none-any.whl

Download URL sede-0.2.1-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbd825deb3360575f53679a1caa79e623cdc40a2177b4000c0c27b30c81f065d
BLAKE2b-256 checksum
How to use checksums
b48ad8354dc3435b2e5d38123273418e79895ed97f013bfb7fe00b367b34eaa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.2

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page