NikCLI’s session management system provides comprehensive control over chat sessions, conversation history, and workspace state. The system enables persistent conversations, context preservation, session recovery, and advanced collaboration features across multiple projects and timeframes.
List, organize, and manage multiple chat sessions with advanced filtering and search.
Session Listing
Copy
# List all sessions/sessions# List with detailed information/sessions --detailed/sessions --verbose --with-stats# List recent sessions/sessions --recent 10/sessions --today/sessions --this-week
Output Example:
Copy
Recent Sessions:┌──────────────────────┬─────────────────────┬──────────┬─────────┬──────────────┐│ ID │ Title │ Created │ Messages│ Last Activity│├──────────────────────┼─────────────────────┼──────────┼─────────┼──────────────┤│ ses_abc123 │ React Components │ 2h ago │ 45 │ 15m ago ││ ses_def456 │ API Development │ 1d ago │ 78 │ 3h ago ││ ses_ghi789 │ Database Migration │ 3d ago │ 23 │ 1d ago │└──────────────────────┴─────────────────────┴──────────┴─────────┴──────────────┘
Session Filtering
Copy
# Filter by project/sessions --project "e-commerce"/sessions --workspace "/path/to/project"# Filter by agent usage/sessions --agent react-expert/sessions --multi-agent# Filter by content/sessions --search "authentication"/sessions --contains "typescript"# Filter by date range/sessions --since "2024-01-01"/sessions --between "2024-01-01" "2024-01-31"
Session Organization
Copy
# Organize by tags/sessions --tag frontend/sessions --tag "react,typescript"# Organize by categories/sessions --category development/sessions --category debugging/sessions --category planning# Archive old sessions/sessions --archive --older-than 30d/sessions --archive ses_abc123# Star important sessions/sessions --star ses_def456/sessions --starred
Manually save session state with custom metadata and organization.
Session Saving
Copy
# Save current session/save# Save with custom title/save "React Hook Implementation"# Save with metadata/save "Authentication System" --description "JWT implementation with refresh tokens" --tags "auth,jwt,security" --category development
Save Options
Copy
# Save with compression/save --compress --optimize-history# Save snapshot only (no full history)/save --snapshot "Current Progress"# Save with external references/save --include-files --include-context/save --embed-workspace-state
Import sessions from various sources and formats for migration and sharing.
Import Sources
Copy
# Import from file/import session-backup.json/import conversation-export.md --format markdown# Import from URL/import https://example.com/session-export.json/import --url --validate --preview# Import from clipboard/import --clipboard --format auto-detect
Import Options
Copy
# Import with validation/import session.json --validate --check-integrity# Import with merge options/import session.json --merge-with-current/import session.json --create-new-session# Import with transformations/import session.json --update-timestamps/import session.json --resolve-references
Migration Import
Copy
# Import from other CLI tools/import --from-chatgpt conversation.json/import --from-claude-desktop session.json# Import from version control/import --from-git-history --branch main --path docs/# Import from backup systems/import --from-backup backup-2024-01-15.zip
Use /sessions --recent to quickly access your most recent work, and consider using session templates to standardize your workflow setup for different types of projects.