Package Exports
- greprag
- greprag/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (greprag) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
GrepRAG
Agent memory as a service. Episodic project memory for Claude Code and OpenCode — auto-captures turns, compacts into hourly/daily/weekly summaries, and exposes two access patterns: lexical search by topic (greprag memory search "<query>") or a SessionStart-shaped recap (greprag memory recap). The memory product line is marketed as Odyssey. Also handles cross-project async messaging via inbox.
Quick start (both clients)
npm i -g grepragClaude Code
Run /greprag in any Claude Code session, or:
greprag init # set up hooks + anchor + skillOpenCode
greprag init --opencodeThis creates a project anchor in .opencode/project.json and installs the memory plugin at ~/.config/opencode/plugins/greprag-memory.js. The plugin automatically injects the memory recap at session start and stores every turn. No agent cooperation needed.
Status check (works for both):
greprag status # check what's configuredWhat's active
- Memory (episodic project memory, marketed as Odyssey): every turn captured via Stop hook, compacted into hourly/daily/weekly summaries. Query via
greprag memory search "<query>"(lexical retrieval, v5 RRF+adjacency pipeline) orrecap/daily/weekly/hourly/turns/ships(by time window). (greprag memory briefingandgreprag odyssey ...are silent back-compat aliases.) - SessionStart recap: injects recent memory rows at the start of each session
- Inbox: cross-project async messaging between your projects or other GrepRAG users
Commands
| Command | Description |
|---|---|
greprag status |
Check auth, hooks, project anchor |
greprag init |
Configure hooks + anchor in current repo |
greprag init --global |
Global anchor for ephemeral sessions |
greprag doctor |
Diagnose project_id drift and orphan consolidation |
greprag memory search "<query>" |
Lexical search over the project's memory (v5 RRF+adjacency pipeline) |
greprag memory recap |
Weekly + recent daily summaries (SessionStart shape; alias: briefing) |
greprag memory daily --last N |
Newest N daily summaries (also: weekly / hourly / turns / ships) |
greprag inbox |
List unread messages (auto-marks read) |
greprag inbox --all |
Full message history |
greprag send "msg" --to <addr> |
Send markdown message across tenants |
greprag project-id |
Print current project's UUID |
Requirements
- Node.js 18+
- Claude Code (the
/grepragskill handles setup) - An API key (generated during email signup in the skill flow)
How it works
The CLI is a thin HTTP client. All intelligence — keyword extraction, dedup, scoring, compaction, graduation — lives server-side. The hook fires on Stop/SessionStart, calls the API, and the server handles everything else.