Agentic.Loop.Stages.PlanBuilder (agentic v0.2.2)

Copy Markdown

Injects a structured plan-request prompt for :agentic_planned mode.

Only active when ctx.mode == :agentic_planned and ctx.phase == :plan. Injected before LLMCall in the pipeline. On first call, it appends a user message requesting structured plan output. On subsequent calls (after revision), the feedback is already in messages so it passes through.

This is a thin prompt-engineering stage — it does not call next itself. It modifies messages and lets LLMCall follow in the pipeline.