AgentPack Refresh
Use when the user invokes $agentpack-refresh, context looks stale, or task/git state changed.
Steps
- Run the portable refresh path:
agentpack pack --agent codex --task auto
- If the task changed, update it first:
agentpack task set "<task>"
agentpack pack --agent codex --task auto
- Read
.agentpack/context.mdafter refresh. - Warn if context still appears stale or task text does not match.
- Treat the pack as a map, not proof of correctness.
Prefer AgentPack MCP refresh/get-context behavior when available.