Skip to content
Pi · gpt-5.4infraCLI & tooling7 files · +268 −93

Wire pi-nes sessions upload to Hugging Face via pi-share-hf

Session from pi-nes-sessions on Hugging Face by thomasmustier · MIT · condensed by Coders Talk

12msession
0interventions
GOAL

Set up sharing of redacted pi-nes agent session traces to a Hugging Face dataset, using a local clone of pi-share-hf as the underlying tool.

  1. Prompt · +0
    I want to use the pi-share-hf repo (local clone with a patch) to upload pi-nes sessions to Hugging Face.
  2. Agent did · +0m
    Explored the local pi-share-hf clone, found its uncommitted patch to review.ts/types.ts/README, checked pi-nes package structure, then added scripts/share-hf.sh wrapper, updated .gitignore and README with a sharing workflow section, and verified with npm run check and a help dry-run.
  3. Prompt · +7m
    We do have the huggingface CLI installed and can create the repo.
  4. Agent did · +7m
    Discovered the installed CLI is the newer 'hf' tool, not legacy 'huggingface-cli', confirmed login as thomasmustier, and inspected upload.ts/process.ts/cli.ts to see how the tool invokes the CLI.
  5. Agent did · +9m
    Patched pi-share-hf's process.ts, workspace.ts, upload.ts and README to resolve either 'hf' or the legacy 'huggingface-cli' command, then reran npm run check to confirm it still passes.
  6. Agent did · +9m
    Created the Hugging Face dataset repo thomasmustier/pi-nes-sessions, initialized the pi-nes workspace at .pi/hf-sessions, and checked pi's default provider/model/thinking settings.
  7. Prompt · +12m
    Go ahead and run the collect step, using gpt-5.4 with medium thinking for the review pass.
  8. Outcome · +12m
    Kicked off collect with --provider openai-codex --model gpt-5.4 --thinking medium --parallel 4 against README.md and AGENTS.md, after wiring the wrapper script, gitignore, README docs, and patching pi-share-hf to support the 'hf' CLI and creating the thomasmustier/pi-nes-sessions dataset repo.
VERDICT

Next time I'd mention upfront that we already have the newer 'hf' CLI installed instead of the legacy 'huggingface-cli', since that saved a chunk of back-and-forth discovering and patching pi-share-hf to support both. Pointing out the actual installed tool early would have let the agent patch process.ts/upload.ts/workspace.ts in one pass instead of investigating first.

I tried this · 0

Discussion · 0

How Builds work