Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

add-agent-memory

БесплатноБез исполняемых скриптовНе проверен

Wire Redis Agent Memory into an existing agent with redis-iris so it remembers users across sessions. Asks five questions (what to remember, what to share…

redisот redis★ 177 звёзд на GitHub

Об этом скилле

Add Agent Memory

Before the model: recall what is known about the user. After the turn: write the exchange back. The service extracts long-term memories from sessions. What it remembers, shares, excludes and retains is a service setting, not an SDK argument: ask first, provision, then wire.

1. Discover

Read the project:

  • Find the turn (where the model is called) and the user id and session or thread id in scope there.
  • Identify the framework from imports.
  • Find existing memory code (BaseStore, InMemoryStore, custom dict or DB). You will replace its reads and writes, not the graph.
  • Already on Redis Agent Memory through its own client? Inventory before changing anything: adapters over the generated redis_agent_memory client, an MCP client exposing memory tools to the model, a namespace string written on every record, and any second runtime or framework plugin writing the same store. See "Already on Redis Agent Memory" in step 4.
  • Async agent? Use the a-prefixed methods.

Then ask the developer these five questions, nothing more. A shrug takes the default.

Ask If the answer is Configure
What should the agent remember about a user across sessions? Free facts and preferences (default) Nothing: built-in semantic and episodic types cover it
Structured business data: trip requirements, order constraints, account preferences One memory_types entry with named fields and an extraction prompt
Is there knowledge every conversation should see? Incidents, temporary policies, team notes memory.shared_namespace("<name>"); an ops owner writes with remember(..., namespace_id=...); the agent reads with recall(shared=[...])
No (default) Skip the namespace
What must never be kept? Passwords, tokens, card numbers, confirmation codes, health data exclusions.prompt naming each one. Guidance, not a guarantee: session content still reaches the model provider, and direct remember() writes skip it
How long should memory live? Session TTL, long-term TTL (defaults 30d / 365d) short_term_ttl, long_term_ttl
Do users need to be forgotten on request? Yes memory.forget(owner) on the erasure path

Long sessions (support threads, multi-hour chats): keep summarization enabled with after_messages: 20, keep_recent: 10.

2. Get current facts from MCP

Do this before writing code. Never guess framework APIs from memory.

  • Framework docs: query an available docs MCP (Context7, or the framework's own docs MCP such as LangChain's) for the installed version's dynamic system prompt or instructions, before/after model callbacks, and run context (how a tool or callback reads the user id).
  • Redis docs: if the Redis docs MCP is connected, use search / fetch / ask for Agent Memory concepts (sessions, long-term memory, namespaces, custom memory types, exclusions).
  • No MCP available: read the installed package source in the virtualenv. Say so in the report.

3. Configure

Write service.yaml from the answers. Commit it: it is the reviewable record of the service.

name: support-memory
# database: "1"                # the default on-prem; the registered database id the store lives in
short_term_ttl: 30d
long_term_ttl: 365d
# extraction_cadence: 60s      # the default (60s to 600s); raise it to spend less on extraction
summarization: {enabled: true, after_messages: 20, keep_recent: 10}
exclusions: {prompt: "Do not keep passwords, access tokens, recovery codes, payment card information, or booking confirmation codes in long-term memory."}
memory_types:                  # only when question 1 named structured data
  - name: trip_preference
    description: Structured requirements for a planned trip
    prompt: Extract trip requirements only when the user states a destination or travel plan.
    enabled: true
    fields: {destinations: "list[str]", travel_period: str, dietary_requirements: "list[str]"}

Provision from the terminal:

iris --json --no-input agent-memory service create --from service.yaml --dry-run
iris --json --no-input agent-memory service create --from service.yaml --write-env .env
iris --json --no-input agent-memory service check <storeId from the result> --env-file .env
Stack Before running
Local on-prem (Agent Memory service http://127.0.0.1:9100, Agent Memory URL http://127.0.0.1:9000) Add --local
Self-managed suite The person exports IRIS_AGENT_MEMORY_SERVICE_TOKEN, IRIS_IDENTITY_TOKEN and, on a multi-tenant Identity Service, IRIS_IDENTITY_TENANT; URLs come from IRIS_AGENT_MEMORY_SERVICE_URL, IRIS_AGENT_MEMORY_URL and IRIS_IDENTITY_URL, or a profile. See "Identity tokens" below
Redis Cloud Service commands return cloud_unsupported; see the console note below

Identity tokens. Each product chart can run its own Identity Service. Then set the product's own IRIS_AGENT_MEMORY_IDENTITY_TOKEN (and `IRIS_AGENT_MEMORY_IDENT

Полный SKILL.md на GitHub

Установить add-agent-memory в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл add-agent-memory?

Wire Redis Agent Memory into an existing agent with redis-iris so it remembers users across sessions. Asks five questions (what to remember, what to share, what never to keep, how long to keep it, whether users can be forgotten), writes the answers to service.yaml, provisions the service from the terminal with `iris agent-memory service create`, then wires recall and write-back into the agent's turn in any framework. Use when the agent forgets users, uses InMemoryStore or a checkpointer only, keeps memory in a dict or local DB, or the user asks for long-term memory, recall, or right-to-erasure.

Как установить скилл add-agent-memory?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл add-agent-memory запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить add-agent-memory с