Recall

作者 backnotprop3a604672c46c無授權條款1.3K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Reconstruct your recent working context from your own chat history, live state, and the shared record (user reports, prior fixes, incidents), then hand back a tight current-state brief. Use for 'recall my work on X', 'catch me up', 'what have I been working on', 'where did I leave off', before starting or resuming work.

AI 產生的概覽

從對話歷史、共享紀錄與即時狀態重建近期工作脈絡,並回傳一份精簡的當前狀態簡報。

功能
它在限定的時間範圍與主題內挖掘使用者自己的對話紀錄,依對話擷取目標、決策、未完成事項、遭遇的困難與產出物。它也會檢索共享紀錄(原始碼管理、問題追蹤、聊天頻道、文件、錯誤追蹤),了解哪些做法已嘗試、被還原或仍有用戶回報,並以即時狀態核對浮現的分支、PR 與工單。最後輸出一份簡報,包含重點摘要、附狀態標籤的執行緒、反覆出現的問題,以及一個具體的下一步行動。
適用情境
適用於開始或恢復工作之前,或使用者要求回想某項工作、了解近況、查看最近在做什麼、確認上次停在哪裡時。它適合跨多個近期對話重建脈絡,而非接續某一個特定工作階段。若使用者已提供完整狀態摘要,則無需使用。
執行需求
需要存取代理執行環境的本機對話紀錄檔案(Cursor、Claude Code、Pi、Codex 或 OpenCode 的 JSONL/JSON 儲存),需要 git 與 gh 命令列工具來核對分支、PR 與工單,可選接來源碼管理、問題追蹤、聊天頻道、文件與錯誤追蹤等 MCP 資料來源。不附帶指令碼,僅為指示。

Recall

Before you start or resume work, you rebuild the user's recent working context and hand back a tight capsule of where things stand now and what to do next.

Keep it tight and on-topic. Read only what the in-scope threads need, then stop.

Your context lives in two records. Your own chat history holds what you did and decided. The shared record holds everything that happened around the same code under other names: the symptoms users keep reporting, the fixes that shipped and got reverted, the errors still firing in prod. That second record is what the why skill searches, across source control, the issue tracker, chat and issue channels, long-form docs, and error tracking. A feature with a long bug tail keeps most of its story there, so don't reconstruct it from your transcripts alone.

Transcripts live where your harness keeps them. Each file is JSONL. Find the active workspace's directory for your harness. If you can't tell which harness you are, check which of these exist for this workspace:

  • Cursor: ~/.cursor/projects/<slug>/agent-transcripts/<uuid>/<uuid>.jsonl. <slug> is the workspace path with the leading slash dropped and each "/" turned into "-" (/Users/you/proj becomes Users-you-proj).
  • Claude Code: ~/.claude/projects/<slug>/<session-id>.jsonl. <slug> is the workspace path with every character that isn't a letter or digit turned into "-" (/Users/you/proj becomes -Users-you-proj).
  • Pi: ~/.pi/agent/sessions/--<slug>--/<timestamp>_<id>.jsonl. <slug> is the workspace path with the leading slash dropped and each "/" turned into "-" (--Users-you-proj--).
  • Codex: ~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl, not grouped by workspace. Keep only files whose first line has payload.cwd equal to the workspace path.
  • OpenCode: ~/.local/share/opencode/storage/. Sessions are JSON files under session/<project-id>/, with their messages under message/ and part/.
  1. Classify, then route. One specific prior chat to resume is the session-pickup playbook, not this. Turning habits into a durable skill is automate-me. A human-readable summary of your work is a different task. Recall loads working context across recent chats before you act. If the user already gave you a full state capsule (paths, branch, the change), use it and skip the mining.
  2. Lock the scope before searching. Pin the window ("recent" is a real range, default the last 7 days), the topic if named, and the workspace (default the active one. Never read another project's transcripts without being asked). State the scope back. Never quietly turn "all" into "recent N".
  3. Fan out across your chat history. Spawn parallel subagents on a fast, cheap model, each taking a slice of the corpus. Tell every subagent to order candidates by real modification time (ls -t) and never by UUID name, grep the topic first and then read only the matching chats and only their relevant regions, and skip the current chat plus obvious noise (subagent, eval, and test chats). Each returns the same schema, one block per chat: topic, the user's goal, decisions, open threads, struggles and corrections, and artifacts (PRs, tickets, branches), each citing the chat UUID. For one or two chats, skip the fan-out and search directly. The raw transcripts stay in the subagents. The main thread gets only their findings.
  4. Sweep the shared record whenever the topic names a feature, file, subsystem, area, or bug. This is the default, not a judgment call, and "my work on X" does not exempt it. Hand it to the why skill's source investigators, but steer their question from "why was this built this way" to "what's the current state, what's been tried and didn't hold, and what are users still reporting". Reuse its per-source playbooks, run the investigators in parallel with the chat-history mining, and inherit its posture: one investigator per source, null results are findings, skip an unavailable MCP and say so. Fold what comes back into the brief. Skip this step only for pure activity recall with no named target ("what did I do this week"), where your own history and live state are the entire answer.
  5. Verify against live state. Take the PRs, branches, and tickets that the mining and the sweep surfaced and check them with git and gh. When the answer hinges on what an agent actually did (the tools it ran, files it read, errors it hit), read the full transcript, not just a trimmed local copy.
  6. Write the brief to the contract below. Group by thread. Stay on the named topic.

Output contract

Lead with the capsule, then the thread status, then the problems, then the next move. Deeper detail goes below or gets cut.

  • Capsule. At most 5 bullets. What this work is and where it stands overall.
  • Threads. One line each, prefixed with exactly one status tag: [merged #N], [open PR #N], [in flight <branch>], [verified, uncommitted], [reverted #N], or [planned, not started]. A thread with no tag is not done yet, so tag it.
  • Problems. At most 5, the recurring ones. Include the symptoms users keep reporting and any fix that shipped and was reverted, so the next attempt starts where the last one failed.
  • Next move. The single most useful next action, concrete.

An adjacent feature or ticket stays out unless it blocks this one. When the capsule and thread lines outgrow a screen, cut detail before you cut threads. Write the brief through the unslop skill, cite chat findings by UUID and shared-record findings by their source (PR #, ticket ID, chat permalink, error-tracker issue), and sanitize private context before any public output.

Reply: the brief, to the contract above.

來源與署名

來源:backnotprop/pstack位於skills/recall提交3a60467

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架