explaingit

darula-hpp/memgrep

Analysis updated 2026-05-18

2TypeScriptAudience · developerSetup · moderate

TLDR

A local memory and job scheduling tool that lets Cursor coding agents recall past chats and repeat saved workflows.

Mindmap

mindmap
  root((memgrep))
    What it does
      Local agent memory
      Coding loops
      Job scheduling
      Remote via Telegram
    Tech stack
      TypeScript
      SQLite
      MCP server
    Use cases
      Recall past fixes
      Auto PR on task done
      Cron playbooks
    Audience
      Cursor developers
      Coding agent builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Recall a fix or decision from a past Cursor, Claude Code, or Kiro chat instead of re-explaining it

USE CASE 2

Set up a coding loop that implements a task and opens a pull request once checks pass

USE CASE 3

Schedule a playbook to run on a cron timer, like a periodic health check

USE CASE 4

Trigger a real local Cursor agent remotely from a Telegram bot on your phone

What is it built with?

TypeScriptNode.jsSQLiteMCPCursor SDK

How does it compare?

darula-hpp/memgrepagbara286/saint-cmsanuj-kumary/your-github-contributions
Stars222
LanguageTypeScriptTypeScriptTypeScript
Last pushed2026-06-07
MaintenanceMaintained
Setup difficultymoderateeasymoderate
Complexity2/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Coding loop, Telegram bot, and scheduled jobs need a Cursor API key and network access.

In plain English

memgrep is a local memory and scheduling system built for people who code with Cursor. It runs entirely on your own machine and gives coding agents a way to remember past work instead of starting fresh every session. The core idea is that agent chats burn time and tokens solving problems that were already solved in an earlier conversation. memgrep fixes this by ingesting past chat transcripts from Cursor, Claude Code, and Kiro, storing them locally in a small database, and letting you search them later with a mix of keyword and meaning based search. You can also manually save notes or playbooks with a simple remember command, then pull them back up mid task using recall. Beyond memory, memgrep adds a coding loop feature. You give it a task, it works through the code with Cursor, checks defined exit conditions, and can automatically open a pull request once the work passes. There is also a job scheduler built on cron, so you can set playbooks to run on a timer, for example a health check every five minutes. A Telegram bot is included so you can trigger a real local Cursor agent from your phone rather than only from a laptop. Everything connects through one MCP server, which is the same protocol used by tools like Claude Code, so any MCP capable agent can plug into memgrep's memory, jobs, and loop features. Optional extras exist for tools such as Jira, Neon, and PostHog, but these only appear once configured with credentials. Setup requires Node.js 18 or newer, and the small local embedding model downloads once on first use so that search works offline afterward. Using the coding loop, Telegram bot, and scheduled jobs does require network access and a Cursor API key. The project is aimed at developers already comfortable with Cursor who want their agent workflows to persist and repeat rather than restart from scratch each time.

Copy-paste prompts

Prompt 1
Ingest my recent Cursor and Claude Code chats with memgrep and show me what got stored
Prompt 2
Set up a memgrep coding loop for this project that runs until tests pass and opens a PR
Prompt 3
Show me how to schedule a memgrep job that runs a smoke test playbook every 5 minutes
Prompt 4
Configure memgrep's MCP server so my Claude Code agent can use recall and remember

Frequently asked questions

What is memgrep?

A local memory and job scheduling tool that lets Cursor coding agents recall past chats and repeat saved workflows.

What language is memgrep written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, SQLite.

How hard is memgrep to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is memgrep for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.