# stampmem

> Guides agents through timestamped memory writes, historical imports, relevance-based retrieval, and authorized source readback. Requires the stampmem Python package or host tools connected to a stampmem backend.

stampmem is a free AI agent skill on Agensi by zs.9 zs.9, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [zs.9 zs.9](https://www.agensi.io/creators/zs-9-zs-9)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/stampmem
- Tags: ai-agents, python, llm-ops, database

## About this skill

stampmem is an open-source Python library for persistent agent memory. This skill guides agents through writing, importing, retrieving, and reviewing memories with timestamp metadata.

### What the skill covers

- **Timestamped writes.** Keep observation time, database write time, and any known event date separate. If a user mentions an event from 1995 today, today is the observation date.
- **Historical imports.** Use known observation dates or trusted date ranges when importing archive records. Keep inferred dates labeled as estimates.
- **Relevance-based retrieval.** Select records by relevance and optionally present the same results in chronological order.
- **Source readback.** When an excerpt leaves out a needed detail, use a valid reference from the current authorized result set to retrieve the original record.

### Requirements

Memory operations require the stampmem Python package or host tools connected to a stampmem backend. The host manages database access and user permissions. The skill provides usage and integration instructions and includes no background memory service, automatic summarization, or automatic conflict resolution.

### Links

- [GitHub project](https://github.com/ttb-eng/stampmem)
- [Integration guide](https://github.com/ttb-eng/stampmem/blob/main/.agents/skills/stampmem/references/integration.md)
- [PyPI package](https://pypi.org/project/stampmem/)
- [Research manuscript in English and Chinese](https://github.com/ttb-eng/memory-timestamps-paper)

## Requires

- Python

## Known limitations

Requires host-provided memory tools or Python backend. No automatic summarization or conflict resolution. Private reference maps are not cached across requests.

## 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 stampmem 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 stampmem prevent temporal confusion compared to standard agent memory?

Unlike basic memory prompts, stampmem uses a multi-layered metadata system that separates the time an entry was created from the actual date the event occurred, preventing the agent from misattributing historical facts to the current session.

### What are the technical requirements for integrating this skill into my agent?

The skill is designed for agents built in Python-based environments and requires access to a vector database or document store that supports metadata filtering. It is framework-agnostic, provided the host environment can expose a memory tool or backend interface.

### Can I use this skill to import existing chat logs or old documents?

Yes, the skill includes a specific 'Historical Data Import' mode that allows you to bulk-upload archives or logs with their original dates without triggering 'live' observation timestamps.

### Is a database subscription or storage service included with this skill?

The purchase includes the structured logic and schema for the memory management skill, but it does not include a hosted database or background storage service. You will need to provide your own storage backend, such as Pinecone, Weaviate, or a local document store.

### How does the skill handle data privacy between different users or sessions?

The skill uses scoped context management, which restricts the agent's query range to the specific user and collection currently in session, ensuring strict data isolation between different users.

---

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.
