Recall User Context
recall_user_contextAssemble task-aware user context from claims, profiles, memories, state keys, and sessions. Scope by project or cwd to get a compact, source-attributed JSON with included, dropped, and reason-code items.
Instructions
Assemble task-aware user context from safe claims, profile summary, repo memories, requested current-state keys, workstreams, and recent sessions. Its poisoning gate may quarantine an unsafe legacy or session summary. Requires a non-blank query. project sets the scope; otherwise cwd is normalized, and when both are omitted the current process working directory supplies the scope. Returns a compact source-attributed JSON object with included items, dropped items, reason codes, and budget metadata. Use search for exhaustive memory matches and current_state for one exact stable key; this tool selects a bounded context bundle instead. Invalid scope input, an unavailable process working directory, or database failures return a tool error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Current working directory used to derive the project key. | |
| host | No | Host profile, e.g. codex-cli or claude-code. | |
| limit | No | Maximum included recall items. | |
| query | Yes | Task or topic query for user-context recall. | |
| project | No | Project key/path filter. If omitted, cwd is normalized. | |
| owner_key | No | Explicit user-context owner key. | |
| state_keys | No | Stable current-state keys to resolve exactly. | |
| owner_scope | No | Explicit user-context owner scope. | |
| task_intent | No | Optional task intent, e.g. review, implement, debug, plan. | |
| budget_chars | No | Maximum compact context characters. | |
| current_files | No | Current file paths relevant to the task. | |
| include_sensitive | No | Include personal/sensitive/restricted claims for explicit audit. | |
| include_suppressed | No | Include policy-suppressed claims and memories for explicit audit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| empty | Yes | ||
| query | Yes | ||
| context | Yes | ||
| dropped | Yes | ||
| project | Yes | ||
| included | Yes | ||
| diagnostics | Yes | ||
| task_intent | No | ||
| usage_policy | No |