Fixed
- JSONL artifact files no longer written by default — they duplicated pi's own session files and were the sole cause of
subagent-artifactsdirectories growing to 10+ GB. ChangedincludeJsonldefault fromtruetofalse._output.mdand_meta.jsonstill capture the useful data. - Artifact cleanup now covers session-based directories, not just the temp dir. Previously
cleanupOldArtifactsonly ran onos.tmpdir()/pi-subagent-artifactsat startup, while sync runs (the common path) wrote to<session-dir>/subagent-artifacts/which was never cleaned. Now scans all~/.pi/agent/sessions/*/subagent-artifacts/dirs on startup and cleans the current session's artifacts dir on session lifecycle events. - JSONL writer now enforces a 50 MB size cap (
maxBytesonJsonlWriterDeps) as defense-in-depth for users who opt into JSONL. Silently stops writing at the cap without pausing the source stream, so the progress tracker keeps working.