Skip to content

feat: add Pi coding agent integration guide#2286

Merged
smakosh merged 9 commits into
theopenco:mainfrom
analogpvt:feat/pi-integration-guide
May 14, 2026
Merged

feat: add Pi coding agent integration guide#2286
smakosh merged 9 commits into
theopenco:mainfrom
analogpvt:feat/pi-integration-guide

Conversation

@analogpvt
Copy link
Copy Markdown
Contributor

@analogpvt analogpvt commented May 13, 2026

Summary

  • Adds integration guide for Pi coding agent with LLM Gateway
  • Adds Pi to the integration cards on the UI dashboard
  • Adds official Pi SVG icon from pi.dev to shared package
  • Includes screenshots showing models.json config and working terminal session

Guide covers:

  • Installing Pi
  • Configuring ~/.pi/agent/models.json with LLM Gateway as provider
  • Model selection and testing
  • Environment variable support for API keys
  • Troubleshooting common issues

Test plan

  • Tested Pi integration locally with api.llmgateway.io — GPT-5 and Claude Sonnet 4.5 both respond correctly
  • Docs build passes
  • UI build passes
  • Guide page renders at /guides/pi on both docs and UI
  • Pi icon displays correctly in integration cards

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added Pi integration to connect the Pi terminal coding agent with LLM Gateway for centralized model access and management.
  • UI

    • Added a Pi integration card to the Integrations list and introduced a Pi icon.
  • Documentation

    • Published a comprehensive Pi setup guide covering configuration, quick start, adding models, API key options, and troubleshooting.
  • Chores

    • Updated workspace build configuration for dependency build allowances.

Review Change Stack

analogpvt and others added 2 commits May 13, 2026 17:09
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 13, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Adds Pi terminal agent integration: exports a new PiIcon, wires a "Pi" integration card into the UI, adds MDX and UI docs describing how to configure Pi to use LLM Gateway (models.json, API key, testing, troubleshooting), and updates pnpm-workspace.yaml with an allowBuilds map.

Changes

Pi Integration Setup

Layer / File(s) Summary
Pi icon component
packages/shared/src/components/integration-icons.tsx
Exports new PiIcon React component rendering a Pi/π SVG and forwarding SVG props.
Integration card UI wiring
apps/ui/src/components/integrations/integration-cards.tsx
Imports PiIcon and inserts a "Pi" integration entry into the integrations array with name, description, href: "/guides/pi", icon: PiIcon, and comingSoon: false.
Documentation guides (MDX + UI content)
apps/docs/content/guides/pi.mdx, apps/ui/src/content/guides/pi.md
Adds Pi integration guides covering ~/.pi/agent/models.json provider configuration for LLM Gateway (baseUrl, api, apiKey, models list), model selection and reload, adding models, using an environment variable for the API key, Quick Start test, and troubleshooting for auth, model-not-found, and connection issues.
Workspace config
pnpm-workspace.yaml
Replace prior built-deps lists with an allowBuilds map that marks specific native build dependencies as allowed or disallowed for workspace builds.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • smakosh
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main purpose of the PR—adding an integration guide for the Pi coding agent with LLM Gateway—which aligns with the primary changes across documentation, UI components, and icon assets.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

analogpvt and others added 3 commits May 13, 2026 18:17
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/docs/content/guides/pi.mdx`:
- Around line 124-139: The example in the "Using Environment Variables for the
API Key" block uses "apiKey": "LLM_GATEWAY_API_KEY" which may be interpreted as
a literal string by Pi; update the example in apps/docs/content/guides/pi.mdx so
the "apiKey" field uses the exact environment-variable reference syntax Pi
expects (replace the bare token with the correct form such as $VAR or ${VAR}
only if Pi requires that), and add a short parenthetical note citing Pi's
official docs (link or exact quoted syntax) that confirms the required format
for ~/.pi/agent/models.json; ensure you modify the JSON snippet around the
"apiKey" property and mention the Pi docs reference for verification.

In `@pnpm-workspace.yaml`:
- Around line 6-15: Remove the deprecated pnpm build-config keys by deleting the
ignoredBuiltDependencies and onlyBuiltDependencies entries and rely solely on
the allowBuilds mapping; ensure the allowBuilds object (keys like core-js,
esbuild, protobufjs, sharp, unrs-resolver) contains every package you intend to
permit building and remove any arrays or keys named ignoredBuiltDependencies or
onlyBuiltDependencies from the file so build policy is controlled only via
allowBuilds.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: b81760e4-8654-40ae-8ba0-665afa768d4b

📥 Commits

Reviewing files that changed from the base of the PR and between 8e6a20a and c25496d.

📒 Files selected for processing (3)
  • apps/docs/content/guides/pi.mdx
  • apps/ui/src/content/guides/pi.md
  • pnpm-workspace.yaml

Comment thread apps/docs/content/guides/pi.mdx
Comment thread pnpm-workspace.yaml Outdated
analogpvt and others added 3 commits May 14, 2026 17:27
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use only allowBuilds (pnpm v11+), remove ignoredBuiltDependencies
and onlyBuiltDependencies which are no longer supported.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@smakosh smakosh enabled auto-merge May 14, 2026 18:19
@smakosh smakosh added this pull request to the merge queue May 14, 2026
Merged via the queue into theopenco:main with commit fd2a3a4 May 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants