Persistent data storage for tracking work items across agent runs
Experimental Feature: The Store is experimental. The configuration and data format may change or be removed in future versions. Discuss feedback in GitHub Discussions.
The store is a local file-based storage system that allows agents to track work items and remember information across multiple runs. It’s particularly useful for:
Multi-run workflows - Track progress when agents run on a schedule
Multi-agent coordination - Share state between agents working together
Task management - Track tasks through status workflows
Agent memory - Remember facts, preferences, and context across runs
When you enable the store, your agent automatically gets tools for creating, reading, updating, deleting, and listing items. Tell the agent what to store and when in your agent file’s instructions.
Use a string name to share a store across multiple agents:
Copy
# manager.agentuse---type: managerstore: "my-project"subagents: - path: ./writer.agentuse---# writer.agentuse---store: "my-project" # Same store as manager---
All agents using the same store name can read and write to the same data, enabling coordination without explicit communication.
## Workflow1. Create items with status "pending"2. When starting work, update to "in_progress"3. When complete, update to "done"4. For failures, update to "failed" with error in data## Progress Check- List items with status "pending" to find work- List items with status "in_progress" to check active work
## Structure- Topic (parent) - Article (child linked to topic) - Review (child linked to article)## Finding Related Items- List articles filtered by parent topic ID- List reviews filtered by parent article ID
## Priority Handling- Tag urgent items with "urgent"- When checking for work, prioritize items tagged "urgent"- Use tags like "bug", "feature", "review" for categorization
## Memory Management- Store important facts with type "memory"- Use tags to categorize: "user-preference", "learned-fact", "context"- Before starting work, list recent memories for relevant context- When learning something important, store it for future runs## What to Remember- User preferences discovered during tasks- Decisions made and their reasoning- Facts that will be useful in future runs- Corrections or feedback received
# manager.agentuse---type: managerstore: "content"subagents: - path: ./researcher.agentuse - path: ./writer.agentuse---## SOP### Research Phase1. Delegate to researcher to find topics2. Store each topic with type "topic" and status "pending"### Writing Phase1. List pending topics from the store2. For each topic, delegate to writer with the topic ID3. Writer creates an article linked to the topic (as parent)4. Update topic status to "written"### Status Workflow- Topics: pending → in_progress → written- Articles: draft → review → done