pie is a structured extraction library and CLI built on @mariozechner/pi-ai.
README.md: Overview, auth, CLI basics.docs/architecture.md: High-level layout.docs/agent/reports.md: Pre-indexed deep dive (generated bynpx tsx scripts/preindex.ts).
- Run from repo root:
npm run build. - List models:
pie --list-models --models-provider <provider>(use--models-filterto narrow). - Authenticate providers:
pie --login <provider>(writes~/.pi/agent/auth.json). - Examples use the shared OAuth helper in
examples/_shared/oauth.tsand will prompt if credentials are missing. - Run scripts via
npx tsx examples/<name>/run.ts(for examplenpx tsx examples/hn-insights/run.ts).
docs/agent/guidelines.md: Conventions, workflows, error handling.examples/: Working usage patterns.
- Recipes and setup files:
examples/recipe-system,examples/templated-support-triage - Caching and cache warming:
examples/caching,examples/warm-cache - Validation layers:
examples/validation-shell,examples/validation-http,examples/validation-retry - Streaming events and retries:
examples/retry-feedback - Multimodal inputs:
examples/vision-circle