Skip to main content

Module spool

Module spool 

Source
Expand description

Spill large / binary MCP payloads to $SKIFF_CACHE_DIR/spool/ for agent grep.

Constants§

DEFAULT_AGENT_MAX_BYTES
Default max rendered stdout bytes before spill (agent profile).
DEFAULT_SPOOL_TTL_SECS
Default spool file TTL (24h).
PREVIEW_BYTES
Preview size included in spool pointer JSON.

Functions§

clean_spool
Remove spool files older than ttl_secs (0 = delete all).
maybe_clean_expired
Best-effort cleanup of expired spool files (ignore errors).
pointer_json
Build the small stdout pointer object for a spooled payload.
sha256_hex
spool_dir
write_spool
Write bytes to a new spool file; returns absolute path.