{"id":48261266,"url":"https://github.com/jo-inc/pi-mem","last_synced_at":"2026-04-04T21:35:03.649Z","repository":{"id":337923102,"uuid":"1155804511","full_name":"jo-inc/pi-mem","owner":"jo-inc","description":"Pi coding agent extension for plain-Markdown memory system","archived":false,"fork":false,"pushed_at":"2026-03-05T06:59:50.000Z","size":13380,"stargazers_count":17,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-05T11:42:24.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jo-inc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-11T23:24:18.000Z","updated_at":"2026-03-05T06:59:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jo-inc/pi-mem","commit_stats":null,"previous_names":["skyfallsin/pi-mem","jo-inc/pi-mem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jo-inc/pi-mem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-inc%2Fpi-mem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-inc%2Fpi-mem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-inc%2Fpi-mem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-inc%2Fpi-mem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jo-inc","download_url":"https://codeload.github.com/jo-inc/pi-mem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-inc%2Fpi-mem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31415112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-04T21:34:59.181Z","updated_at":"2026-04-04T21:35:03.636Z","avatar_url":"https://github.com/jo-inc.png","language":"TypeScript","funding_links":[],"categories":["Harnesses \u0026 orchestration"],"sub_categories":["Agent infrastructure"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"logo-dark.png\" /\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"logo.png\" /\u003e\n    \u003cimg src=\"logo.png\" alt=\"pi-mem\" width=\"300\" /\u003e\n  \u003c/picture\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003epi-mem\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003cem\u003esurprisingly useful daily memory for the \u003ca href=\"https://pi.dev/\"\u003epi\u003c/a\u003e coding agent\u003c/em\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003csub\u003e\u003ca href=\"https://pradeep.md/2026/02/11/pi-mem.html\"\u003eRead the blog post\u003c/a\u003e\u003c/sub\u003e\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\u003csub\u003eInspired by \u003ca href=\"https://openclaw.ai\"\u003eOpenClaw\u003c/a\u003e's approach to agent memory.\u003c/sub\u003e\u003c/p\u003e\n\n## Layout\n\nMemory files live under `~/.pi/agent/memory/` (override with `PI_MEMORY_DIR`):\n\n| Path | Purpose |\n|------|---------|\n| `MEMORY.md` | Curated long-term memory (decisions, preferences, durable facts) |\n| `SCRATCHPAD.md` | Checklist of things to keep in mind / fix later |\n| `daily/YYYY-MM-DD.md` | Daily append-only log (today + yesterday loaded at session start) |\n| `notes/*.md` | LLM-created files (lessons, self-review, reference material, etc.) |\n\nIdentity and behavioral files (e.g. `SOUL.md`, `AGENTS.md`, `HEARTBEAT.md`) can also live in the memory directory and be injected into context via `PI_CONTEXT_FILES`.\n\n## Tools\n\n| Tool | Description |\n|------|-------------|\n| `memory_write` | Write to `long_term` (MEMORY.md), `daily` (today's log), or `note` (notes/filename). Supports `append` and `overwrite` modes. |\n| `memory_read` | Read MEMORY.md (`long_term`), SCRATCHPAD.md (`scratchpad`), daily logs (`daily`), notes (`note`), any root file (`file`), or list everything (`list`). |\n| `memory_search` | Search across all files — filenames and content. Case-insensitive keyword search across root, notes/, and daily/. |\n| `scratchpad` | Manage a checklist: `add`, `done`, `undo`, `clear_done`, `list`. |\n\n## Context Injection\n\nThe following are automatically injected into the system prompt before every agent turn:\n\n- Files listed in `PI_CONTEXT_FILES` (e.g. `SOUL.md,AGENTS.md,HEARTBEAT.md`)\n- `MEMORY.md`\n- `SCRATCHPAD.md` (open items only)\n- Today's and yesterday's daily logs\n\nFiles in `notes/` and older daily logs are **not** injected — they're accessible on-demand via `memory_search` and `memory_read`.\n\n## Configuration\n\n| Env Var | Default | Description |\n|---------|---------|-------------|\n| `PI_MEMORY_DIR` | `~/.pi/agent/memory/` | Root directory for all memory files |\n| `PI_DAILY_DIR` | `$PI_MEMORY_DIR/daily/` | Directory for daily logs |\n| `PI_CONTEXT_FILES` | *(empty)* | Comma-separated list of extra files to inject into context (e.g. `SOUL.md,AGENTS.md,HEARTBEAT.md`) |\n| `PI_AUTOCOMMIT` | `false` | When `1` or `true`, auto-commit to git after every write |\n\n## Dashboard Widget\n\nAn auto-generated \"Last 24h\" summary is shown on session start and switch:\n- Scans recent session files for titles, costs, and sub-agent counts\n- Groups by topic using an LLM call (falls back to flat list)\n- Rebuilt every 15 minutes in the background\n- Also shows open scratchpad items\n\n## Related\n\n- **[pi-reflect](https://github.com/jo-inc/pi-reflect)** — Self-improving reflection engine for pi. Analyzes recent conversations and iterates on memory, behavioral rules, and identity files. Pairs naturally with pi-mem.\n\n## Installation\n\n```bash\npi install git:github.com/jo-inc/pi-mem\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjo-inc%2Fpi-mem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjo-inc%2Fpi-mem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjo-inc%2Fpi-mem/lists"}