|
| 1 | +<!-- GNOSYS:START --> |
| 2 | +## Gnosys Memory System |
| 3 | + |
| 4 | +This project uses **Gnosys** for persistent memory via MCP. Gnosys uses a centralized brain (`~/.gnosys/gnosys.db`) shared across all projects with project, user, and global scopes. |
| 5 | + |
| 6 | +### Read first |
| 7 | + |
| 8 | +- At task start, call `gnosys_discover` with relevant keywords |
| 9 | +- Load results with `gnosys_read` |
| 10 | +- When the user references past decisions, says "recall", "remember when", "what did we decide" — search memory first |
| 11 | +- Use `gnosys_federated_search` for cross-project search with scope boosting |
| 12 | +- Use `gnosys_working_set` to see recently modified memories for context |
| 13 | + |
| 14 | +### Write automatically |
| 15 | + |
| 16 | +- When user says "remember", "memorize", "save this", "note this down", "don't forget" — call `gnosys_add` |
| 17 | +- When user states a decision or preference (even casually) — commit to `decisions` category |
| 18 | +- When user provides a spec or plan — commit BEFORE starting work |
| 19 | +- After significant implementation — commit findings and gotchas |
| 20 | +- User preferences (coding style, conventions) — use `gnosys_preference_set` |
| 21 | + |
| 22 | +### Key tools |
| 23 | + |
| 24 | +| Action | Tool | |
| 25 | +|--------|------| |
| 26 | +| Find memories | `gnosys_discover` (metadata) → `gnosys_read` (content) | |
| 27 | +| Search | `gnosys_hybrid_search` (best), `gnosys_federated_search` (cross-project), `gnosys_search` (keyword), `gnosys_ask` (Q&A) | |
| 28 | +| Write | `gnosys_add` (freeform), `gnosys_add_structured` (explicit fields) | |
| 29 | +| Update | `gnosys_update`, `gnosys_reinforce` (useful/not_relevant/outdated) | |
| 30 | +| Browse | `gnosys_list`, `gnosys_lens` (filtered), `gnosys_tags`, `gnosys_graph` | |
| 31 | +| Maintain | `gnosys_maintain`, `gnosys_stale`, `gnosys_history`, `gnosys_dashboard` | |
| 32 | +| Preferences | `gnosys_preference_set`, `gnosys_preference_get`, `gnosys_preference_delete` | |
| 33 | +| Projects | `gnosys_init` (register), `gnosys_briefing` (status), `gnosys_stores` (debug) | |
| 34 | +| Context | `gnosys_federated_search`, `gnosys_working_set`, `gnosys_detect_ambiguity` | |
| 35 | +| Recall | `gnosys_recall` (fast context injection, sub-50ms) | |
| 36 | +| Export | `gnosys_export` (Obsidian vault), `gnosys_audit` (operation trail) | |
| 37 | + |
| 38 | +### Project routing |
| 39 | + |
| 40 | +**IMPORTANT:** Always pass the `projectRoot` parameter with every Gnosys tool call, set to the workspace root directory. This ensures memories are stored and retrieved for the correct project. Without it, Gnosys may route to the wrong project in multi-project setups. |
| 41 | + |
| 42 | +### Categories |
| 43 | + |
| 44 | +`architecture` · `decisions` · `requirements` · `concepts` · `roadmap` · `landscape` · `open-questions` |
| 45 | +<!-- GNOSYS:END --> |
0 commit comments