# Pwn AI Sessions

> Drive PWN::AI::Sessions from pwn_eval.

- Skill: `0dayinc/pwn-ai-sessions` (Agent Skill)
- Install (CLI): `npx get-skill add 0dayinc/pwn-ai-sessions`
- Raw SKILL.md: https://api.skillmd.com/api/skills/0dayinc/pwn-ai-sessions/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: 0dayInc (https://skillmd.com/u/0dayinc)
- Updated: 2026-12-02
- Page: https://skillmd.com/skills/0dayinc/pwn-ai-sessions

---

---
name: pwn-ai-sessions
description: Drive PWN::AI::Sessions from pwn_eval.
license: MIT
allowed-tools: [pwn, pwn_eval]
metadata:
  bundled: true
  generated: true
  module: PWN::AI::Sessions
  source: pwn/ai/sessions.rb
---

# PWN::AI::Sessions

PWN::AI::Sessions provides session management for pwn-ai (and other drivers) — list, resume, transcripts, and stats. Sessions are stored as JSONL transcripts in ~/.pwn/sessions/ for durability and easy search/append. pwn-ai agent mode auto-creates and appends to a session on each activation.

## When to use

Call `PWN::AI::Sessions` from `pwn_eval` when the task needs this module.
Do not reimplement it in shell.

## Methodologies

Generated from `pwn/ai/sessions.rb`. Prefer the public class methods below.
Class methods take `(opts = {})` and read `opts`.

## How to call

```ruby
PWN::AI::Sessions.help
PWN::AI::Sessions.sessions_dir(opts)
```

## Public methods

- `sessions_dir`
- `support_path`
- `list`
- `retention_status`
- `catalog`
- `dependency_index`
- `activate`
- `deactivate`
- `active?`
- `create`
- `metadata`
- `title_status`
- `resolve`
- `provisional_title`
- `refresh_title`
- `append`
- `load`
- `previous_id`
- `recall`
- `to_response_history`
- `to_llm_messages`
- `with_dependency_locks`
- `delete`
- `stats`
- `lean!`
- `protected_session_ids`
- `export`
- `retain`
- `redact`
- `authors`
- `help`

## Source

`pwn/ai/sessions.rb`

## Verification

`PWN::AI::Sessions.respond_to?(:sessions_dir)` after the
module is loaded. Read the source for parameter names.

