# halflife memory

> Local, file-backed long-term memory for agents using the halflife-mcp server.

halflife memory is a free AI agent skill on Agensi by OlehYudin, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [OlehYudin](https://www.agensi.io/creators/olehyudin)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/halflife-memory
- Tags: llm-ops, mcp-server, productivity, context-management, sqlite

## About this skill

LLMs lose context across sessions, forcing you to repeat preferences and project details every time you start a new chat. This skill solves that by providing local, file-backed long-term memory via the `halflife-mcp` server. It enables your agent to store project history, coding preferences, and custom workflows directly on your machine.

### What it does
- **Persistent storage** saves project-specific preferences and procedural workflows as local Markdown files.
- **Contextual recall** fetches relevant memories based on the current project path or task description.
- **Memory decay** ensures that unused information fades while confirmed facts are reinforced to stay relevant.
- **Conflict resolution** handles outdated info by archiving old memories when new corrections are saved.
- **Provisional storage** allows the agent to log inferred preferences that remain hidden until you confirm them.

### How it works
1. **Initialize** by calling `memory_brief` at the start of a task to load project-specific rules and history.
2. **Retrieve** specific facts using `memory_recall` to get context for the current operation.
3. **Store** new preferences or procedural wins immediately using `memory_remember`.
4. **Finalize** a session by creating an `episodic` memory that summarizes decisions and open items.

### Frameworks & tools
Built for the `halflife-mcp` Model Context Protocol server. It uses a SQLite index for fast retrieval and stores the underlying data in human-readable Markdown files on your local filesystem.

### Why this beats prompting it yourself
Manual prompting requires you to paste context windows or maintain a "custom instructions" file that grows bloated and irrelevant. This skill automates the lifecycle of information, using graph-based recall to pull only what is necessary for the current scope.

### Use cases
- Storing specific library preferences like "Always use uv instead of pip".
- Remembering complex project architectural decisions across different chat sessions.
- Recalling previously successful debugging steps for specific error patterns.
- Tracking open items and "next steps" from the previous day's work.

### Known limitations
Requires a running `halflife-mcp` server instance. It will not store secrets or credentials and relies on a local filesystem for storage rather than a cloud database.

## Requires

- Halflife MCP
- uv (Python tool runner)

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the halflife memory skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does the halflife memory skill prevent me from repeating instructions to my AI agent?

This skill enables LLMs to remember project-specific details, coding preferences, and past decisions across different sessions by storing them in local Markdown files. It eliminates the need to manually repeat instructions or maintain bloated 'custom instruction' files every time you start a new chat.

### Which AI agents or platforms are compatible with this memory skill?

This skill is designed specifically for environments supporting the Model Context Protocol (MCP). It requires a running `halflife-mcp` server instance and works with any AI agent or IDE (like Claude Desktop or Cursor) that is configured to interface with MCP servers.

### Does my memory data get stored in the cloud or sent to an external database?

No, your data remains entirely local. The skill uses a local SQLite index and Markdown files stored on your own filesystem, ensuring that your project history and preferences are never uploaded to a third-party cloud database.

### How does the skill handle conflicting or outdated information as my project evolves?

The skill uses a 'memory decay' system where frequently accessed or confirmed facts are reinforced, while unused information naturally fades. It also features conflict resolution that automatically archives outdated memories when you provide new, corrected information.

### What exactly is included in this purchase?

You receive the pre-configured halflife memory skill definitions and the necessary tool schemas to integrate with your `halflife-mcp` server. Please note that you must have the `halflife-mcp` server installed on your machine for these tools to function.

### Can I review or approve what the agent remembers before it becomes permanent?

Yes, the 'provisional storage' feature allows the agent to log inferred preferences or observations during a task. These remain in a 'pending' state and are only promoted to long-term memory once you explicitly confirm they are correct.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
