Metadata-Version: 2.4
Name: sede
Version: 0.1.4
Summary: Session deleter for coding assistants
Author-email: Ilya Popov <ilypopv@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/ilypopv/sede
Project-URL: Repository, https://github.com/ilypopv/sede
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typer<1.0,>=0.12
Requires-Dist: questionary<3.0,>=2.0
Requires-Dist: rich<14.0,>=13.7
Provides-Extra: dev
Requires-Dist: pytest<9.0,>=8.2; extra == "dev"
Requires-Dist: pytest-cov<6.0,>=5.0; extra == "dev"
Dynamic: license-file

# sede: SEssion DEleter

_Delete archived coding assistant sessions from terminal, fast and safely._

[![CI](https://img.shields.io/github/actions/workflow/status/ilypopv/sede/ci.yml?style=flat-square&label=CI)](https://github.com/ilypopv/sede/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)

## Features

- Interactive TUI flow for provider selection and session deletion
- Supports `Claude Code` and `GitHub Copilot`
- 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

## Installation

```bash
pipx install sede
```

## Run

After installation, run:

```bash
sede
```

## TUI Preview

Main screen:

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

Session Deleter v0.1.4
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

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

Session selection screen:

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

 Choose sessions to delete
 » ○ Session title...
   /Users/you/project-path
   ~/.claude/projects/-Users-you-project/
   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:

```text
 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.
- Always review selected entries before confirming.

## Session Sources

- Claude: `~/.claude/projects/*/*.jsonl`
- Copilot: `~/.copilot/session-state/<session-id>/`
