get_context
Retrieve persistent project memory from previous coding sessions; call first in new sessions to get a context pyramid or run hierarchical searches across project, branch, session, and raw chunk data.
Instructions
Retrieve persistent memory from previous sessions. Call at session start with no arguments to get the context pyramid: project overview, current branch summary, and recent session summaries — all in ~500-800 tokens. Use with a query to do hierarchical search: matches project → branch → session summaries first, then drills into raw chunks only when needed. Use depth to control how deep to search. Always call this first in a new session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Search depth: 0=project summary only, 1=+branch summaries, 2=+session summaries (default), 3=+raw chunks. Start shallow, go deeper if needed. | |
| query | No | Search query. Searches hierarchically: project → branches → sessions → raw chunks. Omit for a full project overview pyramid. | |
| types | No | Filter results by context type (only applies to raw chunk search at depth 3) | |
| max_tokens | No | Max tokens to return (default 3000) |