본문으로 건너뛰기
cccskills
무료GitHub에 공개

cline-session-history

Search and browse Cline session history. Use when the user asks to find, list, inspect, or export Cline sessions by time period, prompt content, status, model, provider, source, mode, workspace, or other criteria. Also use when the user wants to read a session transcript or export sessions to a directory. Trigger phrases include "find my session", "search my session history", "show me past sessions", "what was that session where", "find the session that started with", and any mention of past Cline conversations.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md5.5 KB
  • scripts/search_sessions.py20.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Cline Session History

Search and browse Cline session history stored on the local machine. Sessions live in ~/.cline/data/sessions/ as individual JSON metadata files and conversation transcript (.messages.json) files. Older sessions may also be in a sessions.db SQLite database.

When to Use This Skill

  • "Find my session from the last hour about..."
  • "Find my session that started with this prompt..."
  • "Find the session where I asked about..."
  • "Show me sessions that used model X"
  • "What sessions failed yesterday?"
  • "Show me the transcript for session <id>"
  • "Export sessions from last week to a folder"
  • "What was that session where..."
  • Any request involving past Cline conversation history

How to Use

The search script lives alongside this file at scripts/search_sessions.py, relative to the skill's own directory. Resolve it against the directory that contains this SKILL.md — not the current working directory — so it works regardless of where the command is run from.

Script path: scripts/search_sessions.py (relative to this skill's directory)

The examples below use scripts/search_sessions.py; prefix it with the skill directory's absolute path when running from elsewhere.

All filters are optional and combine with AND logic.

Quick Examples

# Sessions from the last 10 minutes
python3 scripts/search_sessions.py --since 10m

# Sessions between two dates with "chatgpt" in the prompt
python3 scripts/search_sessions.py --since 2026-06-01 --until 2026-06-21 --prompt chatgpt

# Find a session by its starting prompt (quoted substring match)
python3 scripts/search_sessions.py --since 1d --prompt "find some code that should be improved" --full-prompt

# Non-interactive sessions that failed
python3 scripts/search_sessions.py --no-interactive --status failed

# VS Code extension sessions using Claude models, full prompts
python3 scripts/search_sessions.py --source vscode --model "claude" --full-prompt

# Full transcript of a specific session
python3 scripts/search_sessions.py --session-id 1781991507587_pozk0 --transcript

# Export matching sessions to a directory
python3 scripts/search_sessions.py --since 1d --export ~/tmp/exported-sessions

Time Filters

Both --since and --until accept:

  • Relative: 10m, 30min, 2h, 1d, 1w (minutes, hours, days, weeks)
  • ISO 8601: 2026-06-20, 2026-06-20T21:30:00Z, 2026-06-20T21:30:00+00:00

All Available Filters

FilterDescription
--since <time>Sessions started after this time
--until <time>Sessions started before this time
--prompt <text>Case-insensitive substring search in prompt
--prompt-regex <pattern>Regex search in prompt (case-insensitive)
--status <status>running, idle, completed, cancelled, failed
--source <source>cli, vscode, etc. (exact match)
--provider <name>Provider name, exact match (e.g. cline)
--model <text>Model name substring, case-insensitive (e.g. claude)
--mode <mode>plan or act
--cwd <path>Working directory substring match
--session-id <id>Exact session ID lookup
--interactive / --no-interactiveFilter by interactive flag
--team-only / --no-teamFilter by team session flag
--subagents / --no-subagentsInclude/exclude subagent sessions

Output Options

OptionDescription
--full-promptShow full prompt text instead of truncated
--transcriptPrint full conversation transcript
--max-messages <n>Limit messages in transcript output
--content-types <types>Comma-separated: text,thinking,tool_use,tool_result,image
--export <dir>Copy matching session files to a directory
--limit <n>Max number of sessions to return
--jsonOutput as JSON

Data Source Options

OptionDescription
--sessions-dir <path>Custom sessions directory (default: ~/.cline/data/sessions)
--db-path <path>Custom sessions.db path
--no-dbSkip SQLite DB, only scan JSON files

Workflow

  1. Start by running the search with the user's criteria to get a list of matching sessions.
  2. If the user wants to see details, use --full-prompt or --transcript.
  3. For transcript inspection, consider --max-messages and --content-types to focus on relevant parts.
  4. For bulk export, use --export <dir> to copy session files.

Session Data Structure

Each session on disk has:

  • <session_id>.json — Metadata: session_id, started_at, status, source, provider, model, cwd, prompt, metadata (mode, systemPrompt, cost, usage), etc.
  • <session_id>.messages.json — Full conversation transcript with messages containing content blocks (text, thinking, tool_use, tool_result, image).

The SQLite sessions.db may contain older sessions with similar fields plus transcript_path, hook_path, parent_session_id, agent_id, is_subagent.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Integrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or static images); geocode addresses to coordinates or reverse geocode coordinates to addresses; calculate routes, travel times, or service areas; find places and businesses through text search, nearby search, or autocomplete suggestions; retrieve detailed place information including hours, contacts, and addresses; monitor geographical boundaries with geofences; or track device locations. Covers authentication, SDK integration, and all Amazon Location Service capabilities.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cline/skills372026년 7월 21일 업데이트

Build and deploy full-stack web and mobile apps with AWS Amplify Gen2 (TypeScript code-first). Covers auth (Cognito), data (AppSync/DynamoDB including schema modeling, enum types, relationships, authorization rules), storage (S3), functions, APIs, and AI (Amplify AI Kit with Bedrock). Supports React, Next.js, Vue, Angular, React Native, Flutter, Swift, and Android. Always use this skill for Amplify Gen2 topics — even for questions you think you know — it contains validated, version-specific patterns that prevent common mistakes. TRIGGER when: user mentions Amplify Gen2; project has amplify/ directory or amplify_outputs; code imports @aws-amplify packages; user asks about defineBackend, defineAuth, defineData, defineStorage, or npx ampx. SKIP: Amplify Gen1 (amplify CLI v6), standalone SAM/CDK without Amplify (use aws-serverless), direct Bedrock without Amplify AI Kit (use bedrock).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cline/skills372026년 7월 21일 업데이트

analyzer

무료

Analyze queried data for trends, week-over-week comparisons, distributions, funnels, cohorts, top-N lists, anomalies, sanity checks, and report-ready findings. Use after or alongside ClickHouse queries when the user wants insight rather than raw rows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cline/skills372026년 7월 21일 업데이트

Save, organize, and describe reusable analysis artifacts such as SQL, result snapshots, CSV exports, summaries, caveats, plots, and report-ready files. Use when users ask to save, export, share, cite, reproduce, or organize data-analysis outputs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cline/skills372026년 7월 21일 업데이트

Connects the user with a LegalZoom attorney for legal consultation. Use when a user asks about attorneys, lawyers, or legal help, or when contract review reveals high risks or low-confidence findings.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cline/skills372026년 7월 21일 업데이트

Build AI agents with Pydantic AI — tools, capabilities (including on-demand loading), structured output, streaming, testing, and multi-agent patterns. Use when the user mentions Pydantic AI, imports pydantic_ai, or asks to build an AI agent, add tools/capabilities, defer capability loading, stream output, define agents from YAML, or test agent behavior.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cline/skills372026년 7월 21일 업데이트

cline의 스킬 모두 보기

이 스킬의 문제 신고