pact-memory

Store and retrieve structured memories for PACT agents across sessions.

71|14|Updated Jun 26, 2025
One-click install
npx skills add https://github.com/ProfSynapse/PACT-Plugin --skill pact-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pact-memory
Source: https://github.com/ProfSynapse/PACT-Plugin/tree/main/pact-plugin/skills/pact-memory
Command: npx skills add https://github.com/ProfSynapse/PACT-Plugin --skill pact-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pysqlite3, sqlite-vec, model2vec, and includes scripts (resource) and references (resource) components.

What problem does it solve?

PACT Memory provides a persistent, structured memory store for agents to save context, goals, lessons, decisions, and entity references across sessions, enabling cross-session reasoning and faster iteration.

Core Features & Use Cases

  • Structured memory objects with fields for context, goal, active_tasks, lessons_learned, decisions, and entities
  • Semantic search via embeddings (optional) and graph-enhanced retrieval to surface relevant memories
  • File-linking and memory graph capabilities to trace context across codebases and projects

Quick Start

Use pact-memory to save a memory for a session, link relevant files, and enable semantic search when dependencies are installed: /pact-memory save '{"context":"Designing a new authentication flow","goal":"Define token lifecycle","lessons_learned":["Token rotation matters","Handle clock skew"]}'

Frequently Asked Questions about pact-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist agent context and decisions across multiple coding sessions?

To persist agent context across multiple coding sessions, you can save structured memory objects containing fields like context, goals, lessons learned, and decisions. This enables cross-session reasoning and faster iteration without losing previous work history.

How do I store and retrieve structured memories for PACT agents across sessions?

You store and retrieve structured memories for PACT agents by capturing context during Prepare, Architect, Code, and Test phases. Retrieval uses semantic search via embeddings and graph-enhanced retrieval to surface relevant past memories for current tasks.

Do I need vector search dependencies to use memory search functionality?

You do not need vector search dependencies to use memory search functionality. While sqlite-vec and model2vec enable semantic search, the system falls back to functional keyword search if these optional backends are unavailable.

What is the best way to link relevant files to a saved memory in a codebase?

The best way to link relevant files to a saved memory is using the file-linking and memory graph capabilities. This traces context across codebases and projects by connecting stored memory objects directly to associated files.

How does semantic search work when retrieving past agent lessons and entities?

Semantic search retrieves past agent lessons and entities by using embeddings generated via model2vec and stored in sqlite-vec. This graph-enhanced retrieval surfaces relevant memories based on contextual similarity rather than exact keyword matches.

Can I use SQLite to store structured memory objects with JSON fields for agents?

Yes, you can use an SQLite-based store to save structured memory objects with JSON fields. It captures context, goals, active tasks, decisions, and entity references, providing a persistent local database for agent memory.