Skip to content
PitestsCLI & tooling

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

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.

  1. Prompt · +0
    Can you find the Pi session traces in ~/.pi/agent/sessions? How many are there?
  2. Agent did · +0m
    Listed ~/.pi/agent/sessions and found 3 session directories, one per project working directory.
  3. Prompt · +0m
    Yes, look at the huggingface.js ones
  4. Agent did · +0m
    Listed the huggingface.js session directory, found 7 .jsonl trace files with timestamps and sizes, offered to read their contents.
  5. Prompt · +1m
    No. Upload all of them to my huggingface.co/datasets/julien-c/pi-sessions dataset, using the hf CLI skill.
  6. Agent did · +1m
    Read 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.
  7. Outcome · +2m
    Uploaded 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.

I tried this · 0

Discussion · 0

How Builds work