You are viewing docs for v0.8.0 — see the latest release.
// docs/security-model.md docs online

Security model

This page describes how vincent is designed to behave. To report a vulnerability, use private security advisories — see SECURITY.md.

[!WARNING] Agents run full-auto by default, which means an agent can execute arbitrary commands as you. That is a documented design decision, not a bug: unattended orchestration is the point of the tool. Everything below explains exactly what that buys and what it costs.


The trust boundary is the OS user

Everything vincent does, it does as you. There are no accounts, no roles and no privilege separation inside vincent, because there is nothing meaningful to separate: an agent it launches has your privileges, your agent-CLI logins and your git identity.

That is why the service registration is per-user on every platform and needs no elevation anywhere — a machine-wide service would run agents as a system account, with more privilege and none of your credentials, which is strictly worse in both directions.

Full-auto is the headline risk

In full-auto, permission prompts are bypassed at the CLI level. The adapter switches are:

Adapter Full-auto switch
claude --dangerously-skip-permissions
codex --dangerously-bypass-approvals-and-sandbox
cursor --force

All three are equivalent in blast radius. Cursor’s reads mildest and is not. An agent in full-auto can read your home directory, use your credentials, and reach the network — it is not confined to the worktree.

What limits the damage, and what does not:

Mitigation Real
Nothing is pushed, merged or deployed unless a workflow step does it ✅ — put a manual gate in front of any such step
Everything is transcripted: every prompt, tool call and command ✅ — and when it cannot be, the step fails rather than passing (see below)
Any step can run permission_mode: restricted ✅ — see below
The git worktree ⚠️ collision isolation, not security isolation
Running under a service ❌ changes nothing — it is still you

“Everything is transcripted” is a promise about completeness, not about durability. A transcript vincent could not finish writing does not quietly become a shorter transcript: a failed write, encode or close fails the attempt with transcript_io_error, and a stream an adapter could not read to the end fails it with agent_protocol_error. Output too long for one record is split across partial records rather than dropped, so length alone never costs you evidence; only transcript_max_bytes deliberately stops a runaway, and it says so in the file. What is not promised: vincent writes and closes the file and checks both, but does not fsync per line, so a host that loses power can still lose the tail of a transcript. See spec §12.2.

The TUI shows this warning once, on first run. The acknowledgment persists in {data_dir}/tui.json and is written when the notice is dismissed, never when it is shown, so quitting two seconds in does not bury it. Any failure reading or writing that file shows the notice again — a security warning that suppresses itself because a parse failed has failed in the wrong direction.

What the worktree does and does not isolate

Every task runs in its own git worktree on its own branch.

Does: keep two tasks in the same repository from colliding; keep your own checkout, current branch and stash untouched; make every change reviewable as a real git diff before anything is pushed.

Does not: confine the process. The worktree is a directory, not a sandbox. A full-auto agent’s cwd is the worktree; its reach is your whole account.

Command steps and checks are the same story: they execute user-authored workflow content at the same trust level as your own shell. No additional sandboxing is attempted or implied.

Workflow files are read at registration and on reload, not when you run one. Adding a project puts every *.yaml in its .vincent/workflows/ in front of the parser right away, and the daemon re-reads them whenever they change — before anybody picks a workflow. Cataloguing is therefore bounded (spec §5.2): only regular files are sourced, so a symlink, FIFO, socket or device named *.yaml is rejected without being opened or followed, and a source is capped at 1 MiB. A rejected file is listed as an invalid entry naming the path and the reason; its valid siblings stay available. The same 1 MiB bound applies to a source posted to POST /v1/workflows/validate, so the API is not a way around it. What the parsed content is then allowed to do is unchanged — a command step is still a shell command.

What the container does and does not isolate

Set container.image and a task’s step processes run inside one container, created with the task’s worktree and removed with it. It is the first thing vincent offers that confines a task’s work beyond the worktree, and it is worth being exact about how far it goes.

Start with what it does not cover yet. Today the container holds every command step and every check:. The agent process itself still runs on the host, with your whole home directory and filesystem in reach — the launch seam that moves it is the next piece of this work. Do not read a containerized task as a sandboxed agent until that lands.

Does: confine the filesystem to two bind mounts — the project repository and the task’s worktree, each at its own absolute path — plus whatever you list in extra_mounts. The rest of your home directory, your SSH keys, your other repositories and your system are not there. The shell and the tooling are the image’s, not your machine’s.

