返回 Skill 列表
extension
分类: 开发与工程无需 API Key

session-query

查询之前的pi会话以获取上下文、决策、代码更改或其他信息。当您需要查找父会话或任何其他会话文件中发生的事情时使用。

person作者: jakexiaohubgithub

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.