界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

session-query

session-query

【开发与工程】Query previous pi sessions to retrieve context, decisions, code changes, or other information. Use when you need to look up what happened in a parent session or any other session file.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: session-query description: Query previous pi sessions to retrieve context, decisions, code changes, or other information. Use when you need to look up what happened in a parent session or any other session file. disable-model-invocation: true

Session Query

Query pi session files to retrieve context from past conversations.

This skill is automatically invoked in handed-off sessions when you need to look up details from the parent session.

Usage

Use the session_query tool:

session_query(sessionPath, question)
  • sessionPath: Full path to the session file (provided in the "Parent session:" line)
  • question: Specific question about that session (e.g., "What files were modified?" or "What approach was chosen?")

Examples

session_query("/path/to/session.jsonl", "What files were modified?")
session_query("/path/to/session.jsonl", "What approach was chosen for authentication?")
session_query("/path/to/session.jsonl", "Summarize the key decisions made")

The tool loads the session and uses an LLM to answer your question based on its contents. Ask specific questions for best results.

我的收藏