One universal Voyager: name a goal; it activates senses (repo, net) and runs a live mission.
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.
npm i -g @dir-ai/voyager-agent
# 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
One tool, run_mission — describe a goal, get back the full claim graph.
voyager-agent mcp # stdio
{
"command": "voyager-agent",
"args": ["mcp"]
}
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
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.
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".
| 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 |
--authorized / authorized: true; single host only (no ranges/URLs), cloud-metadata blocked.unknown on the claim — this orchestrator never applies it.strength are explicit; a sense error is a flagged unknown, not a clean verdict.MIT © dir-ai
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y @dir-ai/voyager-agentMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-dir-ai-voyager-agent": {
"command": "npx",
"args": [
"-y",
"@dir-ai/voyager-agent"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup reference@dir-ai/voyager-agentnpmio.github.dir-ai/voyager-agent works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.