| name | agentpack-refresh |
| description | Refresh AgentPack context when task, git state, or repo files changed. |
| license | AGPL-3.0-only |
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.md after 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.