Quick Start
1
Zero-config (default retention)
~/.praisonai/cache/tool_outputs/.2
Custom retention
How It Works
What the Agent Sees
Configuration
Storage Layout
Retrieve Programmatically
Common Patterns
Long-running research agents — web search bodies are stored when truncated; the agent reads them back in a follow-up turn. Pair with per-tool budgets — combine with Context Per-Tool Budgets for fine-grained limits. Short retention on CI — setPRAISONAI_TOOL_OUTPUT_RETENTION_HOURS=1 on shared runners.
Best Practices
Don't store secrets
Don't store secrets
Outputs are plaintext on disk — avoid tools that return credentials or tokens into the store.
Use stable run_id when chaining runs
Use stable run_id when chaining runs
Pass a consistent
run_id to get_tool_output_store(run_id=...) when multiple agents share one session.Combine with per-tool budgets
Combine with per-tool budgets
Use per-tool budgets to control inline size; the store handles anything that still overflows.
Not the same as Tool Output Spill. This store handles arbitrary large tool return values with time-based retention under
~/.praisonai/cache/ (PRAISONAI_TOOL_OUTPUT_RETENTION_HOURS). Tool Output Spill is specific to execute_command and uses a different dir (PRAISONAI_TOOL_OUTPUT_DIR) with process-exit cleanup.Related
Tool Output Spill
Save large
execute_command output to a retrievable artifactContext Per-Tool Budgets
Per-tool truncation limits
Context Window Management
Overflow and compaction strategies
Context Management
Agent context lifecycle

