
Voyager Repo
io.github.dir-ai由 GitHub 账号 dir-ai 发布v0.7.0更新于 Oct 24, 2026
An AI agent's safe read-only scout to orient in an unknown repository before touching it.
概览
只读的仓库侦察工具,帮助 AI 助手在陌生代码库中快速定位,输出关于用途、结构、构建、健康度、依赖与风险的结构化简报。
- 可以做什么
- 侦察仓库并生成定位简报:推断用途、语言、关键目录与入口点。
- 识别安装、构建、测试与运行命令,但不会实际执行。
- 报告 git 健康信号,如提交数、巴士因子、近期活跃度与改动热点。
- 标记风险,包括安装钩子、已提交的密钥、缺失的锁文件与大型不透明二进制文件。
- 可选地通过 Voyager 对限定数量的依赖做经 OSV 校验的评估。
- 最后给出有序的推进计划,并遵守仓库中 Repotector 的活跃区域与租约。
- 适用场景
- 适合在助手即将进入一个从未接触过的代码库时,先了解其布局、构建步骤、维护者分布与潜在风险。适用于谨慎的上手与改动前评估,而非实际开发或执行代码。
- 运行要求
- 以本地进程运行,通过 npx 从 npm 包 @dir-ai/voyager-repo 启动(需要 Node.js),或使用 mcp 子命令。仅限桌面端;未声明认证、环境变量或请求头。依赖评估需配合 Voyager。
安装
在 SourceWeft 中
- 打开 控制台中的 Voyager Repo,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
voyager-repo
Voyager's repo-penetration organ — the eyes an AI agent sends ahead before it touches an unknown repository.
Voyager penetrates the web (@dir-ai/voyager),
the repo (this), and — next — networks. Repotector is the repo's guardian
that receives and controls; Voyager Repo is the agent's counterpart that reaches
outward and reports back, safely.
What it does
Like how Claude or Codex orient themselves in a new codebase — but as a safe,
repeatable tool. scout produces an orientation brief:
- purpose — inferred from the manifest/README, framed as untrusted (owner text is injection-stripped before it reaches your model)
- structure — languages, key dirs (with role guesses), entrypoints
- build — the install/build/test/run commands (detected, never run)
- health — git signals: commit count, bus factor (top-author share), recency, churn hotspots
- dependencies — composes with Voyager to give each dependency a real
OSV-gated verdict (
--check-deps N) - risks — install hooks (RCE on
npm install), committed secrets, missing lockfile, large opaque binaries - approach plan — see below
The approach protocol (the point)
A careful newcomer, not a bulldozer:
- Handshake with Repotector if the repo carries one (
.repotector/) — read its active zones/leases and respect them before editing. - Fail-closed permissions. Everything is read-only by default. Installing
dependencies, executing code, or cloning a remote is withheld until you
consent (
--allow-install/--allow-exec/--allow-clone) — and execution, when allowed, belongs in a sandbox. - An orderly tour — the brief ends with the ordered next steps a well-behaved agent should take, so it explores on purpose instead of poking at random.
Guarantees
- Nothing in the target is executed on the host.
scoutreads files and git; it never runs the repo's code. (Execution, when consented, runs in Voyager's hardened container.) - Every owner-controlled byte is untrusted — README, description, commit messages, the Repotector ledger — injection-stripped and framed before your model sees it.
- Exit codes:
0oriented ·1oriented + HIGH-risk finding(s) ·2tool error.
MCP
Tool: scout_repo — same orientation, safe-by-default (invasive flags off).
Library
Status
0.x — Phase 1 (repo orientation) of the Voyager "senses" line. Roadmap:
capability analysis of a package's tarball, PyPI/cargo/go dependency vetting,
and the net organ (cloud/infra introspection).
License
MIT
来源:README.md,提交 b760ece
工具
0版本历史
1- v0.7.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
