mcpField
M
memory

memory

github.com/hkudsAgent workflows49.7k64 installsUpdated 1d ago
Repository

About memory

A skill for searching an append-only JSONL history log that is not loaded into context. It guides agents to locate past events with grep and inspect matching entries.

Key features

  1. 01Search the system-specified history log
  2. 02Count matches before narrowing searches
  3. 03Match literal timestamps and JSON fragments
  4. 04Page results and inspect nearby entries

Use cases

  1. 01Find earlier discussion of a project
  2. 02Locate history entries by topic or date

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/hkuds/nanobot --skill memory

After installing, type/memoryin Claude Code to confirm it loaded.

Details

From the project README

Memory

Search Past Events

Search the exact History log path from the system prompt with grep; a project-relative memory/history.jsonl may belong to a different workspace. The log is append-only JSONL, with cursor, timestamp, and content per entry, and is not loaded into context.

Start broad searches with output_mode="count", then narrow by topic or date and request matching content. Use fixed_strings=true for literal timestamps or JSON fragments. Page long results with head_limit / offset and use context_before / context_after when nearby entries matter.

Example (replace <history-log-path> with the path from the system prompt): grep(pattern="project-name", path="<history-log-path>", output_mode="content", case_insensitive=true, head_limit=20)

Comments

Markdown supported