RepoStrata
让人和 Agent 都能读懂代码仓库的变化。
AI 持续修改代码后,人需要知道改了什么、有哪些值得检查的地方;Agent 需要可追溯的变更事实,减少重复翻阅历史和源码。RepoStrata 以指定分支的 Git 历史为依据,提供两个入口:
| 入口 | 使用方式 | 当前状态 |
|---|---|---|
| 人类阅读 | 变化故事 → 前后行为图 → 代码证据 | 保留完整文件清单、范围选择、提交过程与阅读位置 |
| Agent 查询 | MCP 读取共享分析,再按需核对证据 | 已提供 AI 结论、成立条件、未知项、分页与证据 ID;兼容事实和符号查询 |
两个入口共享同一份变化分析记录:指定分支和起止提交后,把范围内全部可读取文本差异分块分析并复核。后台默认并发处理 3 个批次,每批完成即保存并展示;关闭页面后继续运行,服务停止后可从检查点续跑。材料完全一致的批次支持跨范围复用,引用重新绑定到当前提交。Agent 分页读取同一结果,读取不调用模型。
结论保留成立条件、未知项和固定提交证据。AI 复核不等于人工确认;未配置模型时仍可使用完整文件清单、源码对比与静态解析结果。
开始使用
需要 Python 3.11+。安装后,在目标仓库上选择一条分支:
pipx install "repostrata[parsing]"
repostrata init --repo /path/to/repo
repostrata index --repo /path/to/repo --branch main
repostrata dashboard --repo /path/to/repo
打开 http://127.0.0.1:8765 阅读变化。一个索引只分析一条分支的第一父提交链;切换分析分支会重建索引,不会切换 Git 工作目录。未提交修改不在历史分析范围内。
首次可直接在页面选择分支并分析。阅读范围支持接着上次看、最近 5 / 20 次、单次提交、全部历史和自定义起终点。点击“AI 设置”可保存兼容 Chat Completions 的完整地址、模型和 API Key 到本机,重启后自动加载;只有主动开始分析才发送代码。
源码开发时需构建 web/dist/ 才能提供新版页面,见开发说明。
给 Agent 使用
repostrata codex install
repostrata codex doctor
保持本地 Dashboard 服务运行,重启 Codex 后使用插件工具。现有工具清单、限制和推荐查询顺序见 Agent 使用说明。
文档
- 人类阅读指南:分支、范围、证据和阅读位置。
- Agent 使用说明:同源分析、范围事实、精确证据和预算。
- 产品定位与边界:两个入口、已实现能力与后续方向。
- 升级指南:从 0.4.x 升级、索引和插件迁移。
- 开发说明:构建、测试和核心代码入口。
- 文档索引:当前指南、可选实验和历史设计。
能力边界
Git 文件差异不依赖语言解析;Python、JavaScript、TypeScript、TSX 支持部分符号和静态关系。故事来自已复核结论,不保证穷尽所有功能变化;文件调查按目录组织。行为图表示前后描述对比,静态调用和共同修改只提供调查线索。完整性以片段进度及明确排除的文件为准,不以故事数量衡量。详见阅读指南。
Metadata
Release files for repostrata 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| repostrata-0.5.1.tar.gz | 710.5 kB | With provenance | Details for repostrata-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| repostrata-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for repostrata-0.5.1-py3-none-any.whl |
Total release size: 1.0 MB
Release files / repostrata-0.5.1.tar.gz
| Download URL | repostrata-0.5.1.tar.gz |
|---|---|
| Size | 710.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
063992f41f983e0f87e3d66b6557179cb825a2632cbc48d4dd62bdeab8dc264f
|
|
BLAKE2b-256 checksum How to use checksums |
9db7ced5ad406b621fcf5378202a750c12695f556e666609dfb1e58e04990a57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logRelease files / repostrata-0.5.1-py3-none-any.whl
| Download URL | repostrata-0.5.1-py3-none-any.whl |
|---|---|
| Size | 323.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
673f375dd895d057750830072b8e29a44432554ca7feea3909c202ae6669c4ae
|
|
BLAKE2b-256 checksum How to use checksums |
0319681ddd03a5b7c4b461780736822fcaa993c41e3a3126ec3f971a019d36c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logSecurity for repostrata 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for repostrata-0.5.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.