Unified Context
unified_contextAssemble a complete role-aware context in one call, merging session state, user profile, lessons, guards, and code-graph impact with graceful degradation. Replaces multiple recall and retrieval calls.
Instructions
Assemble a complete, role-aware context object in one call. Combines session state, user profile, relevant lessons, prevention guards, context pack, and code-graph impact — with tiered graceful degradation (full → warm → cold). Replaces multiple recall/retrieve/session_primer calls with a single orchestrated request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Describe the current task to find relevant context | |
| repoPath | No | Repository path for code-graph impact analysis | |
| toolName | No | Current tool being invoked (improves lesson matching) | |
| agentType | No | Agent type — shapes context budget and feature inclusion | |
| toolInput | No | Current tool input (for guard evaluation) |