history
history¶
Conversation history management
--help¶
Flag Show this message and exit.
show¶
Show conversation history with filtering options.
Examples: # Show last 5 conversations agentpool history show -n 5
# Show conversations from last 24 hours
agentpool history show --period 24h
# Show conversations since specific date
agentpool history show --since 2024-01-01
# Search for specific content
agentpool history show --query "database schema"
# Show GPT-5 conversations with token usage
agentpool history show --model gpt-5 --tokens
# Compact view of recent conversations
agentpool history show --period 1d --compact
agent_name¶
Agent name (shows all if not provided)
-c, --config¶
Override agent config path
-s, --since¶
Show conversations since (YYYY-MM-DD or YYYY-MM-DD HH:MM)
-p, --period¶
Show conversations from last period (1h, 2d, 1w, 1m)
-q, --query¶
Search in message content
-m, --model¶
Filter by model used
-n, --limit¶
Default: 10 Number of conversations
--compact¶
Flag Show only first/last message of conversations
-t, --tokens¶
Flag Include token usage statistics
--output-format, -o¶
Default: text Output format. One of: text, json, yaml
--help¶
Flag Show this message and exit.
stats¶
Show usage statistics.
Examples: # Show stats for all agents agentpool history stats
# Show daily stats for specific agent
agentpool history stats myagent --group-by day
# Show model usage for last week
agentpool history stats --period 1w --group-by model
agent_name¶
Agent name (shows all if not provided)
-c, --config¶
Override agent config path
-p, --period¶
Default: 1d Time period (1h, 1d, 1w, 1m, 1y)
-g, --group-by¶
Default: agent Group by
--output-format, -o¶
Default: text Output format. One of: text, json, yaml
--help¶
Flag Show this message and exit.
reset¶
Reset (clear) conversation history.
Examples: # Clear all history (with confirmation) agentpool history reset
# Clear without confirmation
agentpool history reset --confirm
# Clear history for specific agent
agentpool history reset --agent myagent
# Drop and recreate tables (for schema changes)
agentpool history reset --hard --confirm
-c, --config¶
Override agent config path
-y, --confirm¶
Flag Confirm deletion
-a, --agent¶
Only delete for specific agent
--hard¶
Flag Drop and recreate tables (for schema changes)
--help¶
Flag Show this message and exit.