An engineering workspace where a conversation becomes shipped work.
Ask for a change, attach a repository, and follow the agent as it reproduces,
fixes, tests, and publishes it inside an isolated microVM.
A thread is more than a prompt. It carries one conversation, one repository, one retained sandbox, and every run that follows — so work survives a lost worker, an exhausted budget, or an answer you give an hour later.
Sailor owns the product layer: threads, runs, traces, GitHub, sandboxes, secrets, and the dashboard. The agent runtime — the loop, budgets, compaction, checkpointing, revival — is Anchor, consumed from npm.
| Capability | What it means |
|---|---|
| Threads, not prompts | Start from a goal or a labeled GitHub issue. Optionally attach a repository; publish when you are ready. |
| Isolation by default | Every run boots a Heyo Firecracker microVM. E2B is supported; the local backend is for development. |
| Durable runs | Postgres is the truth. Leases and heartbeats detect dead workers and resume; checkpoints go to a side branch. |
| Evidence-gated delivery | publish_changes is an explicit, access-checked boundary; an optional policy can require a green run_tests on the exact tree being delivered. |
| Traces, not guesses | Each run writes an NDJSON journal with steps, tokens, cost, and duration. The PR links straight to it. |
| Questions that pause | ask_questions stops the run and resumes the same conversation and sandbox when you answer. |
| GitHub when you want it | Issues are one entry point, not the definition. CI failures and review comments wake the same thread. |
| Secrets stay server-side | secrets use_secret decrypts one value for one command; known values are scrubbed from every tool observation, trace, and publication scan. |
conversation or triaged issue
→ intake (Hono) authorize · resolve thread · enqueue
→ worker (BullMQ) one run per thread · heartbeats · resume-safe
→ agent in a microVM clone · reproduce · fix · run the repo's own tests
→ publish_changes explicit, access-checked delivery
→ pull request with the trace attached
| Path | Role |
|---|---|
apps/server |
Hono API, webhooks, CLI, and the long-lived worker |
apps/dashboard |
React workspace: threads, chat, traces, settings (Vite) |
packages/contracts |
Shared API types and Zod schemas |
image/ |
Toolchain image the microVMs boot from |
fixtures/ |
A tiny buggy library used by the end-to-end tests |
The layering rule is one-way: db → services → http → dashboard. Services own
SQL and transactions; routes only parse, authorize, and shape responses.
Node 20+, Docker, an LLM key, and a sandbox backend (Heyo by default, or
--local). Repository-backed work needs a GitHub App —
about three minutes to set up. Everything environment-shaped
lives in .env.example.
git clone https://github.com/hrithikkoduri/sailor.git && cd sailor
npm install
cp .env.example .env # LLM_API_KEY · HEYO_TOKEN (or --local) · GITHUB_APP_*
npm run doctor # env, services, sandbox health
npm run dev # Postgres + Redis + migrate + serve + worker + dashboardThen pick a way in:
- Dashboard —
http://localhost:5173. Start a thread, attach a repository, and watch the run. - GitHub — label an issue
agent:fixon an enabled repository. Point the App's webhook atngrok http 8787. - CLI —
npm run sailor -- run <repo> <issue>runs the same engine with no webhooks. Add--verbosefor model output,--keepto keep the sandbox.
| Task | Command |
|---|---|
| Everything locally | npm run dev |
| API only / worker only | npm run serve · npm run worker |
| Dashboard only | npm run dev -w apps/dashboard |
| Environment and service check | npm run doctor |
| Apply migrations | npm run migrate |
New migration after editing db/schema.ts |
npm run db:generate |
| One run, no webhooks | npm run sailor -- run <repo> <issue> |
| Typecheck / build | npm run typecheck · npm run build |
| Unit / integration / UI tests | npm test · npm run test:integration · npm run test:ui |
npm run db:generate writes SQL under apps/server/drizzle/; npm run migrate
applies pending files and is safe to re-run.
One image, three commands. It bakes the dashboard and serves it from the same origin as the API.
docker build -t sailor .
docker run --rm -p 8787:8787 --env-file .env sailor # serve
docker run --rm --env-file .env sailor worker # queue consumer
docker run --rm --env-file .env sailor migrate # schema, one-offGET /healthz checks the process; GET /readyz checks Postgres and Redis and
returns 503 until both answer. When the container reaches host services, point
DATABASE_URL and REDIS_URL at host.docker.internal.
Core stops at a runnable image. Hosted infrastructure and deployment belong to
the private sailor-cloud package.
docs/github-app.md— create and configure the GitHub App.AGENTS.md— repository map, layering, invariants, conventions.DECISIONS.md— every architectural choice, why, and what it supersedes.ROADMAP.md— deferred work with the trigger that pulls it back.- Anchor — the runtime, its decision log, and SWE-bench Lite results.
Early alpha, and honest about it. The full loop runs end-to-end: a conversation or issue becomes a reviewed PR with traces, and durable turns, revival, and evidence gates are exercised by the package's conformance and evaluation suites.
Sailor core is Apache 2.0 (LICENSE): use, modify, and distribute
it for any purpose, including commercial, with an explicit patent grant and no
copyleft. The hosted layer lives in sailor-cloud.