fleetremote AI, safely

Hand real tasks to an AI without trusting it.

fleet triggers an agent from the tools your team already uses — Jira or a GitHub /agent PR comment — works inside a locked-down sandbox on your own hardware, and delivers a change as an ordinary pull request for human review.

The agent never holds a GitHub token, never gets open network access, and cannot widen its own permissions.

No GitHub token for the agent Fail-closed sandbox Human-reviewed delivery
fleetctl · bounded run loop
$ fleetctl run
→ normalize task received
→ resolve project → repo, from policy
→ plan sandbox and caps from the registry
→ setup ready
→ agent working · no github token
→ verify passed
→ publish pull request opened
awaiting human review
0
GitHub tokens given to agents
PR-only
Delivery channel
Fail-closed
COI & native runners

the path of every task

webhookpanel ingestjenkins gwtnormalizeresolvecloneplansetupagentverifypublish

A fail in verify triggers a bounded retry; delivery only ever happens through a pull request.

threat model

What it defends against

Every risk maps to a concrete, centrally-controlled mitigation — no trust required in the agent or the repo.

Prompt injection

An issue, PR comment, or repo file weaponizes the agent → it runs in a disposable sandbox with only the task repo mounted. Tokens and host are out of reach, and every change is still a human-reviewed PR.

Malicious repo

Egress is an allowlist, and COI domains/caps come from the trusted registry — never the repo. Untrusted repos get a hardened profile by default.

Repo widens its own sandbox

A repo manifest may request policy but can never exceed central coi caps or the domain allowlist. The gate fails closed.

Compromised agent

The agent gets no GitHub token. A separate trusted publisher stage uses a scoped token to commit and push only to the task branch.

Bare-metal escape

Native runs are fail-closed: an OS sandbox (Seatbelt/PF, Windows wrapper) plus explicit repo and node allowlists — or they do not run.

Forged webhooks

Webhooks are token-authenticated. PR-comment triggers are restricted by author association/allowlist and only ever update an existing PR branch.

Runaway activity

A bounded setup → agent → verify loop with timeouts and registry caps. Every run is recorded in the ledger and ingest log; delivery is only via PR.

built on established tooling

Standing on the shoulders of giants

fleet is deliberately glue, not a new platform. It composes tools you already run and can inspect.

There is no bespoke container runtime, secret store, or agent protocol. Routing is a versioned YAML registry, per-repo behavior is a declarative .fleet/ contract, and the same fleetctl commands run on a laptop and in CI.

control plane

Jenkins

Webhook ingress (Generic Webhook Trigger), node routing, and per-run credential binding.

linux sandbox

Incus + COI

Containers-on-Incus, plus native Seatbelt/PF and Windows wrappers for allowlisted bare-metal nodes.

delivery

Git + gh CLI

Checkout, scoped pushes, and pull requests — with no bespoke VCS layer.

the worker

Headless agents

Existing CLI agents (claude, codex, opencode, …), each given only the LLM key it needs.

dispatcher core

Python fleetctl

Stdlib-first, dependency-light, unit-testable and runnable outside Jenkins.

admin panel

Phoenix LiveView

Run ledger, ingest log, manual trigger, and GitOps config PRs in real time.

architecture

Dependencies and trust boundaries

How the pieces depend on each other, and where credentials cross — or never cross.

Isolated sandbox · COI / nativefail-closed · allowlisted egresswebhookforwardstarts stagesruns the loopon verify passdead droppush · open PRread tokenLLM keywrite tokenSendersJira · GitHub · LinearAdmin panelingest · ledgerJenkins controllertrigger · routing · credentialsfleetctlnormalize · resolve · plan · runAgentclaude · codex · opencodeholds no GitHub tokenTrusted publisherpush · gh pr createGitHubrepo · pull requestdependencysecret handoff (Jenkins)

concepts

Small surface, sharp edges

A handful of names cover the whole system — routing, contract, dispatcher, backends, and the panel.

ConceptWhat it is
registry.yamlTrusted routing and policy: which project maps to which repo, what is allowlisted, and the sandbox caps.
.fleet/The per-repo contract: the prompt, the setup and verify steps, and PR metadata.
registry.local.yamlA git-ignored overlay for deployment-specific routing on top of the tracked registry.
fleetctlThe dispatcher core: normalize, resolve, plan, run the bounded loop, publish, notify.
Runner backendsSandboxed runners — containers on Linux and native OS controls on macOS/Windows, both fail-closed.
PR-comment triggerComment on a pull request to iterate on the change; policy decides who may trigger.
Admin panelRun ledger, ingest log, manual trigger, and GitOps config — a Phoenix LiveView app.

Why a Python core?The logic lives in the dependency-light fleetctlCLI, so it is unit-testable and runs the same on a laptop and in CI. Jenkins stays a thin trigger.

basic setup

Clone, install, run

The dispatcher core and the panel run without Jenkins. The webhook → pipeline → PR flow needs a Jenkins you operate yourself.

01 · get the code
Clone and install
git clone https://github.com/wrbl606/fleet.git cd fleet python3 -m pip install -r requirements.txt
02 · dispatcher core
Check tooling, run a smoke test
python3 -m fleetctl env-check bash scripts/smoke.sh
03 · admin panel
Run the ledger and ingest log
mise install bash admin/start.sh

Development defaults are placeholders. Review the security docs before exposing a host.

documentation

Read the fine print

Installation, triggers, and the deeper references — all versioned with the code.

managed solution

Want fleet run for you?

Prefer not to operate the Jenkins orchestration, sandbox hosts, and credential plumbing yourself? We can host and maintain the whole pipeline for your team, on infrastructure you control.