Code Agent
Description
An AI Agent that operates on GitHub Actions. By using this action, you can directly invoke Coding Agent CLI from GitHub Issues or Pull Request comments and automate code changes.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Code Agent
An AI Agent that operates [Claude Code](https://github.com/anthropics/claude-code) and [Codex](https://github.com/openai/codex) on GitHub Actions. By using this action, you can directly invoke Claude Code or Codex from GitHub Issues or Pull Request comments and automate code changes.
Features
- Start Claude Code with the
/claudecommand from GitHub Issues or PR comments - Start Codex with the
/codexcommand from GitHub Issues or PR comments - Automatically create a Pull Request or commit changes if the AI modifies code
- Post AI output as a comment if there are no changes
Usage
Project Settings
Settings -> Actions -> General -> Workflow permissions
- Read and write permissions
- ✔ Allow GitHub Actions to create and approve pull requests

Settings -> Secrets and variables -> Actions -> Secrets
- Repository secrets: Set
ANTHROPIC_API_KEY(for Claude Code) orOPENAI_API_KEY(for Codex)

Workflow Configuration
name: Code Agent
permissions:
contents: write
pull-requests: write
issues: write
on:
issues:
types: [opened]
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
jobs:
code-agent:
runs-on: ubuntu-latest
if: ${{ github.event.sender.type != 'Bot' }}
steps:
- uses: potproject/code-agent@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# [Claude Code Settings]
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
# [Optional Claude Code Settings]
# anthropic-base-url: "https://api.anthropic.com"
# anthropic-model: "claude-3-7-sonnet-20250219"
# anthropic-small-fast-model: "claude-3-5-haiku-20241022"
# claude-code-use-bedrock: "1"
# anthropic-bedrock-base-ur
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI