What is the Store?
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
agentuse serve -C path/to/agents, -C is the served scope for agent files. AgentUse still walks upward to find the project root, so agent folders inside the same repository can share the same store.
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.
Configuration
Isolated Store
Usestore: true for a store that’s private to one agent:
myagent from myagent.agentuse).
Shared Store
Use a string name to share a store across multiple agents:All agents using the same store name can read and write to the same data, enabling coordination without explicit communication.
Capabilities
Whenstore is configured, your agent can:
Listing and searching
store_list is built to be token-efficient: by default it returns lightweight summary rows (id, type, title, status, tags, parent, timestamps) without the data payload. The agent scans the summaries, then calls store_get for the full data of the one item it needs, instead of pulling every payload into context.
It accepts these parameters:
The response is
{ count, total, items }:
countis the number of rows returned andtotalis how many items match the filters beforelimit/offset, so the agent knows whether more remain.- Each summary row (when
datais omitted) includes adataKeysarray listing the keys available in that item’sdata, so the agent knows what it could request viafieldsorstore_getwithout seeing the values.
total (e.g. store_list({ status: "pending" })) rather than scanning rows.
The same projection applies to store_get: pass fields: ["url", "score"] to return only those keys from a large item instead of the whole payload.
Writing Instructions
Guide your agent’s store usage through clear SOP instructions. Here are common patterns:State Machine
Parent-Child Relationships
Tagging for Priorities
Agent Memory
Storage Location
Stores are saved to:Example: Content Pipeline
Debugging
View Store Contents
If you are runningagentuse serve, open the store browser:
Check Lock Status
Reset Store
Best Practices
Use Meaningful Types
Use Meaningful Types
Name your types clearly: “topic”, “article”, “review” instead of “item1”, “item2”.
Define Status Transitions
Define Status Transitions
Document valid status values and transitions in your SOP.
Store Results in Data
Store Results in Data
Put operation results in the
data field for later reference.Clean Up Old Items
Clean Up Old Items
Periodically delete completed items to keep the store manageable.
Next Steps
Manager Agents
Build orchestrating agents with store integration
Scheduling
Run agents on schedules with persistent state
Sub-Agents
Coordinate teams sharing a store