These docs track main. Latest release: v2.0.0.

Skip to Content
antigravity-booster
Internals

Module map

Every module and its exports, generated from the export declarations in lib/, hooks/, sidecars/, mcp/ and bin/.

This map is generated by statically reading the export declarations of every module (named exports, export { } lists and re-exports). It replaces the hand-written module map in the old architecture document, which named classes and functions that no longer exist (C26: the pool manager is PoolSet).

ModuleExports
bin/agb.mjs(no exports: entry point)
hooks/lifecycle.mjsevaluateLifecycleEvent, inspectActiveAdlcRepo, isLifecycleFastBypass, isValidConversationId, resolveLifecyclePluginData, sessionStateFilename
hooks/policy/constants.mjsAGY_CONTROL_TOOLS, ASK_PERMISSION_ACTIONS, ASK_PERMISSION_PROSE_KEYS, BOOSTER_MCP_SERVER, BOOSTER_MCP_SERVERS, BOOSTER_MCP_TOOLS, BRAIN_APPS, CODEGRAPH_READ_TOOLS, DESTRUCTIVE_ROOT_VERBS, DIR_READ_TOOLS, EXCLUDED_CONTENT_KEYS, EXTERNAL_REPO_MUTATING_TOOLS, GENERATE_IMAGE_PROSE_KEYS, IMPLICIT_RAIL_DIRS, IMPLICIT_RAIL_FILES, NOTEBOOK_EXEC_TOOLS, ORCHESTRATION_TOOLS, PATHLESS_HARNESS_READ_TOOLS, PATH_MUTATING_TOOLS, PURE_READERS, READONLY_BOOSTER_CONTROL_ACTIONS, READ_ONLY_TOOLS, READ_TOOL_PATH_SCHEMAS, REQUIRED_READ_PATH_KEYS, SED_ALLOWED_KEYS, SKILL_MUTATING_TOOLS, SKILL_RESOURCE_READ_TOOLS, STDIN_TOOLS, SUBAGENT_PROSE_KEYS, SUBAGENT_TOOLS, SWARM_META_KEYS, SWARM_PROSE_KEYS, SWARM_WORKSPACE_MODES, TICKET_STORE_DIR, TOOL_PATH_SCHEMAS, WORKFLOW_PROSE_KEYS, WORKFLOW_TOOLS
hooks/policy/evaluate.mjsbuildContext, evaluateNotebookExecution, evaluatePayload, evaluateSedFile, evaluateSendCommandInput, extractProbedPaths, extractReadToolPaths, goFoldKey, isBoosterMcpTool, normalizeArgsCaseInsensitive, validateSedCall
hooks/policy/paths.mjsbeginEvaluation, boosterDataRoots, brainRoots, expandHome, hasHomePrefix, headlessProtectedMatcher, isAllowedBrainArtifactTarget, isBenignProcRead, isHeadlessIpcOrRescuePath, isImplicitAncestorOnly, isMagicPath, isRailAncestorOnly, isValidConversationId, isWithin, matchDeclaredRail, matchImplicitRail, matchRoot, matchesScope, physicalResolve, protectedRoots, railStaticPrefix, repoRelative, resolveCandidate, resolveSafeTarget, verifyBrainArtifactDirectory
hooks/policy/shell-lexer.mjslexCommandLine
hooks/policy/shell.mjsclassifyRunCommand, inlineScript, isShimInvocation, unwrap
hooks/policy/verdict.mjsPASS, ask, deny, forceAsk, isInteractivePrompt, mostRestrictive
hooks/pre-tool-use.mjs(no exports: entry point)
hooks/session-start.mjs(no exports: entry point)
lib/accept-tui.mjsrenderAcceptTuiFrame, runInteractiveAcceptTui
lib/accept.mjsbuildAcceptanceDossier, computeHunkFingerprint, formatAcceptanceDossierHtml, formatAcceptanceDossierMarkdown, formatAcceptanceDossierMobile, loadAcceptVerdicts, parseUnifiedDiffHunks, resolveSafeBoosterDir, saveAcceptVerdicts, writeAcceptDossierFile, writeAcceptHtmlFile; re-exports ./remote-control.mjs
lib/acp-pool.mjsAcpReviewPool, createAcpReviewPool, isAcpPoolEnabled
lib/active-rails.mjsfindAdlcRoot, findGitTop, isActiveTicket, loadActiveRails, resolveTicket, unionActiveRails
lib/adlc-bridge.mjsIS_BUNDLED, KNOWN_ADLC_DEPENDENCY_DIGESTS, KNOWN_ADLC_DIGESTS, KNOWN_VENDORED_ADLC, MIN_ADLC_CLI_VERSION, PLUGIN_CONTRACT_STATUSES, STAGED_ADLC_ANTIGRAVITY_TREE_DIGESTS, SUPPORTED_PLUGIN_CONTRACT, assertNoLegacyTicketStore, authenticateAdlcPackage, computePackageTreeDigest, detectTicketStoreBackend, execAuthenticatedAdlc, execFileAuthenticatedAdlc, getApprovedLocksDir, getApprovedPinnedBase, isTemporaryOrWorldWritablePath, parseSemver, pinExecutable, planTicketToAdlcTicket, planTicketToRailTicket, planToAdlcTickets, pluginManifestDir, preventExecutableReplacement, readPluginContract, recoverStaleExecutableLocks, resolveAdlcBinary, resolveExecutionCommand, resolveVendoredAdlc, revalidateAdlcBinary, semverGte, spawnAuthenticatedAdlc, writeAdlcTickets
lib/adlc-tool.mjsrunAdlcTool
lib/agy.mjsALL_AGY_ERROR_KINDS, ALL_MODELS, BRAIN_PLAN_SCHEMA, COLDSTART_FINDINGS_SCHEMA, COLDSTART_SCHEMA, COLDSTART_VERDICT_SCHEMA, DANGEROUS_RUNTIME_ENV_VARS, ENV_ALLOWLIST, FAILURE_FINISHED_REASONS, FORBIDDEN_SECRETS, MAX_ARGV_PROMPT_BYTES, MAX_CONSECUTIVE_GARBAGE_BYTES, MAX_STREAM_LINE_BYTES, MAX_STREAM_TOTAL_BYTES, MODELS, MODEL_ALIASES, NdjsonWorkerDaemon, PARALLAX_VERDICT_SCHEMA, PROSECUTION_VERDICT_SCHEMA, QUOTA_RESPONSE_SCHEMA, RETIRED_35_MAP, REVIEW_FINDINGS_SCHEMA, SENSITIVE_KEY_PATTERN, STREAM_EVENT_SCHEMA, StreamWatchdog, WIN32_ENV_ALLOWLIST, buildRoleSettingsProfile, buildSpawnEnv, checkKernelContainment, classifyAgyOutcome, extractNormalizedTokenTelemetry, familyOf, isAgyTimeout, isAllowedEnvVar, isChildUnreaped, isLinuxContainerEnvironment, isTestExecution, killDaemonProcessTree, parseTimeoutMs, poolOf, prepareBuilderContainment, resolveDynamicEffort, resolveModelSlug, resolveUserHome, runAgy, safeExtractJson, shouldProjectCodegraphMcp, stageBuilderGeminiHome, stageFilteredMcpConfig, stageHooksOnlyBoosterPlugin, stageIsolatedGeminiHome, stageReadonlyGeminiHome, upstreamPoolOf, validateJsonSchema, verifyLinuxContainerAttestation, verifySandboxBypassAttestation
lib/bandit-router.mjsBanditModelRouter, MAX_STATS_ENTRIES, computeBillableTokenCostFactor, defaultStatsFilePath
lib/bootstrap.mjsbootstrap, isNpxTemp, resolveBoosterPluginPath, resolvePluginPath
lib/brain.mjsBRAIN_DIR, SOURCE_PLAN_FILENAMES, brainToPlan, formatPlanMarkdown, getActiveSessionId, getBrainDir, getBrainDirectories, isSafePathSegment, isValidBrainSessionId, listBrains, readBrain, resolveDefaultBrainDir, resolveSourcePlanMarkdown, writeArtifactFileAtomically, writePlanArtifact
lib/browser-gate.mjshasFrontendChanges, isLoopbackBrowserUrl, resolveBrowserGateConfig, runBrowserGate
lib/charters.mjsBUILDER_CHARTER_STATIC_PREFIX, PROSECUTOR_STATIC_PREFIX, REGEN_STATIC_PREFIX, WARM_REGEN_STATIC_PREFIX, builderAgentsMd, builderPrompt, deriveDeterministicFenceTag, fixPrompt, prosecutionPrompt, regenPrompt, warmRegenPrompt
lib/cli-statusline.mjsextractQuotaFromStatusPayload, installCliStatusLineSettings, parseAgyStatusPayload, renderCliStatusLine, renderCliWindowTitle, uninstallCliStatusLineSettings
lib/context-slice.mjsbuildContextSlice, buildReviewContextPack, computeDiffBlastRadius, discoverExternalCallers, extractCrossTicketSeams, extractFileSymbolSpans, formatHydratedBuilderAppendix, hasCodegraphIndex, parseSymbolAnchor, sanitizeBoundarySnippet, verifySymbolScopeDiff
lib/control-ipc.mjsresolveControlEndpoint, sendControlCommand, startControlServer
lib/decision-engine.mjsDECISION_PROVIDERS, DEFAULT_TIMEOUT_MS, DecisionEngine, MAX_DECISION_DIFF_CHARS, PRIMITIVES, gateReviewLenses, resolveDecisionConfig, scoreColdstartTickets, screenTicketFastShip, scrubSecrets, triageFindingsSystemOne, validateDecisionUrl
lib/digest.mjscomputeDirectoryDigest
lib/distill.mjsDEFAULT_MAX_RULE_BYTES, distillRunDefenses, isSafeRegexPattern, runLearnedChecks, validateLearnedChecksSpec
lib/doctor-models.mjsagyModelsStdout, agyModelsStdoutSync, checkModelCatalog, compareModelCatalog, parseAgyModelRows, parseAgyModels
lib/doctor-settings.mjscheckCliSettings, stripJsonc
lib/doctor.mjsMIN_AGY_VERSION, MIN_NODE_VERSION, RECOMMENDED_AGY_VERSION, applyDoctorFixes, boosterDataDir, checkAdlcBinary, checkAgyAuth, checkAgyBinary, checkBrainDir, checkCliSettings, checkCodegraph, checkDecisionEngine, checkHookLogDir, checkKernelContainment, checkKillswitchUsage, checkModelCatalog, checkNodeVersion, checkPlugin, checkPolicyGuard, checkProbePlugins, checkSandbox, checkSecondaryInstall, checkTicketStore, compareModelCatalog, evaluateStagedAdlcPlugin, healthLogPath, isTestExecution, parseAgyModels, runDoctor, runInit, verifyWindowsSandboxActive, verifyWindowsSandboxAttestation
lib/factory-ledger.mjsFactoryLedger, MAX_FACTORY_LEDGER_ENTRIES, computeRunEconomics, defaultFactoryLedgerPath
lib/gate-ticket.mjsresolveNullHooksPath, runGateTicket, verifyWorkingTreeScope
lib/gates.mjsgateSandboxAvailable, gateSandboxEnabled, linuxBwrapArgs, runGate, runGates, sandboxProfile
lib/handoff.mjsformatHandoffMarkdown, runTicketHandoff
lib/holdout.mjsbuildHoldoutAuthorPrompt, cleanHoldoutScenarios, collectHoldoutMaskDirs, computeRepoHoldoutHash, extractHoldoutCodeBlock, extractStaticScenarioTitles, invokeHoldoutAuthor, listHoldoutScenarios, resolveHoldoutBaseRoot, resolveHoldoutDir, runHoldoutScenarios, runMaskedWorktreeGate, runMaskedWorktreeGates, sanitizeHoldoutFailureOutput, selectOppositeHoldoutPool, shouldRunHoldoutScenarios, stageHoldoutScenarios, verifyHoldoutRedPhase
lib/hud.mjsTerminalHUD
lib/interactive-escalation.mjsESCALATION_ACTIONS, buildGrillMeEscalationPrompt, formatEscalationAlert, parseEscalationAnswer, runInteractiveEscalation
lib/json.mjssafeExtractJson
lib/lock.mjsacquireRepoLock
lib/migrate.mjsHANDOVER_TIMEOUT_MS, SNAPSHOT_SIZE_CAP_BYTES, breakLock, finishUninstallCommand, isOwnedSkillLink, migrate, parseValidateOutput, scanSkillSymlinks, treeSize
lib/migration-lock.mjsMIGRATION_LOCK_DIRNAME, MIGRATION_STATE_FILENAME, MigrationLockError, UNINSTALLER_DIR_PREFIX, acquireMigrationLock, adoptMigrationLock, assertMigrationLockHeld, boosterDataDir, breakMigrationLock, clearMigrationState, finishUninstall, getProcessStartTime, invalidateMigrationLockToken, isAlive, migrationLockDir, migrationStatePath, parseProcStatStartTime, readLockMeta, readMigrationState, releaseMigrationLock, writeMigrationState
lib/models.mjsALL_MODELS, ARL_LENS_MODELS, CODE_ARL_LENSES, DYNAMIC_EFFORT_BASE_MODELS, ENTERPRISE_MODEL_ALIASES, FRONTIER_NO_ORCHESTRATOR, MODELS, MODEL_ALIASES, ORCHESTRATOR_MODELS, PLAN_ARL_LENSES, PROSECUTORS, PROSECUTOR_CANDIDATES, RETIRED_35_MAP, RETIRED_MODEL_MAP, ROLE_MODELS, TIER_CANDIDATES, VALID_EFFORTS, escalateModelSlugInFamily, familyOf, modelFor, poolOf, resetOrchestratorRoutingState, resolveModelSlug, runWithOrchestratorRoutingState, sameFamilyProsecutorsFor, selectCliEffortFlag, selectRiskTieredLensModel, selectRiskTieredProsecutor, setOrchestratorRoutingState, tierCandidates, upstreamPoolOf
lib/mux.mjsSUPPORTED_MUXES, buildMuxNotificationArgs, buildMuxSplitPlan, detectMultiplexer, launchMuxSplit, normalizeMuxName
lib/ndjson-worker.mjsMAX_BYPASS_RESPAWNS, NdjsonWorkerDaemon, buildRoleSettingsProfile, extractNormalizedTokenTelemetry, killDaemonProcessTree
lib/overview-pane.mjssyncOverviewPaneState
lib/plan-integrity.mjsPATHSPEC_RE, TICKET_ID_RE, computeReachability, decomposeTickets, extractPositionalArgs, formatStructuralDefects, isSafePathSegment, normalizePathspec, sanitizeRemoteUrl, validatePathspec, validatePlan, verifyDeclaredPaths, verifyGateScriptIntegrity, writeArtifactFileAtomically
lib/plan.mjsPARALLAX_JUDGE_SCHEMA, PARALLAX_READER_SCHEMA, PATHSPEC_RE, PREMORTEM_SCHEMA, TICKET_ID_RE, applyModelRouterTiers, buildPlanPrompts, compilePlan, compilePlanDelta, compilePlanToWorkflow, computeTopologicalWaves, decomposeTickets, extractInlinePlanComments, formatStructuralDefects, normalizePathspec, parallaxEdges, planEdges, premortemPlan, projectionErrorIsFatal, validatePathspec, validatePlan, verifyDeclaredPaths, verifyGateScriptIntegrity
lib/plugin-paths.mjsADLC_ANTIGRAVITY_PLUGIN_NAME, ADLC_GEMINI_PLUGIN_NAME, AGY_INSTALL_TIMEOUT_MS, BOOSTER_PLUGIN_NAME, BUNDLED_ADLC_ANTIGRAVITY_VERSION, INSTALL_COPY_EXCLUSIONS, PINNED_ADLC_ANTIGRAVITY_INTEGRITY, STAGE_COPY_EXCLUSIONS, TERMINAL_SHIM_CONTENT, VENDORED_ADLC_ANTIGRAVITY_TARBALL, copyPluginTree, installAdlcAntigravityFromVendor, installPluginTarball, installTerminalShim, isBoosterPluginName, pluginsDirFor, resolveAgyBinary, resolveAssetPath, resolvePluginRoot, resolveTarBinary, safePluginInstall
lib/pools.mjsActiveV2LeasesPresentError, BASE_CAPS, DEFAULT_CAPS, HEARTBEAT_INTERVAL_MS, LEASE_TTL_MS, LegacyFleetActiveError, PROSECUTORS, PROSECUTOR_CANDIDATES, PoolSet, RFC3339_UTC_RE, TIER_CANDIDATES, acquireLease, assertNoActiveLegacyFleet, canonicalPoolOf, computeEffectivePercent, computeQuotaResumption, computeScaledCap, drainPools, durableWriteJson, estimatePlanQuotaRunway, getLockFile, getProcessStartTime, getStateFile, getStatusLineQuotaFile, getV2StateFile, isLeaseActive, isProcessAlive, parseQuotaProbeOutput, poolOf, probeQuota, readFreshStatusLineQuotaCache, readSharedState, readV2State, reconcileLeases, registerLeaseWorkerPid, releaseLease, renewLease, safeWriteHeartbeatFile, sameFamilyProsecutorsFor, terminateWorkerTree, tierCandidates, upstreamPoolOf, withLock, withLockSync, writeSharedState, writeStatusLineQuotaCache, writeV2State
lib/preflight.mjsCOLDSTART_SCHEMA, applyMergeForecast, coldstartPrompt, coldstartTickets, forecastOverlaps, hashTicketColdstart, preflight, verifyDeclaredPaths
lib/prosecute.mjsblockingFindings, prepareProsecutionPrecheck, prosecute, resolveHollowTestCommand, resolveProsecutionMode, runHollowTest
lib/remote-control.mjsbuildRemoteControlArgs, formatMobileAcceptCard, formatMobileStatusCard, isRemoteControlEnv, launchRemoteControl
lib/remote-sdk-worker.mjsDEFAULT_CONCURRENCY, KILL_GRACE_MS, buildRemoteSdkBridgeScript, isRemoteSdkAvailable, runRemoteSdkPlan, runRemoteSdkTicket, verifyAndMergeRemoteBranch
lib/rescue.mjsFORBIDDEN_RESCUE_CUSTOMIZATION_PREFIXES, buildRescueBrief, clearRescueWorktreeLock, hasProtectedRescueWorktree, isForbiddenRescuePath, runInteractiveRescue, saveRescueSnapshot, writeRescueWorktreeLock; re-exports ./worktrees.mjs
lib/review.mjsARBITER_TRIAGE_SCHEMA, ARL_FINDING_SCHEMA, CODE_LENSES, LENSES, MAX_REVIEW_PAYLOAD_CHARS, PLAN_LENSES, REVIEW_FINDINGS_SCHEMA, arbiterPrompt, buildReviewPrompts, canUsePostRunSeams, lensPrompt, loadPriorFindings, normalizeSeverity, planLensPrompt, reviewCalibration, reviewDiff, reviewFleet, reviewPlan, savePriorFindings, selectLensModel, triageFindings
lib/role-settings.mjsPERMISSION_RULE_RE, READONLY_ROLES, buildRoleSettingsProfile, compileRailsToDenyRules, isValidPermissionRule
lib/run-integrity.mjsABSENT, diffRunIntegrity, enforcementGate, hooksDirFor, isWellFormedRail, sanitizedGitEnv, snapshotRunIntegrity, verifyRunIntegrity
lib/sandbox-probe-helper.mjsrunSandboxProbe
lib/scheduler-verify.mjsBanditModelRouter, bisectFailedBatch, buildContextSlice, buildSandboxCommandWrapper, checkEnforcementAvailable, checkFlailDetector, checkRailsGuard, deriveImpactedTests, executePostGateDarkFactoryChecks, executeSpeculativeMergeBatch, partitionTddScopes, planSpeculativeMergeBatches, prepareTicketContextAndTdd, promoteTestsToBuilderRails, recordGate, resolveTicketGateConfig, runConsensusFix, runDeterministicAutofixNode, runSymbolScopeVerification, sanitizeBuilderStreamOutputForFlail, selectPreLeaseProsecutor, selectRiskTieredProsecutor, shouldRunTddSplit, syncOverviewPaneState, verifyRedPhaseTests, verifyScopeAndAntiNoOp, verifySymbolScopeDiff, wrapConsensusGateCommand
lib/scheduler.mjsBanditModelRouter, GIT_MAX_BUFFER, buildSandboxCommandWrapper, checkEnforcementAvailable, checkFlailDetector, checkRailsGuard, deriveImpactedTests, executeSpeculativeMergeBatch, getGitCommonDir, getGitIndexPath, hostMediatedFetch, prepareTicketContextAndTdd, reconcileIntegrationJournal, recordGate, resolveTicketGateConfig, runConsensusFix, runDeterministicAutofixNode, runPlan, runSymbolScopeVerification, safeWriteWorktreeFile, sanitizeBuilderStreamOutputForFlail, selectAlternateModel, selectPreLeaseProsecutor, selectRiskTieredProsecutor, setupAttemptGitDatabase, snapshotRootGit, syncOverviewPaneState, terminateProcessTree, verifyRootGitIntegrity, verifyScopeAndAntiNoOp, verifyWorktreeGitPointer, warmRegenPrompt, wrapConsensusGateCommand
lib/schemas.mjsARBITER_TRIAGE_SCHEMA, ARL_FINDING_SCHEMA, BRAIN_PLAN_SCHEMA, COLDSTART_FINDINGS_SCHEMA, COLDSTART_SCHEMA, COLDSTART_VERDICT_SCHEMA, PARALLAX_VERDICT_SCHEMA, PROSECUTION_VERDICT_SCHEMA, QUOTA_RESPONSE_SCHEMA, REVIEW_FINDINGS_SCHEMA, STREAM_EVENT_SCHEMA, validateJsonSchema
lib/semver.mjscompare, eq, gt, gte, lt, parse
lib/shape.mjsformatShapeReport, parseStructuredSpec, preAnalyzeSpec, runShapeCli, scanStaticImportCoupling, syncBrainPlanArtifact
lib/status.mjsRunStatus, cleanOldLogs, formatReportMarkdown, renderStatus, sanitizeRunId, watchStatus
lib/stream-watchdog.mjsStreamWatchdog, resolveDynamicEffort
lib/sweep.mjsexpandTargets, sweepToPlan
lib/tdd-split.mjspartitionTddScopes, promoteTestsToBuilderRails, sanitizeRedPhaseEnv, selectOppositePoolHint, shouldRunTddSplit, verifyRedPhaseTests
lib/terminal-osc.mjsAttentionTransitionTracker, formatOsc8FileLink, formatOscAttentionAlert, sanitizeOscField, stripOscAndAnsi
lib/test-impact.mjsbisectFailedBatch, deriveImpactedTests, planSpeculativeMergeBatches
lib/tui.mjsANSI, PHASE_CONFIG, SPINNERS, formatDuration, padVisible, renderPoolGauge, renderProgressBar, renderTUIDashboard, stripAnsi, visibleLength
lib/twins.mjsbuildTwinGateEnv, isAllowedTwinEnvVar, matchTwinRoute, startDigitalTwins, validateTwinsConfig, wrapTestCmdWithTwinEnv
lib/workflow-emit.mjscompilePlanToWorkflow, computeTopologicalWaves
lib/worktrees.mjsJOURNAL_PHASES, abortAnyMerge, assertSafeAdlcDir, branchDiff, changedFiles, cleanEmptyNodeModules, clearRescueWorktreeLock, commitAll, createIntegrationWorktree, createWorktree, currentBranch, deleteBranch, discardProjection, ensureGitignore, hasProtectedRescueWorktree, isDirty, isMidMerge, materializeWorktreeNodeModules, mergeWorktree, pruneWorktrees, quarantineIntegrationJournal, readIntegrationJournal, reapIntegrationWorktrees, removeMaterializedNodeModules, removeWorktree, resetToBase, syncCodegraphIndex, unlinkIntegrationJournal, validateWorktreeRoot, writeIntegrationJournal, writeRescueWorktreeLock
mcp/server.mjsbuildSnapshotPayload, resolveAgbEntry
mcp/ui-views.mjsMCP_APP_MIME_TYPE, UI_RESOURCES, buildAcceptWorkbenchHtml, buildFlightDeckHtml, buildManifestViewerHtml, buildMissionControlHtml, buildPlanCardHtml, buildPlanViewerHtml, buildReviewCardHtml, buildTicketViewerHtml, renderUiResource
sidecars/jetski-launcher.mjsparseJetskiPort, readJetskiEvents, resolveRepoPath, start, writeTokenFile
sidecars/server.mjsresolveSafeEventsPath, serveSidecar

Entry points (bin/agb.mjs, hooks/pre-tool-use.mjs, and the sidecar launcher) have no exports. For how the modules fit together see Architecture.