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
Click a segment to jump to that moment
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.
- +0Prompt · +0I want to use the pi-share-hf repo (local clone with a patch) to upload pi-nes sessions to Hugging Face.
- +0mAgent did · +0mExplored 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.
- +7mPrompt · +7mWe do have the huggingface CLI installed and can create the repo.
- +7mAgent did · +7mDiscovered 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.
- +9mAgent did · +9mPatched 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.
- +9mAgent did · +9mCreated 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.
- +12mPrompt · +12mGo ahead and run the collect step, using gpt-5.4 with medium thinking for the review pass.
- +12mOutcome · +12mKicked 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.