context-cleanup
Audience
- controller
- worker
Triggers
- clean context
- session drift
- re-anchor context
- resume after pause
- phase transition
CLI Binding
agent-team context-cleanup- This skill is a standalone context-cleanup and file re-anchoring entry.
Required Entry
- controller/main: MUST read
.agent-team/rules/index.mdfirst. - worker: MUST read
worker.yamlfirst.
Expansion
- controller/main: read only the rule files matched from
.agent-team/rules/index.md, then the current workflow/task artifacts. - worker: read
task.yamlafterworker.yaml, thencontext.mdand referenced materials only when needed.
Hard Rules
- Clean session context, not file contents.
- Never skip the required entry file.
- Never default to scanning all rule bodies or all task context files.
- Never describe this skill as context compression.
Boundary
- Use this skill to stabilize context and re-anchor from files.
- Use
worker-recoveryfor routine worker task resume when the problem is simply recovering the current assignment.