AI Summary根據 決定執行什麼。 是使用者在 後面輸入的內容。 frontmatter 是輸入框看到的子命令提示,由 產生,安裝時自動同步,不要手改。 read 預設截斷在 200 行——大多數 session 遠超這個長度,只看得到開頭一小段。
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "cc-session" skill in my project. Please run this command in my terminal: # Install skill into your project mkdir -p .claude/skills/cc-session-reader && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/cc-session-reader/SKILL.md "https://raw.githubusercontent.com/Mapleeeeeeeeeee/cc-session-reader/main/SKILL.md" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
用 cc-session CLI 讀取過去的 Claude Code session,取代直接讀 JSONL。 CLI 在 context 外完成過濾,原始 300K 壓到 30-50K,只保留對話和 tool call 一行摘要。 使用者想回顧、引用、分析過去的對話時使用。
路由
根據 $ARGUMENTS 決定執行什麼。$ARGUMENTS 是使用者在 /cc-session 後面輸入的內容。 | $ARGUMENTS | 執行 | |------|------| | 空白 | 跑 cc-session list,把清單呈現給使用者,問想看哪個 session | | list(可帶 -p、-n) | 跑 cc-session $ARGUMENTS,呈現清單 | | 一個裸 session id(沒帶子命令,例如 16d06326) | 視為要讀這個 session → 走下方 inherit 分頁流程 | | 已知子命令 + 參數(inherit/read/context/expand/stats/audit/usage) | 跑 cc-session $ARGUMENTS;若是 inherit 走分頁流程 | argument-hint frontmatter 是輸入框看到的子命令提示,由 cc-session help --argument-hint 產生,安裝時自動同步,不要手改。
讀取 session 內容
read 預設截斷在 200 行——大多數 session 遠超這個長度,只看得到開頭一小段。 inherit 將完整 session 分頁載入(每頁 ≤28K chars),確保完整覆蓋。 讀 session 時用 inherit。只在使用者明確指名要看某段特定內容時用 read 搭配 -offset 跳讀。
inherit 操作方式
inherit 記住讀取進度,重複呼叫同一個命令即自動翻頁: • cc-session inherit <id> → 第 1 頁,標示 [page 1/N | lines X-Y of Z] • 再次呼叫 cc-session inherit <id>(同樣的命令,同樣的參數)→ 第 2 頁 • 持續呼叫,直到輸出包含 [inherit complete] • 所有頁面讀完後,分析內容並回答使用者 -page N 跳到指定頁。-reset 清除進度從頭開始。
子命令速查
以下由 CLI 即時產生,永遠對應目前安裝的版本: !cc-session help
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster