项目预览
项目数据
项目介绍
Star 增长趋势
本站每日记录该项目 GitHub 星标变化,观测越久曲线越完整
数据来源:GitHub API 逐日快照 · 收录于 2026-10-19 · 当前星标 ★ 927
使用教程
ℹ 本教程由 AI 依据该项目 README 整理,个别步骤可能需要按你的环境微调。
环境要求
- Node.js 18+ 或 Go 1.22+
安装与启动步骤
-
1装二进制
把 Pi 编码 Agent 用 Go 重写,单文件、启动快。
npm install -g @pi-in-go/pig -
2或用 go install
有 Go 环境直接装。
go install github.com/MichaelKinsy/PiG/cmd/pig@latest -
3验证版本
确认装的是新版本。
npx @pi-in-go/pig --version -
4跑起来
在项目目录里直接开。
cd your-repo && pig
如何确认成功
pig --version 正常输出,能对当前仓库提问。
注意事项
- 不需要 Node 运行时是它相对 Pi 的最大优势。
- 兼容 Pi 的 TypeScript 扩展,不用重写。
- 源码构建用 go build -o bin/pig ./cmd/pig。
核心亮点
- 严格以对等移植为原则,上游行为即契约,便于与 TypeScript 版对照验证
- Go 单二进制交付,部署和嵌入成本低于 Node/TypeScript 运行时
- 面向 AI 编码代理场景,可直接作为 Go 生态中构建编码助手的基座
不足之处
- 项目早期、星标约 623,生态和第三方集成尚不成熟
- 移植项目受上游演进牵制,上游行为变更需要同步跟进,独立性有限
适用场景
- 需要在 Go 服务中内嵌 AI 编码代理能力
- 希望用单二进制方式分发 Pi 编码智能体
- 为 Pi 的 TypeScript 实现做跨语言对照与验证
替代项目
OpenHands、Aider、Cline
同类项目推荐
mobilecode
开源
AI 代理直接改代码并构建预览 iOS/Android 工程
mobilecode is a fork of opencode that builds and previews iOS and Android projects
Prompt-sensei
开源
本地提示词教练,优化提问,提升 AI 编程效率
Local-first prompt coach for Claude Code and Codex that improves prompts, observes p···
copilot-instructions
开源
给 Copilot 立规矩,让 AI 按 DDD 和整洁架构写代码
A comprehensive codebase of best practices, coding rules, and workflow automation fo···
GitHub-Copilot-app
开源
把 Copilot 的仓库任务收进一个桌面窗口
The GitHub Copilot app is an agent-native desktop experience for finding, running, s···
ai-first-toolkit
开源
用 AI 技能包审计、重构、启动项目,让开发更智能
Open-source Claude Code skills and Codex skills for AI-first work. Audit, re-enginee···
VibeGit
开源
给 AI 改代码加个后悔键,随时回滚不慌
Local-first desktop safety net for AI-assisted coding. Create checkpoints, inspect c···
costrict
开源
企业级 AI 编程三件套,写码审查补全一次到位
Costrict - strict AI coder for enterprises, quality first, including AI Agent, AI Co···
gograph
开源
让 AI 编程助手看懂 Go 代码结构,精准定位调用链
Local Go static analysis, call-graph, blast-radius, and CI architecture-gate CLI—wi···
facadecode
开源
在 VS Code 里让多个 AI 编码代理互相派活协作
The multi-agent orchestrator for VS Code. Run Claude Code, Codex, and other agent CL···
