piagent_
← ~/map

$ cat ~/map/pi-share-hf.md

pi-share-hf

Collect, redact, and publish Pi session traces to a Hugging Face dataset.

officialtools✓ Oct 16

Facts

repository
github.com/badlogic/pi-share-hf ↗
GitHub Stars
★ 258
Forks
23
license
—
npm / mo
—
last push
Apr 13, 2026

install

npm install -g pi-share-hf

## TL;DR

Official pipeline from Pi's author for publishing pi coding agent sessions of one OSS project to a Hugging Face dataset — collect, redact secrets, scan with TruffleHog, run LLM review, and upload only sessions that pass every check.

## Key points

## FAQ

Q Does it need the Hugging Face CLI?

No. upload pushes through a built-in TypeScript Hugging Face client — no huggingface-cli is needed. Create a Hugging Face write token and either export HF_TOKEN or save it to ~/.cache/huggingface/token.

Q How do I make sure something never gets published?

Add one regex per line to deny.txt and pass it with --deny to block whole names, topics, or projects; reject individual sessions with pi-share-hf reject <session>.jsonl. Before uploading, audit the set with list --uploadable and grep, and run upload --dry-run for counts without pushing.

## References

## Related entries

## Guides

Last updated: Aug 31, 2026