Quick Start
Enable dynamic context on an agent
artifact_tail, artifact_grep, etc.How It Works
Outputs aboveinline_max_kb are written to disk under base_dir. The agent sees a short reference and pulls only the lines it needs via artifact tools — context stays bounded even after heavy tool runs.
Available Tools
| Tool | Description |
|---|---|
artifact_tail | Last N lines |
artifact_head | First N lines |
artifact_grep | Search for pattern |
artifact_chunk | Line range |
artifact_list | List artifacts |
Configuration
| Parameter | Default | Description |
|---|---|---|
inline_max_kb | 32 | Queue outputs larger than this |
redact_secrets | True | Redact API keys and passwords |
history_enabled | True | Persist conversation history |
base_dir | ~/.praisonai/runs | Artifact storage directory |
PRAISONAI_ARTIFACT_DIR, PRAISONAI_ARTIFACT_INLINE_MAX_KB, PRAISONAI_ARTIFACT_REDACT.
Best Practices
Lower inline_max_kb for memory-heavy agents
Lower inline_max_kb for memory-heavy agents
16 KB keeps more headroom in context for long multi-tool sessions.
Keep redact_secrets enabled in production
Keep redact_secrets enabled in production
Automatic redaction prevents credentials in tool output from reaching the LLM or disk logs.
Use artifact_grep before loading full files
Use artifact_grep before loading full files
Search artifacts first — avoid pulling entire multi-MB outputs into a single prompt.
Related
Context Management
Full context system
Security & Redaction
Secret redaction details

