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.2

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.2
File Size Uploaded
sede-0.2.2.tar.gz 31.0 kB Details

Built distribution (wheel)

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

Total release size: 51.9 kB

Release files / sede-0.2.2.tar.gz

Download URL sede-0.2.2.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
766c66a7bd99d5f9a43185c38094825482a3239299aac22a9c7832a07cdd983a
BLAKE2b-256 checksum
How to use checksums
34b481b7c6f4ab9f0026301fde5388aff993bbd20d3da302587c279679179f9d
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 7, 2026.

Transparency log

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

Download URL sede-0.2.2-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
539af9e892801daae36b5779e7cb74261b47a2aef4c1f5c0f5dea738f59a2723
BLAKE2b-256 checksum
How to use checksums
80a85278ff7dd233416257d3944d46cbd610bfee2cb0944a0b92a621e223869b
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 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

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