Upload Pi CLI session traces to a Hugging Face dataset
Session from pi-sessions on Hugging Face by julien-c · CC-BY-4.0 · condensed by Coders Talk
Click a segment to jump to that moment
2msession
0interventions
GOAL
Find local Pi agent session trace files for the huggingface.js project and upload them to a Hugging Face Hub dataset using the hf CLI.
- +0Prompt · +0Can you find the Pi session traces in ~/.pi/agent/sessions? How many are there?
- +0mAgent did · +0mListed ~/.pi/agent/sessions and found 3 session directories, one per project working directory.
- +0mPrompt · +0mYes, look at the huggingface.js ones
- +0mAgent did · +0mListed the huggingface.js session directory, found 7 .jsonl trace files with timestamps and sizes, offered to read their contents.
- +1mPrompt · +1mNo. Upload all of them to my huggingface.co/datasets/julien-c/pi-sessions dataset, using the hf CLI skill.
- +1mAgent did · +1mRead the hf-cli skill doc for usage, then ran hf upload to push all .jsonl files from the huggingface.js session directory into the julien-c/pi-sessions dataset repo.
- +2mOutcome · +2mUploaded 7 Pi session trace files (.jsonl) to the julien-c/pi-sessions Hugging Face dataset via a single hf upload command.
VERDICT
I'd just skip the exploration step and tell it upfront which sessions to find and upload straight to the dataset. The hf-cli skill doc made the actual upload trivial once it read it, so no correction was needed here.