langchain-memory

langchain-memory is a skill for Claude Code from a5c-ai/babysitter. It costs 21 tokens per session (345 once invoked), scanned A, original, MIT.

A guide to adding memory to LangChain applications, including chat history, summaries of older conversations, and vector search. LangChain is a software library for building applications that use language models.

In plain words
What is it for?
Use it to build short-term or long-term chatbot memory, summarize long conversations, retrieve related past information, and configure persistence.
Why use it?
It helps an application retain useful conversation context without always sending the entire history. It also covers storing and restoring that memory.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to build short-term or long-term chatbot memory, summarize long conversations, retrieve related past information, and configure persistence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/a5c-ai/babysitter/langchain-memory
About the project

Babysitter is a workflow engine for AI coding agents that enforces predefined steps, quality checks, human approvals, and decision records. It is used to coordinate complex, repeatable agent workflows across supported coding tools. The catalogue contains skills, agents, instructions, settings, a plugin, and an MCP integration for its workflow.

a5c-ai/babysitter · 1,777 stars · on GitHub · a5c.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add a5c-ai/babysitter --skill langchain-memory
Clone the repo
git clone --depth 1 https://github.com/a5c-ai/babysitter

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for langchain-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/a5c-ai/babysitter/langchain-memory.svg)](https://agentmods.dev/skills/a5c-ai/babysitter/langchain-memory)
Your own site
<a href="https://agentmods.dev/skills/a5c-ai/babysitter/langchain-memory"><img src="https://agentmods.dev/badge/skills/a5c-ai/babysitter/langchain-memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 345 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00345
Opus 5 $0.00010 $0.00172
Sonnet 5 $0.00004 $0.00069
Haiku 4.5 $0.00002 $0.00034

Measured 2d ago against content hash bdcbe21b46cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

langchain-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

library/specializations/ai-agents-conversational/skills/langchain-memory/SKILL.md · 59 lines

What it actually says

LangChain Memory Skill

Capabilities

  • Implement various LangChain memory types
  • Configure ConversationBufferMemory for short-term recall
  • Set up ConversationSummaryMemory for long conversations
  • Integrate vector-based memory for semantic search
  • Design memory retrieval strategies
  • Handle memory persistence and serialization

Target Processes

  • conversational-memory-system
  • chatbot-design-implementation

Implementation Details

Memory Types

  1. ConversationBufferMemory: Stores full conversation history
  2. ConversationBufferWindowMemory: Rolling window of recent messages
  3. ConversationSummaryMemory: Summarizes older messages
  4. ConversationSummaryBufferMemory: Hybrid approach
  5. VectorStoreRetrieverMemory: Semantic similarity-based retrieval

Configuration Options

  • Memory key naming conventions
  • Return message format (string vs messages)
  • Summary LLM selection
  • Vector store backend selection
  • Token limits and window sizes

Dependencies

  • langchain
  • langchain-community
  • Vector store client (optional)
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 59 lines · 21 tokens per session scan A bdcbe21b46cd

Subscribe to this mod's changes

langchain-memory is a skill published in the GitHub repository a5c-ai/babysitter (1,777 stars, last pushed 2d ago), licensed MIT. It adds 21 tokens to every session and 345 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

reflect

Mines a session for durable learnings. Trigger on "reflect on this session", "capture what we learned", or "/reflect" only; never infer intent from session end or friction.

bostonaholic/team · 40 tokens

list-learned-actions

Explicit Codex workflow: List persisted reusable actions, UI skeletons, and legacy feedback memories before composing device primitives.

Lykhoyda/rn-dev-agent · 29 tokens

agent-memory-coordinator

Agent skill for memory-coordinator - invoke with $agent-memory-coordinator.

ruvnet/ruflo · 19 tokens

tutti-agent-workspace-app

Build or evolve a complex agent-enabled Tutti workspace app repository. Use for Tutti apps with web/server/shared monorepos, @tutti-os/agent-acp-kit local agent runtimes, kit-owned TUTTICLI agent/composer discovery, dynamic agent catalogs, run-scoped MCP tool gateways, app-owned package builders, web-first debugging…

tutti-os/tutti · 106 tokens

distill-session-knowledge

Offline-mine this project's pi session JSONL logs into reusable, verified knowledge: extracts faults, decisions, corrections, procedures and docs, promotes only recurring patterns, and routes artifacts into skillmanage, memory and docs. Use on "mine my sessions", "distill session knowledge", "extract lessons from…

BlackBeltTechnology/pi-agent-dashboard · 78 tokens

nest

Designing LLM-optimized folder structures: audits and restructures directories for context efficiency, progressive disclosure, and prompt cache performance. Not for general repo structure (Grove).

simota/agent-skills · 37 tokens