lw396

Pi Agent Action — AI skill for Claude Code

AI community

GitHub Action that runs the pi coding agent on issues and pull requests, with any model provider.

How to install Pi Agent Action

This entry records only its repository, not the path inside it, so there is no exact command to give. Open lw396/pi-agent-action and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Pi Agent Action does

GitHub Action that runs the pi coding agent on issues and pull requests, with any model provider. A drop-in replacement for claude-code-action.

Alternatives in AI

  • Loushang — AI-native agent harness for coding workflows by python: multi-model LLM orchestration, stateful sessions, tool 1.3k ★
  • My Free Code — Open-source multi-provider AI gateway for Claude Code and other coding agents, with model routing, streaming 633 ★
  • Claude Hub — by Claude Did This - A webhook service that connects Claude Code to GitHub repositories, enabling AI-powered c 393 ★

README

pi-agent-action

[![CI](https://github.com/lw396/pi-agent-action/actions/workflows/ci-all.yml/badge.svg)](https://github.com/lw396/pi-agent-action/actions/workflows/ci-all.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)

A GitHub Action that runs the [pi coding agent](https://github.com/earendil-works/pi) on your issues and pull requests, with the model of your choice. Mention `@pi` in a comment to have it answer a question, review a change or implement a fix, or give it a `prompt` to run an automation. Claude, GPT, Gemini, models on Amazon Bedrock or Google Vertex AI, OpenRouter and any other provider pi supports all work the same way: you pick the model, the workflow stays the same.

[!NOTE] This project is based on [anthropics/claude-code-action](https://github.com/anthropics/claude-code-action) (MIT) and offers a migration path for its workflows. It is not an official product of Anthropic or of the pi project.

Features

  • Any model: set model to /; switching providers changes one input and one secret
  • Two modes, picked automatically: tag mode answers @pi mentions, assignments and labels on issues and pull requests; agent mode runs the prompt you give it, on any event
  • Code review and implementation: reads the issue or pull request, the diff and CI status, then answers, leaves inline review comments or pushes a branch with the fix
  • Progress tracking: a comment that updates as the agent works, with a link to the job run
  • Structured output: json_schema turns the agent's answer into validated JSON action outputs
  • Explicit permissions: the agent can always read files; every other tool call needs an allowed_tools rule
  • Runs on your runner: the agent runs inside the action on your GitHub runner, and model requests go straight to your provider

Quickstart

To have a coding agent (pi, Claude Code, Codex, ...) set it up for you, paste this into it from your