engage.memory

engage.memory is a command for Claude Code from hypnguyen1209/offensive-claude. It costs 15 tokens per session (379 once invoked), scanned A, original, MIT.

A command for maintaining a shared memory of confirmed security findings and previously useful testing patterns. It can recall, save, clean up, and count those records.

In plain words
What is it for?
Use it to retrieve relevant prior patterns, record confirmed findings after validation, compact duplicate records, rotate audit logs, and view counts by vulnerability type.
Why use it?
It prevents confirmed lessons from being lost between security engagements and avoids treating unverified findings as established knowledge.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python skills/engagement-memory/scripts/pattern_db.py match \.

Part of the offensive-claude plugin — 30 skills, 18 commands, 8 agents, 1 hook shipped together

Good fit Use it to retrieve relevant prior patterns, record confirmed findings after validation, compact duplicate records, rotate audit logs, and view counts by vulnerability type.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/hypnguyen1209/offensive-claude
agentmods
npx agentmods add commands/hypnguyen1209/offensive-claude/engage.memory

Made for: Claude Code.

Or install offensive-claude, the plugin that ships this one along with the rest of its 30 skills, 18 commands, 8 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for engage.memory

README.md
[![agentmods](https://agentmods.dev/badge/commands/hypnguyen1209/offensive-claude/engage.memory.svg)](https://agentmods.dev/commands/hypnguyen1209/offensive-claude/engage.memory)
Your own site
<a href="https://agentmods.dev/commands/hypnguyen1209/offensive-claude/engage.memory"><img src="https://agentmods.dev/badge/commands/hypnguyen1209/offensive-claude/engage.memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 379 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00379
Opus 5 $0.00008 $0.00189
Sonnet 5 $0.00003 $0.00076
Haiku 4.5 $0.00002 $0.00038

Measured 8d ago against content hash b4b1394475be, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

engage.memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/engage.memory.md · 49 lines

What it actually says

/engage.memory

Manage the cross-engagement learning store (skills/engagement-memory). Patterns are ranked by impact (CVSS/severity) and recalled as an explicit top-N query.

Usage

/engage.memory <recall|record|gc|stats> [options]

Subcommands

recall

Pull the top prior patterns for the current target's class / tech stack and write them to .engage/recon/prior-intel.md so weaponization starts from what already worked.

python skills/engagement-memory/scripts/pattern_db.py match \
    --vuln-class <class> --tech-stack <a,b> --target <host> --top 10 --json

record

Persist a [CONFIRMED] finding (run after /engage.report / validate_findings.py). Only confirmed findings are recorded; [POSSIBLE]/[REJECTED] are not learned.

python skills/engagement-memory/scripts/pattern_db.py record --json '<finding json>'

gc

Compact the pattern DB (dedup-merge, knowledge preserved) and rotate the disposable audit log.

python skills/engagement-memory/scripts/pattern_db.py compact

stats

Show pattern counts by vulnerability class.

Notes

  • Storage: ~/.claude/engagement-memory/patterns.jsonl (override $ENGAGEMENT_DB; use a per-client DB if ROE requires client isolation).
  • Recall is generic-by-class/stack; review before reusing across clients.
  • Records hold technique + CWE/CVSS + an evidence reference, never raw loot.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 49 lines · 15 tokens per session scan A b4b1394475be

Subscribe to this mod's changes

engage.memory is a command published in the GitHub repository hypnguyen1209/offensive-claude (357 stars, last pushed 21d ago), licensed MIT. It adds 15 tokens to every session and 379 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.