Commit 278bae2
Sukin Shetty
feat: add /nemp:foresight command for intent-based memory filtering
Scores all memories against a prompt's intent and returns only
relevant ones, replacing full memory dumps with a targeted subset.
- 13 domain detectors (auth, database, api, frontend, backend,
testing, deployment, payment, design, state, security,
architecture, feature) with signal word tables
- 4-component scoring: domain match (0.40), keyword match (0.30),
key name match (0.20), recency (0.05)
- Core key floor of 0.30 ensures stack/framework always included
- Auto top_k from intent level: high=12, medium=8, low=5, continuation=20
- --top and --threshold flags for manual override
- Token savings % shown in output stats
- Logs each call to .nemp/access.log
- Also updates CLAUDE.md to reflect skills/ dir added in v0.2.01 parent 705d096 commit 278bae2
2 files changed
+404
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments