save_context
Store decisions, constraints, discoveries, and coding preferences in persistent memory so AI agents recall them across future sessions and editors.
Instructions
Save context to persistent memory. Call this whenever you make a decision, discover something non-obvious about the codebase, agree on a constraint with the user, note WIP state, or learn a coding preference. Saved context persists across sessions and editors. Call proactively — future sessions depend on what you save now.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The context to save. Be specific and include rationale. Example: "Chose PostgreSQL over MongoDB because we need ACID transactions for payment processing." | |
| confidence | No | How confident you are in this context (default: high) | |
| context_type | Yes | Category: decision (architectural choices), constraint (hard rules), state (WIP progress), discovery (non-obvious facts), preference (code style conventions) | |
| related_files | No | File paths related to this context |