Save AI agent session information for later resumption. Use when: (1) Finishing a work session and want to save progress (2) User says "save session", "remember this session", or "save your session ID" (3) Before ending a long coding/debugging session (4) When user wants to be able to resume this conversation later Supports Claude, Codex, Gemini, Copilot, Cursor, and other AI agents.
Save session metadata to docs/.ai/sessions.json for future resumption by any AI agent.
python3 ~/.agents/skills/save-session/scripts/save_session.py \
--session-id "SESSION_ID" \
--agent "claude" \
--summary "Brief description of work done" \
--repo-root "$(pwd)"
For Codex, you can use automatic detection:
python3 ~/.agents/skills/save-session/scripts/save_session.py \
--session-id auto \
--agent codex \
--summary "Brief description of work done" \
--repo-root "$(pwd)"
Session storage: ~/.claude/projects/<project-hash>/<SESSION_ID>.jsonl
How to find:
/status command to see session infoclaude --resume (interactive picker)Environment: CLAUDE_CONFIG_DIR changes storage location (default: ~/.claude)
Resume: claude --resume SESSION_ID or claude -r SESSION_ID
Session storage: ~/.codex/sessions/
How to find:
/status command within Codex~/.codex/sessions/--session-id auto (uses latest ~/.codex/shell_snapshots/*.sh filename; verify if multiple sessions are active)Note: Session ID is not currently exposed to the model itself (see GitHub issue #5912)
Resume: codex resume SESSION_ID
Session storage: ~/.gemini/tmp/<project_hash>/chats/
How to find:
gemini --list-sessions to see all sessions with UUIDsResume options:
gemini --resume (latest session)gemini --resume <UUID> (specific session)gemini --resume <index> (by index number)/resume command within interactive modeHow to find:
/session or /usage command to display current session IDgh agent-task list (requires gh v2.80.0+)gh agent-task view for session detailsResume: /resume SESSION_ID or /resume last
Note: Auto-compaction maintains context across long sessions
Session storage: SQLite databases in workspace storage
~/Library/Application Support/Cursor/User/workspaceStorage/~/.config/Cursor/User/workspaceStorage/%APPDATA%\Cursor\User\workspaceStorage\How to find: Sessions stored in .vscdb files as JSON blobs
Note: No built-in session ID. Use SpecStory extension for backup/export.
Session storage: Chat history in .aider.chat.history.md in repo root
Note: No formal session ID system. History is file-based and can be referenced by timestamp.
{
"sessions": [
{
"id": "uuid-session-id",
"agent": "claude",
"summary": "Implemented multi-platform CI",
"created_at": "2026-01-31T15:45:00Z",
"tags": ["ci", "rust"]
}
]
}
| Agent | Resume Command |
|-------|----------------|
| Claude Code | claude --resume SESSION_ID |
| Codex | codex resume SESSION_ID |
| Gemini CLI | gemini --resume SESSION_ID |
| Copilot CLI | /resume SESSION_ID |
| Cursor | Restore from workspaceStorage backup |
| Aider | Reference .aider.chat.history.md |
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer