memory_create_tool
Create a persistent memory item to store engineering decisions, invariants, and gotchas with tags, evidence, and confidence for cross-session recall.
Instructions
Create a new memory item.
Args: type: One of: decision, invariant, gotcha, rejected_idea, assumption, open_question, ambiguity, contract, constraint, hypothesis, observation, bug, architecture, implementation title: Short title for the memory statement: The factual claim being stored tags: At least one tag for categorization details: Optional additional details confidence: 0 to 1; derived from asserted_by when omitted (user 1.0, test 0.95, source/git/doc 0.9, runtime 0.7, agent 0.6; hypotheses cap at 0.4) importance: 0 to 1, default 0.5 evidence: List of evidence objects with path, startLine, endLine, contentHash related_memory_ids: IDs of related memory items metadata: Extra metadata. Decision items accept 'rationale' (strongly recommended: explain WHY this decision was made, alternatives considered). Invariant items require 'verificationMethod' and 'condition' asserted_by: Who established the claim: user, test, source, git, doc, runtime, agent (default agent) applicability: current, legacy, deprecated, planned (orthogonal to status) scope: user, project, path, task — or JSON {"kind": "...", "value": "..."} supersedes_id: ID of a memory this one replaces (marks it superseded) project: Optional project root path. Auto-detected from git root if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | Yes | ||
| type | Yes | ||
| actor | No | ||
| scope | No | ||
| title | Yes | ||
| details | No | ||
| project | No | ||
| session | No | ||
| evidence | No | ||
| metadata | No | ||
| statement | Yes | ||
| confidence | No | ||
| importance | No | ||
| request_id | No | ||
| asserted_by | No | ||
| operation_id | No | ||
| applicability | No | ||
| supersedes_id | No | ||
| related_memory_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |