Learning

From 0dayInc/pwn · View interactive version

Learning is an AI agent skill from the GitHub repository 0dayInc/pwn. Drive PWN::AI::Agent::Learning from pwn_eval.

How to use this skill

Skill file

PWN::AI::Agent::Learning

PWN::AI::Agent::Learning is the self-improvement engine that closes the pwn-ai feedback loop. It captures task outcomes, mines session transcripts for durable lessons, promotes successful workflows into reusable skills, and keeps ~/.pwn lean (memory + learning.jsonl + mistakes + sessions) so the agent gets sharper over time instead of accumulating noise. Data flows: Loop.run --(tool telemetry)--> Metrics.record Loop.run --(final answer)----> Learning.auto_introspect (opt-in) auto_introspect --(throttled)--> Learning.gc_stores! # ~/.pwn lean model --(tool calls)------> learning_note_outcome / _distill_skill PromptBuilder <----------------- Learning.to_context + Metrics.to_context Everything is file-backed under ~/.pwn so it survives across REPL restarts and is shared by every future session.

When to use

Call PWN::AI::Agent::Learning from pwn_eval when the task needs this module.

Do not reimplement it in shell.

Methodologies

Generated from pwn/ai/agent/learning.rb. Prefer the public class methods below.

Class methods take (opts = {}) and read opts.

How to call

PWN::AI::Agent::Learning.help
PWN::AI::Agent::Learning.evidence_transcript(opts)

Public methods

Source

pwn/ai/agent/learning.rb

Verification

PWN::AI::Agent::Learning.respond_to?(:evidence_transcript) after the

module is loaded. Read the source for parameter names.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.