# Next steps ## Current milestone V2 validates private Space creation and live Gradio API validation. ## Phase 3 — Pi inside the Job Add Pi as the first agentic runtime: ```text HF Job → install Pi → configure HF Inference Providers → give Pi a simple goal → let Pi modify the generated hello Space → upload files → validate live API → collect Pi traces from ~/.pi/agent/sessions → copy raw/private traces into the Bucket ``` The first Pi task should be deliberately small: ```text Improve the title/description/examples of the generated Gradio app. Do not change the function signature. Do not mark success until the live Gradio API test passes. ``` ## Phase 4 — Apply the gist recipe Give Pi a goal close to the article: ```text Read the HF Spaces Agent Quickstart gist. The deployed Space is your AI lab. Use hf CLI / Hub API. Read logs before patching. Verify through gradio_client. Do not declare success until live API validation passes. ``` ## Phase 5 — First model-card template Add one narrow model family, ideally a simple Transformers pipeline or a standard Diffusers text-to-image model. ## Phase 6 — ZeroGPU Add a ZeroGPU-specific Gradio template with `@spaces.GPU` only around inference. ## Phase 2.1 fix This version fixes private Space validation with `gradio_client>=2.0.0`, whose `Client` constructor uses `token=` instead of `hf_token=`. The worker now uses signature introspection so older/newer versions can still work. Bucket events are also printed to stdout so HF Job logs are readable while the worker runs.