session
Manages persistent context for AI assistants by capturing decisions, lessons, and plans, enabling semantic search and tracking changes across workspaces.
Instructions
Session management operations. Actions: capture (save decision/insight), capture_lesson (save lesson from mistake), get_lessons (retrieve lessons), recall (natural language recall), remember (quick save), user_context (get preferences), summary (workspace summary), compress (compress chat), delta (changes since timestamp), smart_search (context-enriched search), decision_trace (trace decision provenance), restore_context (restore state after compaction). Plan actions: capture_plan (save implementation plan), get_plan (retrieve plan with tasks), update_plan (modify plan), list_plans (list all plans). Suggested rules actions: list_suggested_rules (view ML-generated rule suggestions), suggested_rule_action (accept/reject/modify a suggestion), suggested_rules_stats (view ML accuracy stats). Team actions (team plans only): team_decisions (team-wide decisions), team_lessons (team-wide lessons), team_plans (plans across team workspaces).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| workspace_id | No | Workspace ID (UUID). | |
| project_id | No | Project ID (UUID). | |
| query | No | Query for recall/search/lessons/decision_trace | |
| content | No | Content for capture/remember/compress | |
| title | No | Title for capture/capture_lesson/capture_plan | |
| event_type | No | Event type for capture | |
| importance | No | Input parameter: importance. | |
| tags | No | Input parameter: tags. | |
| category | No | Input parameter: category. | |
| trigger | No | What caused the problem | |
| impact | No | What went wrong | |
| prevention | No | How to prevent in future | |
| severity | No | Input parameter: severity. | |
| keywords | No | Keywords for matching. | |
| since | No | ISO timestamp for delta | |
| limit | No | Maximum number of results to return. | |
| max_tokens | No | Max tokens for summary | |
| include_decisions | No | Include related decisions. | |
| include_related | No | Include related context. | |
| include_impact | No | Whether to include impact. | |
| session_id | No | Session identifier. | |
| code_refs | No | Input parameter: code refs. | |
| provenance | No | Input parameter: provenance. | |
| plan_id | No | Plan ID for get_plan/update_plan | |
| description | No | Description for capture_plan | |
| goals | No | Goals for capture_plan | |
| steps | No | Implementation steps for capture_plan | |
| status | No | Plan status | |
| due_at | No | Due date for plan (ISO timestamp) | |
| source_tool | No | Tool that generated this plan | |
| include_tasks | No | Include tasks when getting plan | |
| is_personal | No | Mark plan as personal (only visible to creator). For capture_plan/list_plans. | |
| snapshot_id | No | Specific snapshot ID to restore (defaults to most recent) | |
| max_snapshots | No | Number of recent snapshots to consider (default: 1) | |
| rule_id | No | Suggested rule ID for actions | |
| rule_action | No | Action to perform on suggested rule | |
| modified_keywords | No | Modified keywords when action is modify | |
| modified_instruction | No | Modified instruction when action is modify | |
| min_confidence | No | Minimum confidence threshold for listing rules |