clinvk sessions¶
Manage sessions.
Synopsis¶
Description¶
The sessions command provides subcommands for managing clinvk sessions. Sessions store conversation history and state, allowing you to resume conversations later.
Subcommands¶
| Command | Description |
|---|---|
list |
List all sessions |
show |
Show session details |
delete |
Delete a session |
clean |
Remove old sessions |
clinvk sessions list¶
List all sessions.
Flags¶
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--backend |
-b |
string | Filter by backend | |
--status |
string | Filter by status (active, completed, error, paused) |
||
--limit |
-n |
int | Max sessions to show |
Examples¶
List all sessions:
Filter by backend:
Filter by status:
Limit results:
Combined filters:
Output¶
ID BACKEND STATUS LAST USED TOKENS TITLE/PROMPT
abc123 claude active 5 minutes ago 1234 fix the bug in auth.go
def456 codex completed 2 hours ago 5678 implement user registration
ghi789 gemini error 1 day ago - failed task
clinvk sessions show¶
Show details of a specific session.
Usage¶
Example¶
Output¶
ID: abc123
Backend: claude
Model: claude-opus-4-5-20251101
Status: active
Created: 2025-01-27T10:00:00Z
Last Used: 2025-01-27T11:30:00Z (30 minutes ago)
Working Directory: /projects/myapp
Backend Session: session-xyz
Turns: 3
Token Usage:
Input: 1234
Output: 5678
Total: 6912
Tags: [feature-auth, urgent]
clinvk sessions delete¶
Delete a specific session.
Usage¶
Example¶
Output¶
clinvk sessions clean¶
Remove old sessions.
Flags¶
| Flag | Type | Default | Description |
|---|---|---|---|
--older-than |
string | Delete sessions older than this many days (e.g. 30 or 30d) |
If not specified, uses the session.retention_days config value.
Examples¶
Clean sessions older than 30 days:
Clean sessions older than 7 days:
Use config default:
Output¶
Session Status¶
| Status | Description |
|---|---|
active |
Session is active and can be resumed |
completed |
Session completed normally |
error |
Session ended with an error |
paused |
Session is paused (not currently active) |
Common Errors¶
| Error | Cause | Solution |
|---|---|---|
session not found |
Session ID doesn't exist | Check clinvk sessions list |
invalid status filter |
Unknown status value | Use active, completed, error, or paused |
no sessions to clean |
No sessions match criteria | Adjust filters or retention period |
Exit Codes¶
| Code | Description |
|---|---|
| 0 | Success |
| 1 | Error (e.g., session not found) |
| 4 | Session error |
Related Commands¶
See Also¶
- Session Management - Guide to session management
- Configuration Reference - Session settings