Does not:

  • Close the network. Outbound traffic is on by default. container.network: false closes it, and is refused together with mcp.wire_steps: true because a container with no network cannot reach the daemon.
  • Withhold your agent credentials. mount_agent_config is on by default and bind-mounts ~/.claude, ~/.codex and ~/.cursor into the container read-write, because subscription auth takes no key from the environment and cursor writes its model choice back to its own config. Anything running inside the container can read those credentials and write to those directories. Turning the knob off is supported; an agent CLI that then cannot log in is the consequence, not a bug.
  • Raise a privilege boundary. On a Linux host every step execs as your own uid and gid, so files land owned correctly — and so an escape lands as the same user the daemon already runs as.

Containerization and permission_mode are separate axes and compose: restricted in a container is still restricted, full-auto in a container is still full-auto with the container’s reach. There is no contained permission mode.

A Windows daemon refuses a containerized task outright rather than translating paths, and the runtime is only ever docker-compatible; see the configuration reference for both.

Restricted mode

permission_mode: restricted maps each adapter onto its own confinement:

Adapter Restricted means Platforms
claude Allowlist flags with an edit/read/git/test tool set all
codex --sandbox workspace-write — writes confined to the worktree all
cursor --sandbox enabled macOS and Linux only

Two properties matter more than the mechanism:

An adapter that cannot restrict on your platform never runs the step. It never downgrades. Vincent refuses to create a task whose restricted step resolves to cursor on Windows, answering 400 and naming the step and the agent — a fact about the adapter and the OS, so it holds even where the CLI is not installed. A task that reaches the engine anyway blocks with restricted_unsupported, under the normal retry policy. Falling back to full-auto was rejected outright: it would run wide-open a step that explicitly asked not to be, converting a safety choice into its opposite on exactly one OS — the failure mode nobody would think to check for.

Denied actions can become questions. On an input-capable adapter (claude), a denied action surfaces as a permission request and the task waits for you — subject to on_input. Set on_input: deny and vincent denies them automatically, keeping the run strictly unattended.

It bounds the filesystem and the shell, not what the step does to vincent. A step wired to vincent’s own MCP server — the default — keeps those tools under restricted: claude’s allow-list carries mcp__vincent__* in full, so a restricted step can create, cancel and archive vincent tasks. The alternative was worse in both directions: the step would have been offered the whole vincent tool list and denied every call, which is a tool list that lies. If you want a step that cannot reach vincent either, turn the wiring off with mcp.wire_steps: false — per daemon, not per step.

Use restricted for steps that have no business running commands: a docs pass, a review, a summarization step. See Writing workflows.

What an agent writes cannot drive your terminal

