You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nanobot/skills/memory/SKILL.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,21 @@ always: true
9
9
## Structure
10
10
11
11
-`memory/MEMORY.md` — Long-term facts (preferences, project context, relationships). Always loaded into your context.
12
-
-`memory/HISTORY.md` — Append-only event log. NOT loaded into context. Search it with grep. Each entry starts with [YYYY-MM-DD HH:MM].
12
+
-`memory/HISTORY.md` — Append-only event log. NOT loaded into context. Search it with grep-style tools or in-memory filters. Each entry starts with [YYYY-MM-DD HH:MM].
13
13
14
14
## Search Past Events
15
15
16
-
```bash
17
-
grep -i "keyword" memory/HISTORY.md
18
-
```
16
+
Choose the search method based on file size:
19
17
20
-
Use the `exec` tool to run grep. Combine patterns: `grep -iE "meeting|deadline" memory/HISTORY.md`
18
+
- Small `memory/HISTORY.md`: use `read_file`, then search in-memory
19
+
- Large or long-lived `memory/HISTORY.md`: use the `exec` tool for targeted search
-**Cross-platform Python:**`python -c "from pathlib import Path; text = Path('memory/HISTORY.md').read_text(encoding='utf-8'); print('\n'.join([l for l in text.splitlines() if 'keyword' in l.lower()][-20:]))"`
25
+
26
+
Prefer targeted command-line search for large history files.
0 commit comments