# 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.

- **Type:** Skill
- **Install:** `agentstack add skill-tomsej-pi-ext-session-query`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [tomsej](https://agentstack.voostack.com/s/tomsej)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [tomsej](https://github.com/tomsej)
- **Source:** https://github.com/tomsej/pi-ext/tree/main/skills/session-query

## Install

```sh
agentstack add skill-tomsej-pi-ext-session-query
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [tomsej](https://github.com/tomsej)
- **Source:** [tomsej/pi-ext](https://github.com/tomsej/pi-ext)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-tomsej-pi-ext-session-query
- Seller: https://agentstack.voostack.com/s/tomsej
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
