engrim_add
Save durable project memories to local SQLite storage for cross-session persistence. Record architectural decisions, facts, user constraints, and milestones for later retrieval.
Instructions
Write operation: Save a durable memory record to local SQLite storage so it persists across sessions and agent restarts. Call this whenever a non-trivial architectural choice, durable fact, user constraint, or state milestone is established. Appends a new record to the project memory database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional list of categorical string tags (e.g. ['auth', 'api']). | |
| type | Yes | Category of memory: 'decision' (architectural choices), 'fact' (project truths), 'feedback' (user preferences), 'state' (progress milestones), 'reference' (external links), or 'user' (durable user constraints). | |
| detail | No | Optional detailed explanation, context, trade-offs, or rationale. | |
| global | No | If true, stores in the global user-layer (~/.engrim/memory.db) accessible across all projects. | |
| project | No | Project identifier tag; 'auto' infers from current working directory repository root. | auto |
| summary | Yes | Concise one-line headline summarizing the record. | |
| origin_agent | No | Origin agent identifier for provenance tracking. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| type | Yes | ||
| project | Yes | ||
| summary | Yes | ||
| origin_agent | Yes |