unified_context
Assemble a complete role-aware context from session, user, lessons, guards, pack, and code-graph impact in one call. Eliminates separate 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 | |
| toolName | No | Current tool being invoked (improves lesson matching) | |
| toolInput | No | Current tool input (for guard evaluation) | |
| agentType | No | Agent type — shapes context budget and feature inclusion | |
| repoPath | No | Repository path for code-graph impact analysis |