Claude Session Manager logo

Claude Session Manager

Community
sugarforever
claude-session-manager

Manage Claude Code session transcripts from local JSONL storage, including listing candidate sessions, exporting full or selected sessions to organized Markdown, inspecting archives, and summarizing tool-call history. Use when the user asks to scan, parse, archive, inspect, recover, summarize, manage, or convert Claude Code sessions, `~/.claude/projects` data, `.jsonl` transcripts, tool-call history, or hard-to-read Claude Code conversation logs.

Overview

Publishersugarforever
Repository01coder-agent-skills
Skill nameclaude-session-manager
Stars
139
Forks
37
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by sugarforever on GitHub. Read the source before you install it.

Installation

Install the Claude Session Manager AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/sugarforever/01coder-agent-skills/tree/main/skills/claude-session-manager
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sugarforever/01coder-agent-skills.git /tmp/01coder-agent-skills
mkdir -p .claude/skills
cp -r /tmp/01coder-agent-skills/skills/claude-session-manager .claude/skills/claude-session-manager
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Claude Session Manager in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Claude Session Manager on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Claude Session Manager is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Claude Session Manager

Overview

Claude Code stores session transcripts as JSONL files under ~/.claude/projects/<project-key>/<session-id>.jsonl. Use the bundled manager to list candidates or export sessions into project-organized Markdown transcripts with a digest, a clean user/Claude conversation, and linked tool-call details.

Default output folder: ~/.claude/session-markdown. Tell the user before exporting there, and mention any custom output folder they requested.

Quick Start

Let the user's wording choose the mode when it is clear; otherwise ask them to choose before exporting:

  • Full mode: export all matching sessions. Use this for archive, backup, broad search, or "convert all sessions" requests.
  • Specific mode: list candidate sessions first, ask the user to pick one, then export only that session.

Run from any directory:

bash
python3 /path/to/claude-session-manager/scripts/manage_claude_sessions.py

Equivalent explicit form:

bash
python3 /path/to/claude-session-manager/scripts/manage_claude_sessions.py \
  --source ~/.claude/projects \
  --output ~/.claude/session-markdown

Useful options:

  • --mode full: export all matching sessions. This is the default.
  • --mode specific --list-candidates: print a numbered candidate table and do not export.
  • --mode specific --pick N: export the Nth candidate from the same filtered candidate list.
  • --project <text>: only export project folders whose key contains this text.
  • --session <text>: only export sessions whose id or filename contains this text.
  • --since YYYY-MM-DD: only export sessions modified on or after this date.
  • --limit N: export the N most recently modified matching sessions.
  • --include-tool-details-inline: embed full tool inputs/results in the main session Markdown. By default, the main transcript keeps compact collapsible tool summaries and links full payloads through the sidecar file.

Specific Mode Candidate Flow

Use this flow when the user wants one session, is unsure which session they need, or asks to inspect recent sessions before converting.

  1. Run a candidate list command. Use --limit 20 by default unless the user asks for a different count.
bash
python3 /path/to/claude-session-manager/scripts/manage_claude_sessions.py \
  --mode specific \
  --list-candidates \
  --limit 20
  1. If the user gave a project hint, date, or session id fragment, pass it through the same filters:
bash
python3 /path/to/claude-session-manager/scripts/manage_claude_sessions.py \
  --mode specific \
  --list-candidates \
  --project my-repo \
  --since 2026-06-01 \
  --limit 20
  1. Present the numbered candidate rows to the user. The candidate table includes modified time, project key, short session id, cwd, and first user prompt excerpt. These are the selection signals; do not ask the user to inspect raw JSONL paths.
  2. After the user chooses a number, rerun with the exact same filters and --pick N:
bash
python3 /path/to/claude-session-manager/scripts/manage_claude_sessions.py \
  --mode specific \
  --pick 3 \
  --limit 20

If the user already gives an exact session id or unique fragment, use --mode specific --session <id-or-fragment> --list-candidates first when there is any ambiguity. Export with --pick 1 only when the candidate list has exactly one match.

Output Layout

The exporter writes:

text
~/.claude/session-markdown/
├── index.md
└── <project-key>/
    ├── index.md
    ├── <session-id>.md
    └── tool-details/
        └── <session-id>.tools.md

Keep the original Claude project key as the folder name. It is stable and avoids guessing at path decoding.

Each session Markdown includes:

  • Digest: source path, project key, session id, cwd, timestamps, event/message/tool counts, and first user prompt excerpt.
  • Linked tool details file when tool calls or results exist.
  • Timeline: all events are emitted under a ## Timeline section as numbered third-level headers in ISO-8601 format: ### N. user - <ISO> for user turns and ### N. assistant - <ISO> for assistant turns.
  • Message content in the main conversation should avoid Markdown heading syntax too; convert headings to bold lines outside code fences so regular Markdown readers do not render oversized headings inside the flow.
  • Compact tool references such as <tool_call_000001> Bash - command: npm test - result inside the relevant assistant turn, with matching sections in the sidecar details file by default.
  • Metadata and attachment events (### N. attachment - <ISO>, ### N. permission-mode, ### N. file-history-snapshot, ### N. last-prompt, etc.) and [thinking] blobs in assistant turns are emitted as their own numbered events in the timeline. Readers should skip them as noise; they do not carry conversation content.

Reading Exported Sessions

  • Read the main session Markdown first. The conversation and compact tool references should be enough to understand the flow.
  • Treat each <tool_call_000001> reference as a pointer into tool-details/<session-id>.tools.md.
  • Only open the tool details file when exact command input, file content, search results, or full tool output matters.
  • Do not load the whole sidecar by default for large sessions; search for the specific tool reference.

Workflow

  1. Confirm the source folder. Default to ~/.claude/projects.
  2. Ask the user to choose full mode or specific mode if they did not already make the choice.
  3. Confirm or announce the output folder. Default to ~/.claude/session-markdown.
  4. For full mode, run the exporter script with any needed filters.
  5. For specific mode, list candidates, get the user's chosen number, then export with --pick.
  6. Report the number of sessions exported, output index path, and any parse warnings.
  7. If the user wants a specific session explained, read the generated Markdown first; load the sidecar tool details only when exact tool inputs/results matter.

Notes

  • Treat transcript data as private. It can contain prompts, file contents, command output, secrets accidentally pasted into chat, and tool results.
  • Do not delete or modify original .jsonl files.
  • Prefer sidecar tool details for large sessions. Inline tool payloads can make Markdown hard to search and load.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Claude Session Manager AI skill do?

Manage Claude Code session transcripts from local JSONL storage, including listing candidate sessions, exporting full or selected sessions to organized Markdown, inspecting archives, and summarizing tool-call history. Use when the user asks to scan, parse, archive, inspect, recover, summarize, manage, or convert Claude Code sessions, `~/.claude/projects` data, `.jsonl` transcripts, tool-call history, or hard-to-read Claude Code conversation logs.

Why use Claude Session Manager on TypingMind?

Because you install it once and use it with any model. Claude Session Manager is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Claude Session Manager in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/sugarforever/01coder-agent-skills/tree/main/skills/claude-session-manager. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Claude Session Manager?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Claude Session Manager?

As many as you like. As long as a model supports skills, you can use Claude Session Manager with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Claude Session Manager AI skill free?

Yes. It is published on GitHub by sugarforever under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