langchain-short-memory

Manage thread-level conversation history for LangChain/LangGraph chat agents.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/wpsadi/stock-agent --skill langchain-short-memory-wpsadi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langchain-short-memory
Source: https://github.com/wpsadi/stock-agent/tree/main/.agents/skills/langchain-short-memory
Command: npx skills add https://github.com/wpsadi/stock-agent --skill langchain-short-memory-wpsadi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of managing conversation history in multi-turn interactions for LangChain/LangGraph chat agents, ensuring efficient memory usage and maintaining context.

Core Features & Use Cases

  • Thread-Level Memory: Manages memory at the thread level for multi-turn conversations.
  • Memory Lifecycle: Supports memory append, trim, summarize, and selective delete operations.
  • Use Case: When a user engages in a complex conversation with a chat agent, this Skill helps retain relevant context while avoiding information overload.

Quick Start

Use the langchain-short-memory skill to summarize the conversation history after 10 turns.

Frequently Asked Questions about langchain-short-memory

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

FAQPage Schema
How do I manage short-term memory for LangChain chat agents?

To manage short-term memory for LangChain chat agents, use thread-level persistence to handle conversation history. This approach supports appending, trimming, and deleting memory to prevent context bloat in multi-turn interactions.

What is the best way to prevent context bloat in LangGraph conversations?

The best way to prevent context bloat in LangGraph conversations is by applying memory trimming and summarization techniques. This retains relevant context while avoiding information overload during complex multi-turn interactions.

Can I summarize conversation history after a specific number of turns in LangChain?

Yes, you can summarize conversation history after a specific number of turns in LangChain. The skill allows you to configure memory lifecycle operations, triggering summarization to maintain agent performance after intervals like 10 turns.

Does LangGraph support thread-level memory deletion for chat agents?

Yes, LangGraph supports thread-level memory deletion for chat agents. You can perform selective deletion operations on conversation history to efficiently manage memory usage and remove irrelevant context.

Why does my LangChain chat agent lose context in multi-turn conversations?

A LangChain chat agent may lose context in multi-turn conversations if memory is not properly persisted at the thread level. Without efficient conversation history management and trimming, context bloat can degrade performance and lose relevant information.

When should I use memory trimming instead of summarization for chat agents?

You should use memory trimming to strictly limit conversation history length and prevent context bloat, while summarization is better for retaining the semantic meaning of past interactions. Trimming deletes excess turns, whereas summarization condenses them.