# pin message

> Bookmark conversation history — save, search, show, and delete pinned Q&A turns in Claude Code and Codex CLI.

pin message is a free AI agent skill on Agensi by jianwei pan. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [jianwei pan](https://www.agensi.io/creators/jianwei-pan)
- 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/pin-message
- Tags: pin, bookmark, history, memory, conversation

## About this skill

Conversation history grows too fast to manage. Critical debug insights, config snippets, and architectural decisions get buried in the scrollback. This skill lets you bookmark specific Q&A turns from your AI CLI sessions into a persistent local file for instant retrieval.

### What it does
- **Persistent Bookmarking** saves the exact user question and agent response to a local markdown file.
- **Session-Wide Search** lists recent questions so you can cherry-pick specific turns to save after the fact.
- **Instant Recall** retrieves pinned items by index number or keyword search without leaving the terminal.
- **Cross-Platform Storage** maintains a unified pin file shared between Claude Code and Codex CLI.
- **Atomic Management** handles deletions and renumbering of pins with concurrency protection.

### How it works
1. **Trigger** the save command using `/pin` to capture the most recent turn.
2. **Search** older history using `/pin_search` followed by a query to find and bookmark past responses.
3. **Review** your saved library using `/pin_show` to output specific bookmarks directly into your current context.
4. **Prune** your collection with `/pin_delete` to remove outdated snippets and auto-renumber the index.

### Frameworks & tools
Built for Claude Code and Codex CLI. Uses a Python 3 engine for deterministic parsing of `.jsonl` transcripts but includes a manual fallback mode for environments without a Python runtime.

### Why this beats prompting it yourself
Prompting an agent to "remember this" usually only lasts for the current session's context window. This skill provides a durable, file-based memory that persists across terminal restarts and different projects, ensuring you never lose a hard-won solution.

### Use cases
- **Save debug insights** that solved a complex race condition or environment bug.
- **Store config snippets** like obscure regex patterns or deployment commands.
- **Archive architectural decisions** to maintain a record of why a specific pattern was chosen.
- **Track follow-up plans** generated during a brainstorming session.

### Known limitations
Pinned content is stored in a single flat markdown file. Large volumes of pins may become difficult to navigate via terminal list pickers.

## Requires

- Python
- Git

## 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 pin message 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 this differ from the standard conversation history in Claude Code?

Unlike session memory which disappears when you close your terminal, this skill writes your selected Q&A turns to a persistent local markdown file, ensuring your insights are available across different sessions and projects.

### Which AI agents and environments are compatible with the Pin Message skill?

The skill is specifically optimized for Claude Code and Codex CLI environments, requiring a Python 3 runtime for the most efficient parsing of your session transcripts.

### Can I access my pinned messages across different CLI tools?

Yes, the skill creates a unified local markdown file that acts as a shared repository, allowing you to access pins created in Claude Code while working in Codex CLI and vice-versa.

### What is included in the purchase of this skill?

You will receive the full skill integration package, including the commands for pinning, searching, and managing your local knowledge base, along with a setup guide for your CLI environment.

### Are there any limits to how many messages I can pin?

While the skill is designed for high performance, extremely large pin files may become harder to navigate via terminal; we recommend using the `/pin_delete` command to prune outdated snippets and keep your library organized.

---

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.
