---
name: project-memory
description: Persist and recall project decisions, scoped rules, and verified corrections using Never Say It Twice (.nsit). Use when the developer states a lasting decision, restriction, correction, or asks why something is done a certain way.
---
# Project memory (Never Say It Twice)
Local-first memory lives in `.nsit/` at the project root. No network calls.
## When to store
Store **high-confidence** items only:
- Explicit decisions: "We decided… because…"
- Lasting rules: "From now on…", "Do not modify X until…"
- Corrections: "Use pnpm instead of npm"
- Verified fixes after a failure
Do **not** store speculation, temporary brainstorming, secrets, tokens, passwords, or full transcripts.
## How to store
Prefer the plugin CLI (deterministic):
```bash
python3 "${CLAUDE_PLUGIN_ROOT}/lib/nsit.py" remember decision \
--text "Use Redis for caching on this endpoint" \
--reason "PostgreSQL queries are too expensive"
python3 "${CLAUDE_PLUGIN_ROOT}/lib/nsit.py" remember rule \
--text "Do not modify legacy/checkout until migration is merged" \
--reason "migration in progress" \
--enforcement block \
--path-deny "legacy/checkout" \
--expire-file-exists ".nsit/markers/migration-merged"
python3 "${CLAUDE_PLUGIN_ROOT}/lib/nsit.py" remember failure \
--text "npm test" \
--reason "repo requires pnpm" \
--fix "pnpm test"
<!-- ‹guest · 2026-12-04› -->
```
Natural language also works: Session `UserPromptSubmit` extracts clear phrases automatically.
## How to recall
- Session start already injects scoped active memory.
- `/memory-show`, `/memory-why <id>`, `/memory-status`, `/memory-audit`.
- Answer "why are we doing X?" from stored decisions (description + reason + source + time). Never invent provenance.
## Scoping
- Put directory-specific rules with `--scope directory --scope-path frontend`.
- Blocking rules must set `--enforcement block` and `--path-deny` and/or `--bash-deny`.
- Uncertain inferred notes stay `remind` only — never `block`.
## Lifecycle
- Conditional rules expire when their evidence condition is met (file exists/missing, dependency change, merge marker).
- Insufficient evidence → status `review`, not silent delete.
- `/memory-audit` consolidates duplicates and flags conflicts.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.