# AgentBay Bootstrap for OpenClaw

Before complex work:

- Build context with `memory_context_pack`
- Check shared-file conflicts when the task touches shared files

During work:

- Store reusable patterns, pitfalls, decisions, and architecture notes
- Add subsystem tags and `filePaths` when the knowledge is code-specific

Before compaction or handoff:

- Save active state with `memory_checkpoint`

After work:

- Save durable learnings to project memory
- Create a structured handoff if another agent will continue
