Crewlet Documentation
Crewlet is a source-available engine for orchestrating hierarchically organized AI agent companies. It treats the organizational hierarchy as the primary orchestration structure — knowledge, permissions, communication, and decisions are all scoped by position in the org chart.
New here? Read in this order: Installation → Quickstart → Choosing your stack, then dip into the concept pages for the subsystems you touch.
Rather not write the YAML by hand? An AI assistant can interview you and author it — see Authoring with an AI assistant.
Getting Started
Section titled “Getting Started”- Installation — Install the binary or run the signed container image (a release’s tag, or
main, rebuilt on every push tomain), and verify either; why there is no infrastructure to bring up, and what the compose profiles are for - Quickstart — Build a four-agent company and watch its first turn, with the model reached through a harness: Claude Code on a Claude plan or an Anthropic API key, Codex, or OpenCode for open models
- Choosing Your Stack: the decision guide for every external dependency (the LLM provider, the tracker and knowledge base, the code host, chat and the code sandbox), what each path sets up for you, and what you must create manually
- Authoring with an AI Assistant — Let an AI write your company config: a step-by-step walkthrough, the
company-architectskill,crewlet schemafor editor autocomplete, and thecrewlet validate -jsonfix loop - Configuration Reference — Full YAML config schema and examples
Core Concepts
Section titled “Core Concepts”How the engine works, one subsystem per page:
- Overview — The org chart as execution graph, design principles, high-level architecture
- Architecture — The whole engine at six zoom levels: what sits outside the process boundary and what each dependency is for, what runs inside one node under
data/gitlet/ingress/seats/workers, the hop-by-hop path a trigger takes from a third-party app webhook to an agent’s reply across a fleet, what a turn does and how one survives its own process, which of the four estates every table, bucket and stream belongs to, and what changes when a second node appears - Configuration — Two-tier config (ops-owned
crewlet.yaml+ a founder-owned revision in the store), bootstrap sequence, unconfigured state, live propagation, auth, the apply stage by stage, whole-config encryption at rest - Identity and Access: Who is acting and what they may do: the four kinds of principal, why every person holds a human seat and acts as it while a token or service account bound to none acts as the credential, the six permissions (
admin, which runs the company and the engine, and one per app:worklet,doclet,artifacts,chatletandgitlet, the last every door to the company’s code), what each opens beside the overview every signed-in principal reads, and why a seat’s transcript is its lead’s and an admin’s, the enrolment stages, why a name’s shape decides which namespace it belongs to so a login, a machine handle and a seat handle can never collide in one audit column, and the difference between the engine knowing you are nobody and the engine not being able to tell. Plus where identity is KEPT: the state log’s fourth domain, its seven tables, why a claim’s uniqueness is arbitrated at the broker rather than checked by an index, what is sealed under the fleet keyring and what is deliberately in the clear, what removing somebody erases from every data node’s rows and what it cannot reach, why a stalled identity log does not stop your agents. WHAT SOMEBODY PROVES THEMSELVES WITH: the argon2id parameters and what each one buys, why a machine token is not memory-hashed, the twelve-character rule and why there are no others, and the two mechanisms that stop a sign-in endpoint being a roster and what they deliberately leave unpadded, why a failed attempt costs a wait that doubles and never a lockout (keyed on what was typed and where from, and never on an address alone, which is also why no curve stands in front of a bearer a guarded route compares), why each node keeps its own curve, and why the N-fold rate a fleet of N nodes allows is bounded by what stands behind it, and why a second-factor code is spent by the sign-in it completes. THE AUDIT FEED: what theauthcategory says and how often, why a failed attempt is a counter and one row per node per minute, a count per source, that never carries what was typed or whom it named, why a token’s use is on its records rather than a row of its own and its overreach is a log line, and which facts have no event at all. And the SESSION COOKIE itself: every field in the bearer and why it is there, why a re-issue writes nothing so an hour of use costs no record, why the dashboard holds no credential of its own and what its four sign-in screens do, why a cookie cannot prove it was copied and nothing pretends it can, and the two three-valued tables that answer 503 rather than 401 on a node that is merely behind. Plus HOW THE FIRST PERSON EXISTS: invited or created onto a human seat the company declares, under a Tier A token like everybody after them; the two ways a person arrives on their seat (an invitation, or an administrator’s create that hands back their first password link); why an invitation arbitrates where an ADDRESS and a SEAT do and holds both while it is open, why a GET on one renders and never spends, and why absent, redeemed and expired are one refusal; and that EVERY ROUTE IS GUARDED but the ones on one exact list (five of them under/auth/), and why that list cannot be a prefix, and how a cross-site write is refused by its Origin where CORS cannot - Scaling Out — Why one node is the design’s degenerate case rather than a lesser path, what a node is (
data/gitlet/ingress/seats/workers), the node that holds no data at all, how Gitlet nodes scale reads and data nodes commit pushes — what a committer and the code log commit, a read of a repository’s content asked of its home Gitlet node, what a request on a cold Gitlet node costs, why a Gitlet node is sized by its memory before its disk and by the bytes and CPU it serves, and what every data node holds for Gitlet — and how every node reaches the one replicated estate every data node holds whole, the five kinds of coupling that had to be resolved and which one a lock actually fixes, what the fleet shares in the coordination slot versus what stays per-node, the measured broker numbers the lease TTL and prefetch cap come from, and what the design does not promise - Object Store — Where a company’s files live: the row that names a file replicated like everything else, its bytes stored as one object per upload, under a key minted for that upload and never reused, in one store the whole fleet shares — a JetStream object store bucket on the fleet’s own broker at
stream.replicascopies (nats, the default) or an S3-compatible bucket (s3, with the permissions its identity needs), chosen by every node’sstore.objectsand recorded once so a node configured otherwise refuses to boot. Uploads that store the object before the row, reads held to the row’s SHA-256 where they take the whole file and to the length it implies where they take a page, the three kinds of row that keep an object — live, retired and derived — and why only a live one is audited and carried by a backup while a move to a bucket copies a derived one too, theobject-collectorduty’s hourly collection of objects no row names and of unfinished uploads, its daily audit for missing and damaged files, why a deletion needs no lock, theobjects_missingalarm, how ans3client slows down on a throttle, gives up on a bucket that keeps failing, and what it counts, choosing a backend, why there is nothing to drain, and how far it scales. Artifact uploads are reserved against the quota before a byte moves, read back and verified before the version is recorded, and an unchanged file is carried rather than copied, never across artifacts - Gitlet — Gitlet, the engine’s own git host: the company’s git repositories hosted in the engine (
code.backend: gitlet); a repository as rows on the code log with each push’s pack bundle one object in the object store; its changes —web!42, one branch proposed into another, opened by a push option or a tool, and opened, edited, closed, reopened and given a revision by every push to its branch on the repository’s subject, decided by its committer beside the pushes — and each change’s conversation on a subject of its own — asks for review, reviews and the findings they raise, comments and their threads, findings answered and a review’s suggestions applied as one engine-built commit — decided by the change writer and never waiting behind a push; a revision’s facts against its target, its mergeability and its merge readiness — every precondition judged from one snapshot, its first unmet one a sentence naming who clears it — read by the repository’s home Gitlet node and never from a clone; merge gates and the path owners a revision’s facts ask for review; a change rebased as one forced push; checks defined in.crewlet/checks.yaml, the target branch’s file governing a change’s; and who a change wakes — each record stamped with whom it concerns by the node that decides it, the seats among them woken from the code log bycrewlet-code-feed, the persons left a notice in their inbox, and whom each record reached kept as the change’s routing; what this build does not do yet, declaring repositories incode.reposand what each change does at its activation, repositories made by tools — a project or a seat’s own scratch repository, each created, renamed with a month’s redirect, archived, deleted or restored by one request, and a scratch repository idle pastcode.scratch.idle_daysdeleted unless a live turn holds it — the protection-rule grammar and the unprotected-default-branch warning, the activation fence that keeps an older configuration from walking a newer one back, one subject per repository, the committer’s group commit,code.limitsand the 2 048 live packs a repository may hold before a push carrying objects is refusedcompaction_behind, compaction — a repository’s small packs no published layer names merged by its maintainer, the first Gitlet node of its order whose advertised budget holds its publication, into a few, sixteen or more at a time or a busy repository’s minute of pushes at once, every object kept, the merge decided by its committer like a push, the packs it replaces kept a day for any reader before they are deleted, and every Gitlet node’s copy following by a swap into a directory of links that keeps every reader whole — the expunge, the one rewrite that drops objects: in two records, weekly on the maintainer once a quarter of a repository is unreachable and with git’s two weeks’ grace, or at once on a person’s purge, keeping what a ref or a change, a queue or a green row in flight reaches, and what still holds a purged object after it — retention — push history, ref tombstones,code.deleted_retention_daysand thecode-retentionduty’s paced purge — and the cache a Gitlet node keeps of each repository: a function of the rows brought forward by a delta, one object read a push when cold, evicted only to its budget, indexed in the background — or installing the chain of published layers a repository’s maintainer writes once for every Gitlet node — when a repository is published, by its tail’s packs, share or objects, settled and duty-cycled, merged geometrically and written over exactly its base, and a refused layer repaired by its maintainer — a full sync before it answers and the installer behind a delta, each placement read through its bitmap first, and a layer missing, corrupt or from a newer git refused while the copy serves from the layers below — and rebuilt when damaged. Then persons and their tokens — git as one more way a person acts, a credential bound to no seat fetching only, every push recorded asoperator_acted,/git/and/gitlet/never on the public listener; coding boxes — a seat’s executor reaching/box/git/on the public listener with its run’s own token, admitted by its run’s row on every request and given what its run was given, held to its seat’s grant, its reads at its run’s session floor raised by every answer that names refs, holding at most half the transfer lane and one spool credential, and its pushes refused while a person’s pause has stopped its seat, holding the seat branches they name for its run, recorded under the run that made them — which is how a seat is told what its run pushed — and carrying commit trailers by convention that Gitlet never reads; the ref lifecycle — a seat’s branch nobody has set for 14 days deleted by a push on the engine’s own account, decided by its committer like any other, unless a live turn or the run it waits on holds it, it is the default branch, a live change’s or protected — restored withcode_create_branchfrom the commit the deletion’s push row names, andcode_refs_near_limitraised before a repository’s live refs reach their bound; who may read and push — the Gitlet permission (gitlet) at every door first, then a grant derived from the chart,visibilitynarrowing seats only, a seat’s push held besides to no protected branch, to half a repository’s refs and bytes outside its owning unit and to a daily quota, and judged by no node behind the company’s configuration — and the reads a Gitlet node answers by object id without a clone, a page at a time, in half its read lane, asked of the repository’s home Gitlet node first, the one node a read lets fill a copy — a path’s history and a file’s blame among them, each commit read as git wrote it and named by the push that introduced it — the reads a seat’s code tools and a person’s assistant make, each repository resolved once a turn and its file, patch and commit-message text fenced; who read avisibility: unitrepository — every fetch that sent its contents and every server-side read of it recorded, an admin’s question over a range of days; a push end to end — checked before a byte is stored, received by real git in a scratch repository, its one pack stored, decided by its repository’s committer and answeredokonly once its row has applied — with the large fetch requests a node spools and the partial-clone filters it serves; engine-built commits — a seat’s or a person’s change made through a tool, built on a Gitlet node over exactly the trees it touches, held to the fsck a push is, and landed as a push, its author whoever acted, the engine its committer and a retry the same push and the same commit, asked of the repository’s home Gitlet node first and of its runner-up as that same push where the home runs none of it; the fair share that hands a full node’s next transfer slot by who asked — people weighted twice a credential acting as nobody, such as CI’s, and coding boxes half that, holding at most half the lane — and, within each, to whoever has spent least; every line git prints, what it means and what to do; and every line the node logs - Coordination: The fleet’s shared store and the line between it and the node’s own database: the three-valued answer every question here returns, which direction each contract fails in when the store cannot be reached, why a listing is certified against the stream’s own key index and read back from its leader so it is complete or unknown but never short, why a single key is read from the stream’s leader and a compare-and-set waits out a write the leader still has in flight rather than reading it as a lost race, why a node’s writes to one fleet record go out as one compare-and-swap bounded by the fleet’s head count, the slots a fleet is discovered from, why every retention is a bucket’s age rather than a per-write TTL and what sweeps the removal markers a bucket with no age would keep for ever, why fleet duties keep their leases in a bucket apart from the seats’, the lease a person’s control of an agent’s browser is kept under, judged on the store’s clock, and what stays node-local or per-process on purpose
- Seat Ownership: How a fleet decides which node runs which seat, and why no two ever run the same one: TTL leases with epoch fencing, fair-share placement with give-back, the two release modes, freshness-based admission, the line between a copy that is behind and one that is wrong (and why lag at any size never moves work), owner-only inbox and sandbox-control attachment, the durable subscription that holds an unowned seat’s mail, the broker settings that must not delete it, how a removed seat’s mailbox is found and retired after a grace period, and why a wedged-but-alive node ends its own process
- Control Plane — How every node converges on one company config: the shared activation pointer whose own revision is the epoch, the reconcile poll, per-node apply status (
ok/error/degraded), the posture a lagging node takes (serve/wait/shed/isolated/stuck), what a running turn sees through a live apply, and what/healthand/readyreport - Secret Store — The company’s encrypted credentials on the coordination KV, read by every node and consulted ahead of the process environment when resolving
${VAR}:crewlet secrets set/list/unset/get/rekey, which write through a running node’s/secretsAPI or, with their node’s engine stopped, reach the fleet’s store themselves, the-secret-storeprovisioning sink that hands minted credentials straight to the engine, the engine’s own key beside the operator’s credentials and never in their namespace, rotating the keyring — the identity estate’s sealed values included — with nothing in flight lost, store-wins precedence, and the Tier A root-of-trust boundary - Organization Model — Hierarchy, departments, teams, roles (seats), handles
- Humans in the Org Chart — Human seats (
kind: human): hierarchy membership, contact identities, notify delivery, escalation terminus, prompts and lookup — and the person at the dashboard: invited or created from their vacant seat in the org chart, holding that seat for as long as they are here, signed in as themselves and acting as it, the Inbox and My work that answer for them, and every write made as them - Agent Runtime: how a configured role becomes a running seat, the states the dashboard shows, what each phase’s prompt is built from (including the chat thread a turn is handed rather than told to fetch), the built-in tools, and graceful shutdown
- Turn Engine — Per-agent executor / reviewer loop, how the engine decides a turn delivered, delegating to workers, colleague-surface tools, per-phase LLM models
- LLM Backends — How every model is reached: through a harness the engine drives, never an HTTP client of its own — why the vendors’ own harnesses win; picking one per vendor (Claude Code for Anthropic’s models on a plan or an API key, Codex for OpenAI’s, OpenCode for open models on OpenRouter, a hosted provider or a local server); the entry’s fields and its three sign-in modes; where each phase runs (a seat’s executor as the harness’s own fully permissioned run, detached in a box at its entry’s
run_inwith the seat’s tools bridged in, and every other phase as the harness’s own loop on this host with its local tools denied); per-seat state isolation; the seat’s tools as one MCP server the harness calls natively, every call held to the phase’s gates, and what each harness does with them; how a run’s requests are read from the harness’s own record;crewlet llm login,export,importanddoctor; falling back between entries and the sit-out of a spent plan; and the fixed deadlines that make the auxiliary model the one to keep fast - LLM Fleets: a named set of
providers.llmentries of one model class that a seat job or helper runs on asfleet:<key>, each new piece of work on whichever member has room;default-fleet, which every company has; the balanced and sequential strategies; a fleet with no members - Code Sandbox — Where every agent seat’s executor runs, as its harness’s own fully permissioned run in a box:
providers.sandboxas a catalogue of cells (required once a company has an agent seat and a model), eachproviders.llmentry’srun_in(elsedefault_run_in) placing its runs, boxes on the engine host (direct or containerised, on its own harness login) driven by the node that launched them, the Claude Code, Codex, Gemini CLI, Qwen Code, OpenCode, Cursor Agent, Copilot, Grok Build, Muse Code, Kimi Code, Hermes Agent and Pi runners, a seat’s own browser in its container box, the tool bridge, the launch floor and the post-charge, asking a person and answering a parked run, a person’s notes to a running run, a person’s stop, git-auth recipes for other hosts; repositories on Gitlet — checked out one at a time withcode_checkoutinto the run’s grants for the seat and whoever woke its turn, cloned blobless on the seat’s own branch by the commands the checkout answers, handed what its harness would load at the checkout’s root, and reached with the run’s own credential and git configuration throughCREWLET_BOX_GIT_URL— what such a run pushed, reported back from Gitlet’s own push record rather than the run’s account, the change a run works on or has opened once it succeeds, the commit trailers a box commit carries by convention, and what a clone costs: the two recipes, a box’s own git in a wide tree with the settings measured in, and a copy borrowed from the node - Tool Skills: Knowledge-base-sourced prompt fragments (Confluence pages, or Doclet’s) that teach agents how to use each tool / MCP server, and how every node keeps its copy current: a walk at boot, on an apply that moves the skills source and every 10 minutes, a read of the one page a webhook names broadcast to the rest of the fleet, and a bounded retry behind a walk that failed
- Tool Capabilities — How the engine stays tool-stack agnostic: capability prose + MCP annotations, no hardcoded tool names
- Event System: EventQueue, topics, routing, inbox batching, listing the durable subscriptions a broker holds, reading the fleet’s history from every data node’s own store (and why a departed node’s detail departs with it), distributed tracing
- Integration Reconcile — What checks that an integration still works: the finding vocabulary every third-party app reports in, why the excess-access advisory is ranked last, a cadence derived from who has to act rather than from what failed, the fleet singleton that runs it, how a seat’s account at a third-party app is named, and what the loop deliberately will not do (tear anything down, or rotate a credential that works) — it does register the webhooks and create the accounts, because connecting an integration is the permission
- Atlas: The map and catalogue of everything a company runs on (accounts, domains, servers, data, repositories, monitoring, tool servers and models) and how they depend on each other: one fold over attributed claims, what the engine already keeps computed at every read and never stored, each fact with its source and a confidence the engine derives, one entry per exact key, and nothing that can hold a secret
- The Tracker: the two shapes a company’s work can take, Worklet (
tracker.backend: worklet, the default: every change a record on an ordered log the fleet shares, applied into identical SQL copies on every data node, with a board, seat tools and an MCP surface) or an external PM tool the engine deliberately mirrors none of - Scheduling — Role/unit-scoped cron-style recurring work (standups, audits, nightly jobs), each schedule a conversation of each seat that runs it, its next fire continuing the session its last fire left
- Knowledge System: Shared knowledge behind the
knowledge.Searcherseam, exactly one backend per company, either Doclet’s pages (keyword, semantic or both fused) or a live Confluence search, who read each page and who links to it, what a folder and a draft are, edited from the dashboard as the signed-in person, plus the privateagent_diary, andcrewlet search evalfor measuring the semantic half on your own vectors - Ask Crewlet: A panel in the dashboard that answers a person’s questions and prepares changes for them to approve, acting as that person with exactly their access and no identity of its own: how to open it and what the page chip sends, why a list it reads is the list you would see and a refusal stays a refusal, what it can read and what it can propose, how a proposal card shows a change as a before and after and what approving, declining, expiry, a stale record, a step-up and Retry each do, how a large task becomes a task for one of the company’s agents, how attached images reach the model, attaching images, what it can never do (write unapproved, sign anybody in, handle a secret, approve its own proposals or an agent’s call, read anyone else’s conversation, obey instructions found in your data, or draw a live link or a picture), and who keeps your conversations, for how long, and the one audited compliance read an administrator can make
- Checks: How Crewlet verifies that something happened: the five read-only kinds (an engine route read, a setup requirement, a vendor probe, a public URL on the company’s own hosts, a seat asked to verify), why every target is one the company holds, why no one’s words reach the model through a check, the vendor probes each integration declares, and the limits of a public URL check
- Artifacts: Pages, documents, slide decks and native sheets that people and agents publish for each other: versions that name their base and carry unchanged files, shares on a five-role ladder under the
artifactsapp that gates authoring only, the serving origin that holds no credential and re-authorizes every document, a shared datastore whose writes are decided where they are applied from authority stamped at the API, presence that is told and never stored, what an agent may and may not do, and the security model in one table - Chatlet — The third backend axis (
chat.backend: chatlet | vendor | none): the engine’s own chat as the state log’s ninth domain — channels, unit rooms the org chart opens and is the sole writer of, direct-message identity derived from the seats in it, one-level threads, edits, tombstoned deletes and reactions — who a message wakes and which of them owes a reply, why people are never woken, a person in a room as the human seat they hold with thechatletapp (and a credential acting as itself refused it, reads included), why a seat’s next holder inherits its chat, read state in coordination rather than on the log, its own keyword index with no semantic half, the message horizon and the two destructions, who may do what, and the two things it deliberately does not do - Agent Learning — Reflection loop, skill induction, episodic memory, counterparty profiles
- Conversation Sessions — How a conversation’s next turn continues the session its last turn left: what continues what, what the engine adds that no transcript knows (how the earlier turns ended, where the new turn begins, that its box is new), the read frozen and held at the first launch, when a turn starts fresh, where a session lives, reading a seat’s sessions, a schedule’s fires as one conversation, what it costs, and its configuration
- One-on-Ones — Manager↔report coaching as a usage pattern over the scheduler + A2A channels + learning loop
- Decision Framework — DACI model for multi-agent decisions, and the structured ask a decision is recorded as
Integrations
Section titled “Integrations”Connecting the external surfaces agents work on. The tracker, the knowledge base and chat are optional: the engine ships its own (Worklet, Doclet and Chatlet) and runs them by default, so Jira, Confluence, Slack and Mattermost are for when your people already live there.
- Jira: An alternative to Worklet. Cloud or Data Center: webhook routing by mention / assignee / watcher / project lead, derived seat account ids, per-role MCP tools, and
crewlet jira provision - Confluence: An alternative to Doclet; it searches as the asking seat, so Confluence’s own page permissions are the boundary. Cloud or Data Center: live CQL search, page-change routing, tool-skill pages, and
crewlet confluence import - GitLab — gitlab.com or self-hosted: API-provisioned per-agent service accounts,
crewlet gitlab provision, webhook routing, per-role MCP tools, sandbox code authoring - GitHub — github.com or Enterprise Server: one GitHub App per agent (create, then install) with three access tiers, webhook routing by review request / assignment / review verdict / mention, derived seat logins, participant fan-out, organization or per-repository hooks, and
crewlet github provision - Datadog — Monitor alerts as inbound events through the Webhooks integration: routing by monitor tag with a required fallback seat, a trigger and its recovery as one conversation, and shared-token verification (Datadog cannot sign a body)
- Cloudflare: one account API token per agent, minted, narrowed, rolled and deleted by the engine through a provisioner token, scoped to the company’s zones at a
read,operate,configureorsecurelevel, plus the Cloudflare API MCP server - Scaleway: one IAM application per agent, with one policy at a
read,operateoradministerlevel on the projects you choose and its own API key, made, narrowed, rotated and deleted by the engine through a provisioner key; the scw CLI in the agent’s box and the CLI’s own MCP server - Google Cloud: one service account per agent, created, granted, disabled and deleted by the engine through a provisioner reached by Workload Identity Federation with a key of its own (no service account key), at a
viewer,operatoror opt-inadministerlevel on the projects you prepare, with an hour-long token issued at use, and Google’s managed MCP servers - Expo: one Expo robot user per agent on the company’s Expo account; a person creates it at Expo and pastes the token, and Crewlet checks it and keeps it at the agent’s role (
viewer,runner,developerorrelease_manager) with the agent’s own token. The seat’ssandbox.envhands the token to the EAS CLI asEXPO_TOKEN, beside Expo’s hosted MCP server - DigitalOcean: one personal access token per agent in the company’s team; a person creates it in the control panel and pastes it, and Crewlet proves it at the agent’s level (
read,operateoradminister), keeps it with the agent’s own token and revokes it on off or replacement. doctl reads it asDIGITALOCEAN_ACCESS_TOKEN, DigitalOcean’s MCP router as a bearer header - SSH: the company’s servers, reached with OpenSSH certificates the engine signs for minutes at a time from a certificate authority it mints on connect, seals and never shows; each server trusts only its public line, host keys are pinned in the document, and each agent holds
read(the server’s allowlist) oroperate(any command a person approves first) on the servers it names - Meta Ads Manager: the company’s Meta ad accounts, reached through the engine’s own tools as one system user of its own Meta app, every Marketing API operation an ads integration reaches classed
read,operate,public,spendoradmin, each agent atread,operateoradministeron the ad accounts it names, spend held to per-account caps and every public, spend or admin act held for an administrator; no agent holds a token - App Store Connect: the company’s App Store Connect teams, reached through the engine’s own tools with each agent’s own team key, which Crewlet keeps and checks, every operation of the API classed
read,operate,publicoradmin, each agent atread,operateoradministeron the apps it names, and every public or admin act held for an administrator; no agent holds a key - Apple Ads: the company’s Apple Ads organizations through the Apple Ads Platform API, reached through the engine’s own tools as API users whose keys it keeps, every operation classed
read,operate,public,spendoradmin, each agent atread,operateoradministeron the ad accounts it names, a pause or a lower made at once and every spend, creative or account change held for an administrator after the spend guard; no agent holds a key - Google Analytics: Google Analytics 4 through engine tools, as each agent’s own Google growth identity, every Data and Admin API method classed read, operate, spend or admin, account and access changes asked of an administrator first
- AdMob: the company’s AdMob accounts through engine tools, as one Google sign-in a person makes as the company’s own OAuth client, every API method classed read, operate or admin, each agent at
read,operateoradministeron the publisher accounts it names, and a store link or a removed mediation line asked of an administrator first - AdSense: the company’s AdSense accounts through engine tools, as one Google sign-in a person makes as the company’s own OAuth client, every Management and Platform API method classed read, operate, public or admin, each agent at
read,operateoradministeron the publisher accounts it names, and a live ad unit’s size, a deleted channel or a platform’s sub-account asked of an administrator first - Google Ads: Google Ads through engine tools, as each agent’s own Google growth identity, every API method classed by each operation it holds against live values, spend held to per-account caps before anyone is asked and when it is made
- Google Search Console: Search Console, Site Verification and the Indexing API through engine tools, as each agent’s own Google growth identity: performance, sitemaps, URL inspection, verification and owners, every method classed read, operate or admin, and an Indexing API notification sent only for a page Google’s terms allow
- Google Play: Google Play through engine tools, as each agent’s own Google growth identity, every Android Developer and Reporting API method and the monthly reports, replies, listings, releases, prices and refunds asked of an administrator first
- AWS: one IAM role per agent in the company’s AWS account, created through a CloudFormation stack and IAM Roles Anywhere with no stored access key, at a
read,operateoradministerlevel; each session is issued at use for 15 minutes, for the AWS CLI in its box and AWS’s MCP Server, which the engine signs as the agent - Slack: one app per agent, created from a manifest and kept in line by the engine while a person approves each install; per-seat webhook routing with thread follows, a text-carrying working indicator, and the Slack MCP tool server
- Mattermost — Self-hosted open-source chat: one bot account per agent with its own roles and channels, set on the Agents tab, a websocket event fleet instead of webhooks (no public URL needed), and thread routing
Guides
Section titled “Guides”- Tools & MCP — Built-in tools (Worklet’s, Doclet’s, the artifacts’, and the code tools a seat reads and changes the company’s repositories with on the server: a write to a branch lands an engine-built commit as a push; a write to a repository or a change is one record on the code log, no push), MCP integration, the two-value tool-origin grammar the dashboard groups on, and extending a binary that loads no plugins
- Deployment — The single host, the compose profiles, the stream beyond one host (embedded cluster or external NATS, with auth and TLS), Gitlet (git 2.55 or newer on a Gitlet node, 2.40 for a client; a volume for its cache; a balancer whose idle timeout outlasts a cold sync or that routes
/git/by repository; a token per CI runner; memory for transfers; one Gitlet node sized to publish the largest repository’s bitmapped index for every other), coding boxes (/box/git/on the public listener of every Gitlet node, routed there by the balancer;CREWLET_BOX_GIT_URLon every node that runs seats,https://wherever a box’s URL leaves its own host; git 2.40 or newer in every box image; a box’s network kept off the broker’s ports), the event store, tracing, and logging (levels, the three formats, colour, a rotating log file beside stderr with its own shape and level, or taking the stream over entirely; the embedded broker’s output has its own switch) - Budgets and Spend — The two numbers describing what the models consumed, and why they are never comparable: the budget counter a ceiling is enforced on (per day, ISO week and month on the company’s clock), and the spend rollup of where the tokens went (the live 24 hours from each node’s projection, and every named window of up to 90 company days from the replicated usage domain, the same on every node). How far back each reaches (181 days of spend, 30 of turns), the four bands a phase chart draws, the provider split, the cache share, the seats’ auxiliary model (spend by stage and purpose, what a turn and its task pay for, a person’s questions as their own row), why the counter and rollup can differ, and what is not counted (embeddings)
- Operating an Engine Through Its Operate Grant: For whatever runs an engine (an orchestrator, a Kubernetes operator): one credential, held as a digest in Tier A, that opens the
/operate/routes and nothing else: health, the active revision, the fleet, integration states, usage per day, members by id, the next schedule fire, a backup into a directory Tier A names, a drain and a stop of every box; the versions an engine serves, the capabilities document, and the refusals - Backups & Restore —
crewlet backupagainst a running node, what the directory it writes contains and what the copy is a copy of, the cold runbook, restore ordering and hazards (epoch rewind, node identity), which losses are survivable without a backup, and what a backup taken before a repository’s purge still holds - Running a Fleet — When to run more than one node, node roles (and nodes that hold no data), seat placement, draining and rolling upgrades, and removing a data node for good without leaving the company’s files a copy short
- Versions and Upgrades: What a release number says, which two releases run together and upgrade in place (N and N-1) and what is not promised, pinning an exact release (image tag or digest, archive,
go install, crewlet-operator’s EngineClass and a Company’s version), and upgrading one release at a time - Running One Agent Somewhere Else — Put a single seat on a host that can reach what it needs (an internal API, a licensed binary, a GPU, a lab network) without moving the company: what a satellite is, whether it holds data (the whole replicated estate, identity directory included) or is a small disposable node that holds none and reaches the estate through one that does, on a host holding the fleet keyring either way; what moves with the seat (its MCP servers above all), what the node needs outbound, and what a pin costs when the host is down
- Voice Dictation: Dictating into any composer with nothing to set up: the engine’s own recognizer and where its model comes from (the image, a pre-staged directory, or one download), why audio never leaves the engine and nothing is logged, what it costs a node, the
dictationblock, the limits a person meets, and the log lines - Running Ask Crewlet: For administrators: what assigning Ask Crewlet a model does and does not grant, which of the company’s models it can run on (the engine runs it with no tool of its own and its web tools off) and how
crewlet llm doctorproves it, how a large task becomes a task for one of the company’s agents and how attached images reach the model, choosing a model and measuring a candidate withcrewlet assistant eval, the budgets and fixed limits a person’s turns run under, retention and erasure, how a compliance read is made and recorded, the audit events and metrics it adds, and what each unavailable reason means - The Org Builder: editing the organization, and creating the company, from Company › Structure, whose Org chart and Table tabs are both the builder: the one company document
/configserves and writes, what reading and saving it takes, creating a company from a template, arriving from a link, the chart, Reporting view and Table (keys, the Reports to pill, reordering, each seat’s live state and run-time controls), dry-run checking of a draft, what each editor can and cannot change, a seat’s integration fields, the node editor, why a new human seat is vacant until somebody is put on it, what moving and deleting do and why a seat keeps its kind, reviewing and saving as one write (including one whose answer never arrives), following the revision until nodes apply it, keeping acompany.yamlin step (every handle and key declared, since a file is minted afresh on every import), keeping a draft across a reload and what asks before work is left behind, updating it when somebody else saves first, and undo, redo and the keyboard - Configure via API — End-to-end recipes for bootstrapping a company with
crewlet config importor onePUT /config, then evolving it one entity at a time through/config/*(a seat, a unit, a provider, an MCP server), and why a seat’s handle and a unit’s key never change - Delegated Decisions: Letting an agent seat decide requests that wait on a person (an agent’s server command, a merge, a deploy) within rules the engine enforces: the act every request carries, the
delegated_decisionsrules, a delegate’s verdict and the digest that binds it, panels of two models, what always reaches people whatever the delegate says (low confidence, its own requests, sensitive items, the always-escalate commands and paths, a merge’s and a deploy’s conditions read from the code host, the hourly caps, the deadline), asking to merge and to deploy, turning it off, the digest, spot-checks and audit you still see, and approving one exact command at a decision - The Setup Advisor: For administrators: one list of what the company’s setup costs it (no agent hearing the engine’s alarms, learning on the model the work runs on, schedules that poll), why each matters, and the change that fixes it, previewed and sent by you; the engine never applies one.
- Engine Issue Reports: Telling the project when the engine detects a defect in itself, off by default: how to turn it on or off, the exact record sent and what never is, which defects are reported and how often, and the relay that files them.
- Operating Insights: Sharing how the company’s agents work as small typed weekly records, off by default and reviewed first: the consent, what one record holds and what never is, and where it goes.
- Reading the Atlas: Company › Atlas in the dashboard: who can open it and why it is given on purpose, what each lane draws and leaves empty, the band of counts, the map (health notch, unconfirmed entries hidden until shown, three families of line, path highlighting, groups that open closed, fullscreen), search and filters, the coverage line that never says complete, the catalogue grouped by health, an entry’s page (diagram, recent changes, Overview, Relations and Sources with a disagreement shown and never settled), internal addresses marked, and nothing exported
- Hosting Code on Gitlet: Hosting the company’s git repositories in Gitlet, the engine’s own git host: turning it on (and the restart a node already running a native backend needs), declaring repositories with owners and protection rules, the permission each person and CI token needs (
grants: [gitlet]), each person’s own token (crewlet iam token -login), cloning, fetching and pushing over HTTPS with that token as git’s password (crewlet gitlet credentialas git’s credential helper; a token per CI runner, each its own turn in the node’s fair share), and what each common refusal means. Changes: opening one from a push with-o change, reviewing on its page or through the code tools (what waits on you and the inbox notice, asking for a review, a revision’s files, verdicts and findings, suggestions, threads, readiness to merge and who can clear what is not, the More tab), rebasing withcode_rebase_change, checks in.crewlet/checks.yamland reading a failed one. Seats and code: what seats read through code tools with no clone and no token, and what afull_accessseat changes (a commit built on the server and landed as one push in its name, author the seat and committer the engine; what a push is held to beyond its grant; scratch repositories, their cap and idle expiry; renaming one a tool made and the month its old name redirects; the daily push quota; which turn and work item made each push), a seat working in a clone as a git user (repositories its executor is given, cloned on its own branch for the work item with the run’s own credential, what the run pushed reported from the push record, the commit trailers), and idle branches, deleted after 14 days unless a live turn or its run holds them, restored withcode_create_branchfrom the commit the deletion’s push row names. Also: who read avisibility: unitrepository, importing from GitHub or GitLab withcrewlet gitlet importin resumable steps that each fit a push,crewlet gitlet status,crewlet gitlet verify(a node’s cache against the rows),crewlet gitlet exportto a git bundle, deleting and restoring, and why a leaked secret is rotated first and then purged - Worklet: The product guide to Worklet, the engine’s own tracker: projects and keys, everything a task carries, the catalogue of types and fields, the five view shapes and the six every container has unsaved, what a board groups on and why due bands are cut on the company’s own day, why the trash is a query rather than a shape, the timeline, workload and the two things it will not do, manual board order and re-spread, a person’s inbox, queue and pins and the three authorities over them, seat-declared tags, the twenty tools a seat has and the six that count as a delivery, how a move carries an item and its subtree to another project, the one wake not about a task, why a handle is checked before it is stored, what a person reaches through the dashboard and their own assistant, and removing, deleting and purging
- Replication — How the fleet’s copies of the company’s work stay in step: the three numbers a reader must not fold together, the three outcomes a write has and what to do with
pending, what an acknowledged write has reached at each topology, the two regimes above and below the trim floor, replication lag as two positions, what a burst costs every peer, and what the design does not promise - Search — How a knowledge search is answered and what to do when it is slow: the two rankers and the bucket both carry, when a fleet divides the scan and the floor below which it does not, why the merge is by score and only then fused, why BM25 stays comparable across a divided scan, and what a partial answer names rather than silently truncates
- Read Consistency — Picking how fresh an answer has to be: the four levels and what each costs, how
linearizableworks as a barrier append rather than a field check, the fifteen read refusal codes and every write refusal, with a remedy each, completeness as a fact separate from freshness, and the three things no level can strengthen - Retention — What the log keeps and why it sometimes will not shrink: the one number to watch, the six trim terms in plain words, why a company that never backs up never trims, snapshots and the join runbook, eviction and readmission, what a full log refuses, the storage forecast, and the recovery-operations profile
- Serving Artifacts: Giving artifacts an origin of their own: the
api.artifactslistener, the two origin modes and what validation refuses, the three self-hosted shapes (a wildcard on a domain of its own, a second hostname, a second port) with DNS and TLS, what a reverse proxy must and must not do, checking it works, and sizing the object store - Authoring Artifacts: Choosing a kind, the page contract the engine enforces at publish (paths, types, limits, scripts and styles, what a page cannot do), capabilities and the pinned runtime, the artifact kit, declaring shared data with presets and column rules, publishing from the dashboard, the harness and an agent, and what to check before sharing
Reference
Section titled “Reference”- CLI — Command reference
- API Endpoints: REST API routes and schemas, the WebSocket protocol (the socket reads and pushes; REST writes), the health envelope,
/auth(signing in, invitations, step-up and second factors),/iam(the identity directory and the seats each person holds), the Worklet and Doclet surface,/operator/mcp(Worklet, Doclet and Chatlet served to your AI assistant over MCP) and/operator/act(where the dashboard writes as the principal its session resolves to, the chat reads and the destructions an administrator makes), and how the dashboard’s files are served, cached and compressed - Artifact Runtime: The
window.crewletcontract 1.0 a page runs against: how a page reaches the engine through its host, contract versions, connection, identity, data (every op and verdict), per-viewer state, presence, assets, opening links, theme and errors - Slide Format: The format a
slidesartifact holds, Claude’s slide format without itsproject/prefix: the deck index, one<section>per slide on a 1920 by 1080 stage, the closed element, attribute and inline-style subset with each value’s grammar, inline drawings, images and typefaces as files of the version, the bounds, what is refused and what to write instead, and how a deck is read, edited, presented, followed and printed - Dashboard Spec: The format a
dashboardartifact holds: filters as closed choice sets, datasets from the artifact’s store, the engine source catalogue (Worklet, spend and the agents, each answered as the viewer), version files and deterministic calculation steps, the widgets on the twelve-column grid, refresh, export, the comment anchor and every bound - Artifact Capacity: The service objectives artifacts are measured against, what bounds their scale, and the reproducible spikes behind every bound: datastore write rate and footprint, origin isolation, contention, sandbox streaming, the strict script policy, edits, presence fan-out and the object store under a publish
- Dashboard Design System: The dashboard’s information architecture and visual system: the one sidebar and the three nouns that keep it one (a sidebar row is a workspace or a kept object, a section is a path drawn as a tab, an object tab is a query on an object’s page, and nothing is two of those), the route table and the gate holding it against the router’s resolver, the frame and its three breakpoints, the sign-in screens, Home and how its reader arranges it, the Inbox as a focus split, Worklet’s scope in the trail, mode and theme, the one rule (colour carries state, never identity) and its bounded exceptions (an agent’s profile icon among them), a palette whose contrast claims are recomputed from the shipped stylesheet in both themes, the four rules that keep a running turn’s transcript still, ⌘K, acting as yourself (every write control shown, disabled with its reason when you cannot make it), empty states, the turn trace, how it is built (one REST transport, one write client,
src/contract/and its gates), why the built bundle is committed, and the rules a change keeps (tokens, never money, among them) - Metrics — Every instrument the engine exports, generated from the catalogue: what each measures, its unit, its attributes, and the failure it makes visible. Plus the
OTEL_*variables that switch the export on, and what is deliberately not exported - Alarms — Every condition the engine raises about itself, generated from the alarm table: what each means and what to do. One table, reaching you as a gauge and as a named log line on entry and exit
- Meta Ads operations: every operation of Meta’s Marketing API an ads integration reaches as Crewlet offers it, generated from the integration’s catalog: its class, the states that lower it and the asset tasks that may make it
- App Store Connect operations: every operation of the App Store Connect API as Crewlet offers it, generated from the integration’s catalog: its class, the states that lower it and the roles that may make it
- Apple Ads operations: every operation of the Apple Ads Platform API as Crewlet offers it, generated from the integration’s catalog: its class, the states that lower it and the roles that may make it
- Service Objectives: what the engine promises as numbers an alarm holds it to: publish success and latency, a served document’s first byte, a frame becoming ready in the viewer’s browser, the datastore’s verdicts, a committed change reaching the screens watching it, a wake leaving the change feed and presence crossing the fleet, each an event objective over thirty days with its reason; where each is measured, the two burn-rate pairs the
objective_burnalarm judges, and the ready report the dashboard sends and the limits it is held to - Environment Variables — All configuration env vars
Part of Crewlet. Generated from crewlet/crewlet main at 3f5565e.