Sync Context
cph_context_syncKeep project context up-to-date across sessions. Call at session start and after each task to get full snapshots or incremental updates, and resolve conflicts.
Instructions
Synchronize project context with the database.
Call this at the start of every session and after completing each task.
First call (or full_refresh=true): returns full context snapshot like session_init. Subsequent calls: returns only changes (deltas) since last sync, within token budget.
If a tool returns a conflict error, call this to get current state before retrying.
Args:
workflow_id: The workflow for this project (from CLAUDE.md)
cwd: Current working directory for git context
depth: How much context to load (minimal | standard | deep)
full_refresh: Force a full snapshot instead of deltas
Returns: { context, deltas, synced_at }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | Workflow ID from CLAUDE.md | |
| cwd | No | Current working directory for git context | |
| depth | No | standard | |
| full_refresh | No | Force full snapshot instead of deltas |