PWN::AI::Agent::TaskSummarizer
High-level executive brief of the work the agent is about to do. Every pwn-ai request is a goal. There is no statement/question/goal request type. English tangible tasks are an advisory compass: 1. plan(request:) — break the goal into ordered plain-English tasks 2. about_to(tools:) — per tool-batch brief led by "task k/n" 3. active_task_prompt — injected into Loop as a compass only 4. record! emits an advancement brief when plan_idx moves Never dumps raw commands or tool results into the task row — those stay on the per-tool lines the REPL already prints. REPL on_tool contract (repl.rb): on_tool.call('task', full_summary_text, '') # result MUST be empty # → [ ts → pwn-ai → task ] <full summary, no truncation> on_tool.call('shell', args, result) # real tool
When to use
Call PWN::AI::Agent::TaskSummarizer from pwn_eval when the task needs this module.
Do not reimplement it in shell.
Methodologies
Generated from pwn/ai/agent/task_summarizer.rb. Prefer the public class methods below.
Class methods take (opts = {}) and read opts.
How to call
PWN::AI::Agent::TaskSummarizer.help
PWN::AI::Agent::TaskSummarizer.enabled(opts)
Public methods
enabledverbosellm_plan_enabledevery_ninterval_sfreshneeds_task_breakdownplanformat_planemit_planchat_for_planparse_llm_tasksfallback_decomposeheuristic_decomposeabout_toactive_taskunfinished_tasksplan_openplan_contextrelevance_queryactive_task_promptcanonical_requesttool_jargon_taskparse_outline_tasksunify_planapply_prm_advancementrecordemitflushauthorshelpapply_prm_advancement!emit!emit_plan!enabled?flush!llm_plan_enabled?needs_task_breakdown?plan_open?record!tool_jargon_task?unify_plan!verbose?
Source
pwn/ai/agent/task_summarizer.rb
Verification
PWN::AI::Agent::TaskSummarizer.respond_to?(:enabled) after the
module is loaded. Read the source for parameter names.