Storage
The storage configuration defines how agent interactions, messages, and tool usage are logged. It's defined at the root level of the manifest.
Providers¶
type |
Name | Description |
|---|---|---|
sql |
SQL Storage | SQL database storage configuration. |
file |
File Storage | File storage configuration. |
memory |
Memory Storage | In-memory storage configuration for testing. |
claude |
Claude Storage | Claude Code native storage format configuration. |
zed |
Zed Storage | Zed IDE native storage format configuration. |
acp |
ACP Storage | ACP server storage configuration. |
codex |
Codex Storage | Codex server storage configuration. |
t3 |
T3 Code Storage | T3 Code storage configuration. |
Besides AgentPool's own SQL and file storage, providers read and write the native session stores of Claude Code, Codex, Zed, T3 Code and ACP agents, so their conversations show up as AgentPool sessions.
Configuration Reference¶
StorageConfig¶
Global storage configuration.
Docs: https://phil65.github.io/agentpool/configuration/storage/
SQL Storage¶
SQL database storage configuration.
File Storage¶
File storage configuration.
Memory Storage¶
In-memory storage configuration for testing.
| Memory Storage (YAML) | |
|---|---|
Claude Storage¶
Claude Code native storage format configuration.
Reads/writes to Claude Code's native JSONL format in ~/.claude/projects/. Useful for sharing conversation history between agentpool and Claude Code CLI.
The transcripts belong to Claude Code: reset never deletes them (it reports 0
deleted), and the storage manager doesn't send resets to this provider. Session ids
must be plain file stems (no path separators or ..).
Zed Storage¶
Zed IDE native storage format configuration.
Reads from Zed's native SQLite + zstd-compressed JSON format. Useful for importing conversation history from Zed's AI assistant.
This is a READ-ONLY provider - it cannot write back to Zed's format.
ACP Storage¶
ACP server storage configuration.
Read-only provider that queries a connected ACP server for session history. The connection is established at runtime by the agent, not from config.
| ACP Storage (YAML) | |
|---|---|
Codex Storage¶
Codex server storage configuration.
Read-only provider that queries a connected Codex server for session history. The connection is established at runtime by the agent, not from config.
| Codex Storage (YAML) | |
|---|---|
T3 Code Storage¶
T3 Code storage configuration.
Read-only provider for the threads of a T3 Code environment, read over its MCP
endpoint (t3_thread_list / t3_thread_read), so the server must be running.
Signs in like a T3 agent: url with token, else a sign-in saved with
pyt3 login (login picks one).
Overview¶
Storage providers define how agent interactions, messages, and tool usage are persisted. The system supports multiple providers, from SQL databases and structured files to the session stores of other agents.
Key features:
- Multiple Providers: Use multiple storage backends simultaneously
- Agent Filtering: Control which agents are logged per provider
- Flexible Logging: Configure what gets logged (messages, conversations, commands, context)
- Provider Selection: Automatic or explicit provider selection for queries
Usage Example¶
# yaml-language-server: $schema=https://raw.githubusercontent.com/phil65/agentpool/refs/heads/main/schema/config-schema.json
storage:
# Global settings
agents: ["planner", "executor"]
filter_mode: "and"
log_messages: true
log_sessions: true
default_provider: "sql"
providers:
- type: "sql"
url: "sqlite:///history.db"
pool_size: 5
auto_migration: true
- type: "file"
path: "logs/chat.json"
format: "json"
Configuration Notes¶
- Multiple providers can be used simultaneously
- Agent filtering works at both global and provider levels
- Provider flags are combined with global flags using AND logic
- SQL provider is recommended for production use
- Memory provider is useful for testing
- File storage writes YAML, JSON, TOML, INI or TOON (format from the file extension)