Skip to main content

RepoPilot

RepoPilot 是面向代码仓库的 CLI Agent。它通过原生 Tool Calling 读取与修改代码,维护 Plan,执行验证,并保存可检查、可恢复的运行产物。正常完成需要验证证据;隐藏测试通过和 Agent 正常结束是分别报告的结果。

RepoPilot 版本为 repopilot.__version__;发行名称为 repopilot-runtime,CLI 和 Python 导入为 repopilot。发行包通过 GitHub Releases 提供;PyPI 发布状态见 发行记录。项目基于固定的 mini-SWE-agent v2.4.6,保留 minisweagent 包及上游入口。来源、原始 commit 和 MIT 许可见 UPSTREAM.md 与 LICENSE.md。

安装

需要 Python 3.10+、Git 和 ripgrep(rg);Docker 运行另需可用的 daemon 和镜像。Ubuntu/WSL 可通过 sudo apt-get install git ripgrep 安装命令行依赖。从 checkout 安装:

python -m venv .venv
source .venv/bin/activate
python -m pip install .
repopilot --version
repopilot --help

开发环境可安装 python -m pip install -e '.[test]'。本地发行验证使用 python -m build,再将 dist/repopilot_runtime-*.whl 安装到干净 venv;发行决策与验证 记录具体命令。

配置与首次运行

模型服务需支持 OpenAI-compatible native Tool Calling。在未提交的 .env 中配置:

REPOPILOT_MODEL=openai/your-model
REPOPILOT_API_KEY=your-key
REPOPILOT_BASE_URL=https://your-provider.example/v1

doctor 只检查本地配置与依赖,不请求模型。Local 环境直接在目标仓库运行命令:

repopilot doctor --env-file .env
repopilot run /path/to/repository \
  --task "Fix the parser failure and rerun its tests." \
  --env-file .env --environment local --state-dir ./agent-runs

Docker 环境先准备镜像:

docker build -t repopilot-benchmark:local -f docker/benchmark/Dockerfile .
repopilot run /path/to/repository --task "Fix the failing tests." \
  --env-file .env --environment docker --image repopilot-benchmark:local \
  --state-dir ./agent-runs

运行参数包括步骤、时间、tokens、费用和 Recovery 限额;见 repopilot run --help。容器代理配置见 benchmark 操作说明。CLI 输出 Run ID、状态和产物目录。

检查、审批与恢复

repopilot inspect RUN_ID --state-dir ./agent-runs
repopilot inspect RUN_ID --state-dir ./agent-runs --json
repopilot resume RUN_ID --state-dir ./agent-runs --env-file .env

只有可恢复状态支持 resume,目标仓库必须匹配保存的状态。审批等待使用 approve / reject;具体参数见 审批说明。恢复未知执行结果时不会重放可能修改文件的调用。

每次运行保存 metadata、Checkpoint、Trace、Plan、patch、验证和报告。schema 3 的大文本保存在同目录 objects/,备份与移动时保留完整目录。详见 产物检查 与 保存格式和性能。

能力与证据

内置 benchmark 有 30 个固定任务,使用隔离的 host verifier;baseline 与 RepoPilot 可对照运行。repository_pass、task_pass 和正常终止分别记录,未知 usage/cost 保留 null。

默认 CI 运行无凭据核心回归,Docker 和文档检查独立运行。真实模型调用需要显式选择模型并执行付费命令;离线检查不会自动调用服务。

Metadata

Release files for repopilot-runtime 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for repopilot-runtime 0.1.0
File Size Uploaded
repopilot_runtime-0.1.0.tar.gz 210.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for repopilot-runtime 0.1.0
File Interpreter ABI Platform
repopilot_runtime-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 551.9 kB

Release files / repopilot_runtime-0.1.0.tar.gz

Download URL repopilot_runtime-0.1.0.tar.gz
Size 210.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3d99d0ebb96f944b8ee8146557f27941cb7355bc5a5967563b3f98d00207747a
BLAKE2b-256 checksum
How to use checksums
8d7f581ceb326a1605ebd7f8c206d007c32b2cb6f55e22b0ce22c1d0626d946a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / repopilot_runtime-0.1.0-py3-none-any.whl

Download URL repopilot_runtime-0.1.0-py3-none-any.whl
Size 341.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04842e68d43eea71e23dcc29d94c002a0a61b3edeea73fa7ed23511525615bd2
BLAKE2b-256 checksum
How to use checksums
83f421290867879ecd9098b37eaf04c9ddf97699ce513868c1647618d508e8ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page