# Pwn AI Memory

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

- Skill: `0dayinc/pwn-ai-memory` (Agent Skill)
- Install (CLI): `npx get-skill add 0dayinc/pwn-ai-memory`
- Raw SKILL.md: https://api.skillmd.com/api/skills/0dayinc/pwn-ai-memory/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-memory

---

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

# PWN::AI::Memory

PWN::AI::Memory provides persistent cross-session memory for the pwn-ai agent. Facts, user preferences, environment details, lessons learned, and task state are stored in ~/.pwn/memory.json and survive across REPL restarts / pwn-ai sessions. The pwn-ai agent (in agent mode) automatically receives relevant memory injected into its system prompt. The agent can also call remember/recall via ruby code blocks during execution loops.

## When to use

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

## Methodologies

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

## How to call

```ruby
PWN::AI::Memory.help
PWN::AI::Memory.transaction(opts)
```

## Public methods

- `transaction`
- `transaction_owned?`
- `load`
- `save`
- `remember`
- `recall`
- `current_session_id`
- `session_turns`
- `recent_dialog`
- `prior_user_message`
- `prior_assistant_message`
- `turn_pairs`
- `find_turn_pair`
- `meta_recall_user?`
- `meta_recall_assistant?`
- `normalize_utterance`
- `recall_semantic`
- `forget`
- `clear`
- `to_context`
- `protected_entry?`
- `lean!`
- `authors`
- `help`

## Source

`pwn/ai/memory.rb`

## Verification

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