Every record the output pane draws — assistant prose, a tool result, a command’s output, an error — is stripped of ANSI escape sequences and of C0/C1 control characters before it is measured or drawn, newline and tab excepted. An agent that emits ESC[2J or an OSC title sequence, or that echoes a file containing one, cannot clear your screen, move the cursor, rewrite the window title or overwrite adjacent UI. Only vincent’s own styles are emitted.

The same holds for the Markdown rendering of assistant prose: it is a fixed subset drawn with vincent’s own glyphs, and raw HTML is rendered as the characters the agent sent — never parsed, fetched or executed. The rendered/raw toggle is bound by it too: raw mode shows the agent’s bytes as Markdown source, not as terminal input.

It holds on the way out as well. What the copy actions put on the clipboard is stripped on the same terms as what is drawn, so “copy the original Markdown” means the stored Markdown minus escape sequences and C0/C1 controls. A clipboard is pasted into a terminal, which is precisely the boundary this rule exists to hold.

Links and images in that prose are text and nothing more. A link’s label is prose and its destination is printed literally, whatever its scheme, in a numbered reference list at the end of the message; an image is its alt text plus its printed source. vincent emits no OSC 8 hyperlink and the pane opens nothing, so a javascript: or file: destination an agent wrote is something you can read and copy but not something the terminal can be made to act on. No remote image is ever fetched — there is no fetch in that path to disable. Syntax highlighting in fenced code adds colour and never characters: strip the styling and the block is byte-for-byte what the agent sent.

The API surface

  • Loopback only. listen: is validated to a loopback host; anything else is rejected at config load.
  • Bearer token on every request, read from {data_dir}/token, created 0600. On Windows it relies on the per-user ACL that %LOCALAPPDATA% inherits. Compared in constant time.
  • CORS is disabled, which together with the token blocks drive-by requests from a browser tab.
  • No TLS, deliberately: the socket is loopback and the token is the authenticator. There is nothing on the wire that does not already require local account access to reach.
  • GET /v1/health is the single endpoint that requires no credential at all.
  • POST /mcp is the same surface, not a second one. The MCP server rides the same loopback listener, the same bearer token and the same recover → log → auth chain, and a tool call is dispatched by replaying it against the same handler /v1 uses — so it grants exactly what the token already granted. Five destructive-admin routes are deliberately not tools (daemon/stop, daemon/backup, DELETE /v1/projects/{id}, maintenance/gc, doctor/fix): an agent must not be able to stop, back up, garbage-collect or reconfigure the daemon supervising it. That is a design line, not a privilege boundary — the token still reaches those routes on /v1.
  • POST /mcp/step/{run_id} is not a security boundary, and is stated here in those words. The daemon wires each agent step to a per-step endpoint that authenticates a secret minted for that one step run instead of the daemon token. It exists so vincent knows which step is calling — enough to refuse a wait that would deadlock, and to record which task created which — not to confine the step. A full-auto agent can read {data_dir}/token off disk and reach /mcp directly, which is the same conclusion as everywhere else on this page: the boundary is the OS user.
  • POST /v1/daemon/backup writes a file at a path the caller names, as the daemon’s user, anywhere that user can write. That is stated here rather than left to be discovered — but it is not an additional grant: the same token already starts agents that run full-auto as that user (above), which is a strictly larger capability. The endpoint refuses a relative path, refuses to overwrite an existing file, and refuses a destination inside {data_dir}/transcripts.

Anyone who can read your token file can drive your daemon — which, on a machine where they are already you, is not an additional grant. On a shared machine, it is the boundary that matters.

Credentials

Vincent has no credential store of its own. No vendor API keys, no OAuth flow, no keychain entries. An agent step spawns the CLI you installed, which authenticates however it already does.

That is a statement about vincent’s credentials, not about yours. Two files vincent owns can hold sensitive data because you put it there:

  • {config_dir}/config.yaml, through environment.set, whose values are literal — an API token, a proxy credential or a license key written there is plaintext on disk. The file is created 0600 inside a 0700 directory, and every daemon start re-tightens both on POSIX (contents untouched) and says in the log what it changed. vincent doctor reports a broad mode with the exact chmod. On Windows the per-user ACL of %APPDATA% applies instead.
  • Transcripts, which record what your agent and commands actually printed. They are 0600 for the same reason.

environment.set is not a secret store — nothing is encrypted, and the file is one you may sync between machines. Prefer naming a variable under environment.inherit and letting the value come from the environment that starts the daemon.

The token file gates only vincent’s own API. It is not an agent credential and grants no model access.

One consequence worth stating plainly: vincent cannot reduce what your agent CLI is allowed to do at the vendor. It can only choose which permission switch to pass.

What vincent writes outside its own directories

Three things, and they are recorded here rather than discovered:

A cursor step passes --model, and cursor persists that selection to ~/.cursor/cli-config.json. Vincent always passes one (defaulting to auto) because leaving it unset would mean “whatever the last invocation chose”, possibly a previous vincent step — and determinism is worth more to an orchestrator than preserving an interactive preference.

It is not a secret and not an escalation, but it does mean a cursor step overwrites the model you last picked in an interactive cursor-agent session.

The daemon view’s i writes statusLine.command in ~/.claude/settings.json, which is the only way Claude Code’s usage windows reach vincent at all — it has no endpoint to poll, and reading the OAuth token out of ~/.claude/.credentials.json is refused as state-file parsing. Every property that makes the cursor case above tolerable is held here deliberately:

  • User-initiated. It happens when you press that key, never on daemon start, never silently, and never as a side effect of running a task. Starting a daemon leaves the file untouched, and a test asserts that rather than assuming it.
  • Shown first. The exact JSON is displayed before anything is written.
  • Reversible. The statusLine object vincent displaces is carried, base64 encoded, in the command it installs, so pressing the same key puts back what was there — including removing the key when there was nothing.
  • No token on disk. What is installed is the vincent binary (vincent statusline) rather than a shell script, precisely so the daemon’s bearer token is discovered the way every other subcommand discovers it instead of being written into a file another tool runs.

The route it posts to, POST /v1/agents/{name}/quota, is not an MCP tool: an agent must not be able to forge a daemon-level fact about the host it runs on.

vincent update replaces the vincent binary, which is by definition outside vincent’s own directories. It happens only when you run that command, only when vincent — not a package manager — owns the binary, and only after the download is verified: the cosign signature over checksums.txt against the project’s pinned identity and issuer, then the archive’s SHA-256 against that verified file. On any mismatch nothing is replaced and the old binary is left byte-identical. Without cosign on your PATH the checksum check runs alone and the command says so; pass --require-signature to refuse in that case. On Windows a running executable cannot be overwritten, so the old one is renamed to <name>.vincent-old beside it and deleted on the daemon’s next start.

The check for a newer release is separate and writes nothing: it is one unauthenticated GET sending no token, no telemetry and no machine or install identifier, and update.check: false switches it off entirely. The daemon never downloads or applies anything.

Everything else vincent writes lives in its config and data directories, plus the git branches and worktrees it creates in your repositories — and the one file you name yourself when you run vincent daemon backup.

One write leaves the machine, and only when you ask for it: opening a pull request pushes a task’s branch to origin and creates the pull request, using the same gh login or GITHUB_TOKEN/GH_TOKEN the read side uses. It never force-pushes, it sends committed work only, it is not an MCP tool so an agent cannot reach it, and github.enabled: false turns it off with every read.

One of those worktree files carries a token. To give a cursor step vincent’s own tools — cursor has no per-run MCP flag — the adapter writes .cursor/mcp.json into the task worktree for the duration of the run, holding the step’s bearer token. It is created 0600 inside a 0700 .cursor/, removed when the step ends, and swept on the next daemon start if a crash left it behind. Your global ~/.cursor/mcp.json is never read or written. While the step runs, the file is an untracked file in a git worktree: it appears in git status and in the task diff, so do not commit it. That token authorizes what the daemon token already authorizes, from a machine where the agent could have read the daemon token anyway.

A backup archive is sensitive. It carries every transcript, which means every rendered prompt and everything the agents did, plus your config.yaml. It does not carry the API token. Treat the file the way you would treat the data directory it came from.

The notify hook runs your code

notify.command in config.yaml is a program the daemon runs, as you, whenever a task enters a state you listed. It is the same trust level as everything else on this page — an agent step already runs arbitrary commands as you — but it is worth stating rather than leaving implicit:

  • Nothing from a task, an agent or the API reaches its argv. It is exactly what the owner of config.yaml wrote, and it is argv, never a shell string on every platform, so a task title cannot be interpreted as a command.
  • Its argv can hold a secret. A webhook URL with a token in it is the obvious case. That is a second reason config.yaml and its directory are owner-only. It is served on GET /v1/config, values included, and so is environment.set: that endpoint is loopback-only behind a bearer token read out of an owner-only file, which is the same boundary the file itself has, so a client that can call it can already read the file. What that boundary does not cover is an MCP tool result — it lands in an agent’s context and in the step’s transcript — so the MCP rendering of that route masks notify.command’s argv and environment.set’s values, keeping the variable names. The daemon’s log and step transcripts still carry variable names and never values; that rule is unchanged.
  • PATCH /v1/config can change what the daemon executes. notify.command, agents.*.path and environment are all writable through the API, and so is listen. This is not a new privilege — anyone who can call the endpoint holds the daemon’s token and can already run an agent step as you — but it is why the route is not an MCP tool, and why the TUI puts those four keys behind an explicit confirmation.
  • Whatever your notifier does with the envelope is outside vincent. The envelope carries the task title and the agent’s question summary, so a hook that posts to a shared channel publishes both.

It is off unless you configure it. See notify.

Tightening it

In rough order of value:

  1. Gate anything that leaves the machine. A manual step in front of every push, publish, deploy or delete. This is the single highest-leverage control.
  2. Use restricted where the step does not need commands. Docs, reviews, summaries.
  3. Point vincent at repositories you would hand to a new contributor. That is the right calibration for full-auto.
  4. Read the diff before approving. The Diff tab exists for this; the gate exists so you have a moment to use it.
  5. Cap concurrency. max_parallel_tasks bounds how much can be happening without you, and max_parallel_chats bounds the chats running beside it — they are independent, so the ceiling on live agent processes is their sum.
  6. Turn on debug: true when a run surprises you. It records the resolved settings and full argv of every step in its transcript.
  7. Prefer per-project scoped workflows (.vincent/workflows/) so a repository’s automation is reviewed with the repository.

What is not in scope

Stated so you do not assume otherwise:

  • Sandboxing the agent beyond what its own CLI offers. Vincent passes the switch; it does not build a jail.
  • Multi-user or multi-tenant operation. One OS user, one daemon.
  • Protecting you from your own workflow files. A command step is a shell command.
  • Secret redaction in transcripts. A transcript records the rendered prompt and everything the agent did. Read one before pasting it into an issue.
  • Remote access. There is no remote binding, and adding one would need a different auth story than a loopback token.

See also