agentsop-state-reducer
CommunityPrevent LangGraph parallel state crashes
Software Engineering#state management#multi-agent#langgraph#TypedDict#reducers#parallel writes#InvalidUpdateError
Authoragentsope
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents LangGraph from crashing when multiple parallel branches (or multi-agent writes) update the same state key in a single step.
Core Features & Use Cases
- State-key merge contracts: Teaches how to declare per-key reducer semantics so parallel writes merge instead of throwing InvalidUpdateError.
- Reducer selection playbook: Maps common key types (messages, counters, lists) to the right reducer patterns like add_messages and operator.add.
- Test-and-document workflow: Guides you to enumerate writers per key, pick a reducer, validate with a probe test, and document the contract in your state schema.
Quick Start
Ask the Skill for the correct reducer to apply after you paste your LangGraph state schema and describe which nodes write to the same key in parallel.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: agentsop-state-reducer Download link: https://github.com/agentsope/SkillAlchemy/archive/main.zip#agentsop-state-reducer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.