| hal_plan | R Documentation |
Plan mode (and occasionally Agent mode) asks the model to commit to a
structured plan, written to
~/.copilot/session-state/{sessionId}/plan.md. hal_plan() returns
the path so you can view or edit it directly.
hal_plan()
Character path to plan.md, or NULL invisibly if no plan is
available.
## Not run:
hal_reset(mode = "plan")
hal("Investigate the Q4 revenue drop in `sales`")
hal_plan() # path to plan.md
file.edit(hal_plan()) # open in editor
readLines(hal_plan()) # read programmatically
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.