Outlined provider integration steps.
UnderstandConfirmed checklist completeness.
UnderstandPrepared to read documentation files.
Setup/var/folders/49/l4171l3n219_xwq30fmyzr8w0000gn/T/TemporaryItems/NSIRD_screencaptureui_UQrCRs/Screenshot\ 2026-01-25\ at\ 00.58.19.png we good?
Attempting to read image file
Confirming commit and push screenshot
The screenshot shows the agent committed and pushed fix(coding-agent): check npm package version before using cached copy after running pre-commit checks. If that’s what you wanted, it’s already done. Let me know if there’s anything else to check.
yooo
Preparing brief greeting response
Hey. What do you need?
think how you'd add a new provider to pi
Outlining steps to add new provider
To add a new provider I would follow the documented flow:
packages/ai/README.md and any provider-specific docs to confirm auth requirements.packages/ai/src/types.ts: extend the Api union, define the provider options interface, map it in ApiOptionsMap, add to KnownProvider.packages/ai/src/providers/<provider>.ts: convert messages, emit standardized stream events, handle tool calls and usage reporting.packages/ai/src/stream.ts: detect credentials in getEnvApiKey, map options in mapOptionsForApi, add to the streamFunctions map.packages/ai/scripts/generate-models.ts to fetch and normalize the provider’s model list.packages/ai/test.packages/coding-agent/src/core/model-resolver.ts for default models, add CLI env var docs in packages/coding-agent/src/cli/args.ts, and document setup in the package README.packages/ai/README.md and record the change under ## [Unreleased] in packages/ai/CHANGELOG.md.After changes, run npm run check and prepare any changelog or documentation updates before committing.
well investigate
Preparing to investigate provider addition
that's it?
Clarifying provider addition instructions
Yes, that checklist in packages/ai/README.md is the full provider integration playbook. When it’s time to implement, we follow those steps plus the usual hygiene (update the relevant changelog, integrate with coding-agent docs, run npm run check). Nothing else is hidden.
do a bunch of things
read only
Evaluating task clarity
I need a specific task. Let me know what to look into or which files to inspect and I’ll proceed.
read all the .md files in docs
Identifying docs directory to read markdown files
>lsAGENTS.md
biome.json
CONTRIBUTING.md
LICENSE
node_modules
package-lock.json
package.json
packages
pi-mono.code-workspace
pi-test.sh
README.md
scripts
test.jsonl
test.sh
todo.md
tsconfig.base.json
tsconfig.jsonSearching for docs directories
>find packages -maxdepth 3 -type d -name docspackages/coding-agent/docs
packages/pods/docs
packages/mom/docsConsidering scope of docs folders
>find packages/**/docs -type f -name '*.md'packages/coding-agent/docs/tui.md
packages/coding-agent/docs/compaction.md
packages/coding-agent/docs/extensions.md
packages/coding-agent/docs/rpc.md
packages/coding-agent/docs/sdk.md
packages/coding-agent/docs/skills.md
packages/coding-agent/docs/theme.md
packages/coding-agent/docs/tree.md
packages/coding-agent/docs/session.md
packages/coding-agent/docs/custom-provider.md
packages/mom/docs/new.md
packages/mom/docs/slack-bot-minimal-guide.md
packages/mom/docs/sandbox.md
packages/mom/docs/v86.md
packages/mom/docs/artifacts-server.md
packages/mom/docs/events.md
packages/pods/docs/kimi-k2.md
packages/pods/docs/qwen3-coder.md
packages/pods/docs/gml-4.5.md
packages/pods/docs/implementation-plan.md
packages/pods/docs/models.md
packages/pods/docs/plan.md
packages/pods/docs/gpt-oss.md