About Apra Fleet
Apra Fleet is an MCP server published by Apra-Labs in the Agents category: coordinate Claude Code agents across every machine in your network — from a single conversation. Conduid read 65 tools from its source: child_id_allocator, cloud_control, code_context, code_flow, code_graph, code_impact and 59 more. No package is published for it, so it installs from a source checkout.
The repository has 110 stars and 19 forks, and its last commit was on 2 Dec 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include agentic-workflow, ai-agents-2026, ai-coding, automation, autonomous-agents and devtools.
Install
git clone https://github.com/Apra-Labs/apra-fleetTools (65)
child_id_allocatorGlobal child-bead-id allocator hosted on the fleet server, so sprints launched WITHOUT a supervisor never mint the same child id under a shared parent. "allocate" reserves the next id under parent_id (lease + pid guarded); "confirm" commits it after a successful create; "release" returns an unused id to the free pool; "status" snapshots per-parent state.cloud_controlManually start, stop, or check status of a cloud fleet member. Start waits until the member is ready; stop is immediate.code_contextGet callers, callees, and execution flows for a symbol. Prefer this over Glob/Grep/file reads for structural questions (symbol lookup, call chains, impact) -- the answer is pre-indexed.code_flowFind process flows (entry -> steps -> exit) matching a name or endpoints. Prefer this over manually tracing call chains across files -- the flows are pre-indexed.code_graphTrace the call graph for a symbol. Returns callers and callees across the codebase. Prefer this over Glob/Grep/file reads for structural questions (symbol lookup, call chains, impact) -- the answer is pre-indexed.code_impactFind what is affected by changes to a symbol. Prefer this over Glob/Grep/file reads for structural questions (symbol lookup, call chains, impact) -- the answer is pre-indexed.code_mapGet the architectural map of a repository: module communities with their key symbols and files, ranked by size. Prefer this over directory listings or file reads when orienting in an unfamiliar codebase -- the answer is pre-indexed.code_querySearch the codebase for symbols, patterns, or concepts using natural language or code patterns. Prefer this over Glob/Grep/file reads for structural questions (symbol lookup, call chains, impact) -- the answer is pre-indexed.code_reindexRebuild the code index of the calling session's own repo (runs gitnexus analyze detached; its output is captured to <data>/code-index/<slug>/analyze.log). Returns after the first tick -- outcome "started" (lock held, process alive, output seen), "up-to-date", "starting" (running, no tick yet), "already-running", or "not-started" with a typed reason (npx-not-found, gitnexus-not-found, analyze-failed, spawn-failed, remote-member, gitnexus-too-old, provider-not-supported); every result also carries injectedBlockFiles (agent docs still holding a gitnexus block from an earlier plain analyze run; never edited). Only the gitnexus provider is supported: provider none fails with E-CODE-INTEL-DISABLED, any other provider (e.g. codebase-memory, which manages its own index) gets not-started with reason provider-not-supported naming the provider. Poll code_status for completion.code_statusReport the code index state of the calling session's own repo: the last analyze run (phase, result indexed|up-to-date|incomplete|failed, last log line, log path), live readiness (ready|building|interrupted|inconsistent|missing; building = an analyze is live, including one rewriting an existing index, which is never served meanwhile; interrupted = marked incomplete with no analyze running; inconsistent = the gitnexus registry or the fleet record of its last build names a different commit than meta.json, with the reason in inconsistency), the indexed commit, autoReindexPaused (a failed automatic run that paused automatic rebuilds until code_reindex), and injectedBlockFiles / injectedBlockWarning (agent docs still holding a gitnexus block from an earlier plain analyze run). Only the gitnexus provider is supported: provider none fails with E-CODE-INTEL-DISABLED, any other provider gets {outcome: "not-started", reason: "provider-not-supported", provider, indexedCommit: null} instead of gitnexus readiness.code_testsFind the test files and test functions that exercise a symbol (transitive callers, depth 2). Use this to run targeted tests for the code you changed instead of the full suite. Prefer this over Grep for test discovery -- the call graph is pre-indexed.compose_permissionsSet up and deliver the right permissions to a member for their role or tags. Automatically tailors permissions to the project type. Pass tags (e.g. ["doer","gpu"]) to layer custom tag profiles additively on top of the base role; a doer/reviewer tag sets the primary mode and wins over role. Use grant to add specific permissions mid-sprint without a full recompose. Use dry_run to read the composed allow list without writing anything.credential_store_deleteDelete a named credential from the store (both session and persistent tiers).credential_store_listList all stored credentials (names and metadata only — no values).credential_store_setCollect a secret from the user out-of-band and store it. Returns a handle (sec://NAME) and scope. Use {{secret.NAME}} tokens in execute_command to inject the value.credential_store_updateUpdate metadata (members, TTL, network policy) on an existing credential without re-entering the secret.dolt_push_mutexGlobal cross-sprint dolt push mutex hosted on the fleet server, so sprints launched WITHOUT a supervisor still serialize their `bd dolt push` calls. "acquire" enqueues (FIFO) and returns {granted, ticket, token?}; "poll" re-checks a ticket without losing its queue position; "release"/"renew" are token-guarded; "cancel" drops a ticket; "status" snapshots holder + queue.execute_commandRun a shell command on a member. Use for quick tasks like installing packages, checking versions, or running scripts.execute_promptRun an AI prompt on a member. Supports session resume for multi-turn conversations. On success, the reply text is returned in structuredContent.response (alongside usage and sessionId).fleet_snapshotCheap read-only fleet view for status displays: every member with its last-known status (busy/idle/offline/unknown), icon, category and holder, as JSON. Reads only local state -- no SSH probes, no writes. Use fleet_status for a live check.fleet_statusGet status of all fleet members. Use json format for structured data.get_member_model_pricingReturns a member's cheap/standard/premium tier resolved to a concrete model and its per-1M-token price (prompt/completion), for real per-dispatch cost tracking instead of a tier-band estimate. A tier is null when its resolved model has no known price.kb_bible_commitMerge confirmed entry ids into the bible (format v3, per-entry file hashes), remove superseded or invalidated entries, and commit locally with base-branch provenance (used by the sprint kb_maintainer); `withdrawals` records a reviewer's withdrawal as a bible tombstone (no local row change; applied by `kb_import` only once merged) and `restore_ids` undoes one (`ids` never clears a withdrawn tombstone; `demoted_ids` tombstones only ids the base bible carries); on an http KB project entries are skipped (`bible_skipped: true`) but withdrawals are still written as tombstones; a withdrawn tombstone outranks a demotion, an id is never both an entry and a tombstone, and an unreadable base bible is reported as `base_bible_error`. To apply merged withdrawals from the CLI run `apra-fleet kb import --ref refs/remotes/origin/main --base-branch main` after fetchingkb_capabilitiesReport what the project KB serves: `{contract, routes, branch_aware, query_filters?}` (the KB server's GET /api/kb/capabilities body for http KBs; read-only), plus `fleet_build` `{version, bible_rules}` of the answering fleet serverkb_captureStore a learning, context-cache, runbook, or knowledge entrykb_contextBatch file freshness check (single git call for N files)kb_demoteWithdraw trust: lower a CONFIRMED entry back to INFERRED (the one reversible rung; never a ladder in its own direction)kb_exportAdditively merge live CONFIRMED entries whose cited files still match their recorded hashes into `.fleet/kb-canonical.json` -- the git-shareable team bible (FULL session only)kb_feedbackDownvote a KB entry that proved wrong in practice: { id, reason, role? }. Marks the entry stale=1 + flagged_for_review=1 and appends an ASCII feedback note "[feedback <ISO>] <validated-role>: <reason>" (CONTENT_CAP respected). NEVER deletes and NEVER touches confidence -- a downvoted CONFIRMED entry stays CONFIRMED-but-stale-flagged; the human resolves it in kb-review, this tool only flags it for that review. Exception: an ACTIVE user-directive is flagged for review but NOT staled (directives outrank agent experience -- the human decides); a pending directive proposal stales normally. Not available in a MEMBER session, under a SQLite or an http KB provider: it returns E-MEMBER-VIEW-READ-ONLY and changes nothing.kb_freshness_sweepBounded full-KB bidirectional freshness sweep: re-hash every entry that has a stored per-file basis against the CURRENT worktree, mark mismatches stale, and revive stale entries whose full basis matches again (superseded, feedback-downvoted, and invalidated entries stay retired). This is the branch-switch revival surface kb_session_prime cannot be (prime excludes stale entries). Returns {checked, staled, unstaled}.kb_harvestExtract learnings from a session transcript (auto-fires after execute_prompt)kb_importImport a merged bible (.fleet/kb-canonical.json) into the warm local KB -- the post-merge write path (the prime-time cold-seed is output-only). Reads the repo-resolved bible, or an explicit --path file. Each entry routes through the AUDN choke point (duplicate -> skipped, refinement -> linked, contradiction -> flagged); non-directive entries KEEP their bible confidence (the bible is a git-reviewed, human-merged artifact), stamped source="import"; type="user-directive" entries are FORCED to pending proposals (never active -- a bible cannot smuggle an active directive). Idempotent (re-import of the same bible adds nothing). Runs a freshness sweep after import so entries whose basis does not match this worktree are staled. Accepts every bible shape: a legacy bare JSON array and the v2/v3 {version, provenance:{branch} (older bibles also carry commit and entry_count, ignored), entries} envelope. A v3 entry's source_file_hashes (repo-relative path -> hash, covering every cited file) is stored as its basis exactly -- local files are never re-hashed for it; an entry without a valid carried map (any v1/v2 entry) gets a LOCAL freshness-only basis hashed from this worktree, so it still goes stale when a cited file changes; that local basis is never exported and never admits the entry to kb_export or kb_bible_commit, so neither re-publishes it until it is recaptured. Entries with no source_files, or citing files absent from this worktree, are REJECTED (an entry with no checkable basis can never be staled, so nothing could falsify it) -- re-importing a legacy bible deliberately drops those. Returns {imported, skipped, linked, flagged, rejected, demoted, sweep:{checked, staled, unstaled}, withdrawals:{sent, withdrawn, repromoted, already, not_found, unsupported, deferred}}. WITHDRAWALS: a bible tombstone with reason "withdrawn" lowers a local CONFIRMED row to INFERRED (never creating one; a row promoted after the tombstone stays CONFIRMED and is reported repromoted, one already below CONFIRMED is reported already) ONLY when the bible is the merged base bible: read with ref = refs/remotes/<remote>/<base> (<remote> any remote configured in the clone, such as origin), where <base> is the base_branch the caller gives (without it, the default branch refs/remotes/<remote>/HEAD names) and equals provenance.branch of that bible, which is never trusted alone; from the work tree, HEAD or any other ref nothing is lowered and the ids are listed in withdrawals.deferred (withdrawals.warning says why, naming the expected ref, when the ref belongs to no configured remote or the base branch could not be established). Under an http project KB no entry is imported: every count is 0 and the result carries bible_skipped: true with a reason (the KB server is the source of truth); read at that base ref (not from a MEMBER session without the kb_maintainer grant), the withdrawn tombstones are replayed in one POST /api/kb/withdraw and each outcome is reported, with bible_source naming the ref; a ref that holds no bible (an http repo has none until its first withdrawal merges) answers that same all-zero bible_skipped report with bible_source, not E-BIBLE-NOT-FOUND; a server that does not serve the withdraw route gets nothing, the ids are listed in withdrawals.unsupported and withdrawals.warning carries the E-KB-HTTP-UNSUPPORTED message naming the route. Pass skip_sweep: true to skip the post-import freshness sweep -- the sweep re-judges EVERY entry against the given worktree, which is right for a deliberate audit but wrong for a routine warm-the-KB import (it mass-stales entries merely because unrelated files moved on, which in turn empties the promotion candidates kb_list returns). `path` names only the bible file to read, never which KB is written. TRUST BOUNDARY: importing the repo-resolved bible as committed is the git-reviewed trusted channel; an explicit --path bible is caller-asserted trust, equivalent in power to kb_promote, so a MEMBER session without the kbkb_invalidateMark files stale immediately (also called by the git hook), or discard own entries by `ids`kb_listAudit-list entries by confidence/type/module/symbol (read-only, no use_count bump)kb_promoteAdvance confidence: UNVERIFIED -> INFERRED -> CONFIRMED (FULL session, or the sprint's kb_maintainer member session only)kb_queryTwo-level FTS retrieval (L1: title+summary, L2: full content)kb_reconcile_prefilterMechanical hash-basis prefilter over all flagged contradiction pairs (including stale members -- see flaggedPairs liveness contract). Re-hashes both sides of each pair against the CURRENT worktree: exactly one side fully matching wins mechanically via kb_resolve_contradiction (evidence "hash-basis match on merged worktree"); both match, both mismatch, or an empty/missing basis on either side leaves the pair for the reconciler agent. Pairs involving an ACTIVE user-directive are never touched. Returns {pairs, resolved, left_for_agent, skipped_directive}. Run after kb_import + kb_freshness_sweep, before dispatching the reconciler agent. It mints CONFIRMED, so a MEMBER session is served it only with the kb_maintainer grant (like kb_resolve_contradiction).kb_resolve_contradictionResolve a KB contradiction pair: {winnerId, loserId, evidence}. The SINGLE write path for reconcile resolutions (used by kb_reconcile_prefilter and the reconciler agent alike). Winner ends confidence=CONFIRMED with the evidence note appended and both flag fields cleared (flagged_for_review + contradiction_of); stale is cleared ONLY if the D2 un-stale predicate holds on the post-flag-clear row (so a downvoted or invalidated winner still stays retired -- it wins the contradiction, not its reputation). Loser ends superseded_at=now + stale=1 + flag cleared, never deleted. REFUSES (throws, writes nothing) when either id is missing, either entry is already superseded, the ids do not form a genuinely linked contradiction pair, or the pair involves an ACTIVE user-directive.kb_session_primePrime a session: stale files, fresh summaries, GitNexus call listkb_setupInstall git hook, write provider config, store remote token encrypted (FULL session only)kb_statsRead-only KB health aggregation: totals by confidence/type, stale/flagged/superseded counts, retrieval hit_rate, promote_ratio, canonical-bible presence/drift, and optional per-symbol coverage. Never bumps use_count/last_accessed (kb_list pattern). Bible drift counts only CONFIRMED entries that pass the project-bible export basis predicate; the rest are reported under bible.not_exportable, and bible.hash_drifted counts committed bible entries whose carried hashes no longer match HEAD. Bible drift is visibility for the machine that owns the KB -- CI cannot see the local kb.sqlite, so there is no CI gate on it. In a MEMBER session over a SQLite project KB the counts describe the member's checkout bible; under an http KB provider stats are reported as unsupported (the bible is not used).list_membersList all fleet members and their current status. Use format="json" for structured data. Use tags=["gpu"] to filter to members that have ALL specified tags (AND semantics); omit tags to return all members.member_detailGet detailed status for one member: connectivity, AI version, authentication, active session, resources, and git branch.member_reservationReserve, release, or force-release exclusive ownership of a member for a sprint (server-side reservation; does not yet block dispatch). "reserve" claims the member for sprint_id; "release" clears it if sprint_id matches the current holder; "force_release" clears a wedged reservation regardless of owner.monitor_taskCheck status of a long-running background task on a cloud member. Optionally stop the cloud instance automatically when the task completes.provision_llm_authAuthenticate a fleet member so it can run prompts. With api_key, deploys that API key or Claude Code OAuth token (routed by prefix). Without api_key, re-deploys a credential already stored for the member, else copies your current login session; force_oauth_copy: true copies your login anyway and clears the stored credential. Run this before execute_prompt if the member reports no authentication. Note: a copied OAuth session is shared and its refresh token is rotated across every holder, so a refresh on one machine can invalidate the copies elsewhere; prefer an API key for unattended members.provision_vcs_authSet up git access credentials on a member so it can clone, push, create pull requests, dispatch workflows and re-run CI jobs. Supports GitHub, Bitbucket, and Azure DevOps. On GitHub with a GitHub App, git_access decides which of these the member may do: push+pr covers create pull requests and dispatch workflows. Tests connectivity after setup.receive_filesDownload files from a member to a local directory. Always batch multiple files into a single call — never invoke repeatedly for individual files.register_memberAdd a machine to the fleet. Use member_type "local" for this machine or "remote" for a machine reachable over SSH. Choose the AI provider the member will use for prompts. Optional: add tags for grouping and filtering members.remove_memberRemove a member from the fleet.report_statusCalled by a connected interactive member session (not the orchestrator) to report it is done responding to a send_message notification and available again ("online") or still connected but not actively engaged ("idle"). Closes the busy->online/idle status loop send_message opens.respond_to_messageCalled by a connected interactive member session to respond to a prompt delivered via execute_prompt or send_message. Pass reply_to as the msgid from the original notification's meta. If execute_prompt is waiting on this reply_to, its call resolves with this content; otherwise this is a no-op response with a clear "no pending call" result.revoke_vcs_authRemove VCS credentials from a member. Specify the provider (github, bitbucket, or azure-devops) to revoke.send_emailSend an email. Pass provider config inline (provider, from, and for SMTP: host, port, user, secure). Secrets (API keys, passwords) are resolved from the credential store -- store them first with credential_store_set (names: "sendgrid_api_key" for SendGrid, "smtp_password" for SMTP). Returns JSON with messageId on success or error on failure.send_filesTransfer local files to a member. Always batch multiple files into a single call — never invoke repeatedly for individual files.send_messageSend a task message to a connected interactive member session via SSE. Returns the message ID. With probe: true, sends nothing and only reports whether a session holds the target and can receive channel messages (connected, channel_capable).session_statsReturn a member's kb_* and code_* tool call counts on this server (aggregated across the member's sessions, engine-origin sessions excluded) plus the time counting started. On a member session it reports the calling member.setup_git_appOne-time setup: register a GitHub App for git token minting. Requires a GitHub App ID, private key (.pem) file path, and installation ID. The app must already be created and installed, with the repository permissions each git_access level needs (see docs/github-app-setup.md; push+pr needs Metadata, Contents, Workflows, Pull requests, Actions) -- a mint requesting a permission the App lacks fails.setup_ssh_keyGenerate an SSH key pair and migrate a member from password to key-based authentication.shutdown_serverGracefully shut down the MCP server. Run /mcp afterwards to start a fresh instance with the latest code.stop_promptKill the active LLM process on a member. Always call TaskStop on the dispatching background agent after calling this.update_llm_cliUpdate or install the AI provider CLI on members. Omit member to update all online members at once. Use install_if_missing to install on members that don't have it yet.update_memberChange a member's name, connection details, working directory, AI provider, tags, or other settings. Unknown input keys are rejected. Pass fleet_install: "auto" to upgrade the member's own apra-fleet when it is missing or older.vcs_credential_execRun a credential-requiring git/VCS command on a member WITHOUT ever learning the credential. Put one of two literal placeholders where the token belongs: {{vcs_token}}, referenced BARE (never inside your own quotes) -- the server substitutes it already escaped AND quoted for that member's shell; or {{vcs_token_inline}}, referenced INSIDE your own single quotes (e.g. an Authorization header value) -- the server substitutes it escaped for the interior of a single-quoted string, with no quotes of its own. Using {{vcs_token}} inside your own quotes double-escapes it; use {{vcs_token_inline}} there instead. Both may appear in the same command. Bitbucket REST uses the token as a Bearer value (-H 'Authorization: Bearer {{vcs_token_inline}}'), with no username and no email. The optional {{vcs_username}} and {{vcs_username_inline}} placeholders substitute the credential helper's git username under the same two dialects (for Bitbucket always x-bitbucket-api-token-auth, a git-only username, never a REST login) -- never on their own: a token placeholder is still required. The server dispatches the command and redacts both values from the returned stdout/stderr. Use this instead of reading a token back out of a credential helper.versionReturns the installed apra-fleet server versionSecurity checks
- ✓README presentThe repository's README runs to about 3.7K words.
5 checks have not been run yet.
README
The repository's README runs to about 3.7K words. The original in the repository is authoritative.
Read full README