voyager-agent
MCP server that runs a unified mission across multiple read-only senses (repo, net, browser) and returns a claim graph with verdicts, contradictions, and next-step probes.
README
@dir-ai/voyager-agent
The one universal Voyager. A thin, model-independent orchestrator that turns
the modular Voyager senses — voyager-repo (code), voyager-net (hosts), and
the cognitive contract that binds them — into a single agent. You name a goal;
Voyager activates the senses it needs, runs a live mission, links the
evidence into one graph, and concludes.
It is composition, not a monolith. The agent never absorbs the senses — it
calls the published organs and adapts what they see into the shared
CognitiveClaim
substrate. The reasoning model is a swappable seam (Brain); a rule-based
brain ships so it runs with no LLM at all.
Sensing is autonomous. Acting is not. Every sense here is read-only. Any remediation a mission surfaces is carried as a consent-gated, withheld action and is never applied by this orchestrator.
Install
npm i -g @dir-ai/voyager-agent
Use
# Orient in a repo and flag risk (voyager-repo)
voyager-agent mission "audit this project" --repo .
# Audit ONE host you own (voyager-net — fail-closed, needs --authorized)
voyager-agent mission "check my server's exposure" --host example.com --authorized
# Observe a live page (voyager-browser — read-only, static HTML)
voyager-agent mission "check my landing page" --url https://example.com
# All three senses in one mission; vet 10 dependencies; machine-readable
voyager-agent mission "full audit" --repo . --host example.com --authorized --url https://example.com --check-deps 10 --json
Senses fan out in parallel and are resilient: a sense that errors (or even throws) becomes a low-confidence, flagged observation — it never crashes the mission or discards a sibling sense's good result.
The mission then re-plans: it picks the single most informative next probe
(by information gain) and executes it, bounded by maxRounds. How a probe is
executed is an injectable dispatch seam (the model decides); the safe default
only ever re-reads (deepens repo dependency-vetting) and never acts. A verify
claim closes the mission so state().satisfied is meaningful.
Voyager — one agent, one entry.
goal: "orient in this repo and flag risk"
👁 observe [repo] (70% · moderate)
@dir-ai/voyager-agent@0.1.0 — The one universal Voyager…
↳ [low] no-lockfile: no lockfile — installed versions are not pinned/reproducible
🧠 infer [memory] (70% · moderate)
repo observed; 0 high/critical signal(s). No high-severity issue surfaced.
next probe: [repo] open src/index.ts
As an MCP server
One tool, run_mission — describe a goal, get back the full claim graph.
voyager-agent mcp # stdio
{
"command": "voyager-agent",
"args": ["mcp"]
}
As a library
import { runMission, DeterministicBrain, type Brain } from '@dir-ai/voyager-agent'
const { mission } = await runMission(
'audit this repo and my host',
{ repoPath: '.', host: 'example.com', authorized: true /* your own host */ },
Date.now(),
)
for (const claim of mission.allClaims()) console.log(claim.operation, claim.sense, claim.verdict)
console.log(mission.state().bestNextProbe) // the most informative next step
console.log(mission.state().contradictions) // where two senses disagree
Bring your own model
The Brain interface is the whole point — it's where an LLM plugs in without
touching the senses, the memory, or the mission machinery. A ready-made
LlmBrain ships: give it one model-agnostic complete() function and it
plans and synthesizes through the model. Wire Claude, a local server, or any
OpenAI-compatible endpoint — Voyager never depends on a specific SDK.
import { runMission, LlmBrain } from '@dir-ai/voyager-agent'
const brain = new LlmBrain({
// Return the model's text for these messages — that's the whole dependency.
async complete(messages) {
const res = await myModel.chat(messages) // Claude, local, OpenAI-compatible…
return res.text
},
})
await runMission('audit this repo and my host', { repoPath: '.', brain }, Date.now())
LlmBrain is fail-safe: if the model errors or returns unparseable output,
it degrades to the built-in rule-based brain for that step — a bad completion
can never take a mission down, only make it less clever once. You can also
implement the Brain interface directly for full control.
How it works
intent ─▶ Brain.decompose ─▶ goals
│
┌─────────────┼───────────────┐
▼ ▼ ▼
voyager-repo voyager-net (more senses…)
scout() scan()
│ │
▼ ▼
adapters: brief ─▶ CognitiveClaim
│ │
└──────▶ MissionGraph ◀───────┘
(contradictions, causal chain,
best-next-probe, memory)
│
▼
Brain.synthesize ─▶ conclusion
Each sense produces a CognitiveClaim; the
MissionGraph links
them — auto-detecting cross-sense contradictions, assembling the causal
chain, and surfacing the single most informative next probe by information
gain. A sense error becomes a low-confidence observe claim flagged with the
unknown — never a false "all clear".
The Voyager family
| Package | Sense | What it does |
|---|---|---|
@dir-ai/voyager |
web | verified-internet retrieval, OSV-gated |
@dir-ai/voyager-repo |
code | orient in a repository, vet dependencies |
@dir-ai/voyager-net |
hosts | authorized, read-only host audit |
@dir-ai/voyager-contract |
— | the cognitive contract the senses speak |
@dir-ai/voyager-agent |
all | the one agent that composes them |
Safety
- Read-only senses. Nothing is installed, executed, or mutated on your systems.
- Fail-closed host audit. A host is only scanned with
--authorized/authorized: true; single host only (no ranges/URLs), cloud-metadata blocked. - Consent-gated action. Remediation is described and withheld, surfaced as an
unknownon the claim — this orchestrator never applies it. - Honest uncertainty. Confidence and
strengthare explicit; a sense error is a flagged unknown, not a clean verdict.
License
MIT © dir-ai
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。