The CLI prints JSON for machine-readable commands. Commands that mutate state record receipts or require explicit input files; diagnostic commands stay read-only unless their own help says otherwise.
For the choice between the simple start route and the atomic lifecycle
commands, including multiple agents, host model settings, prompts, timeouts
and retries, see Workflow customization and execution
controls.
Python 3.11-3.14 is supported. Install the exact release from the official PyPI project:
python -m pip install agent-lifecycle-kit==1.61.0agent-lifecycle version: print package version.agent-lifecycle schema list: list known public schemas.agent-lifecycle schema show <schema-id>: print one schema.agent-lifecycle contract policy/check: inspect public compatibility policy.agent-lifecycle tier resolve --request <request.json>: resolve the SDD tier and deterministic request digest from a structured tier request.agent-lifecycle conformance: reserved compatibility selector. It has no executable conformance workflow; useagent-lifecycle adapter validate, adapter inspection and the release conformance validators instead.
agent-lifecycle specification check: validate specification shape.agent-lifecycle specification completion-gate: build a deterministic stop/continue/escalate/split/follow-up receipt from current evidence.agent-lifecycle plan check: validate a plan manifest and optional lock. Add--require-completenessto enforce structural completeness for the selected SDD tier.agent-lifecycle plan completeness-check: returnagent-plan-completeness-validation.v1with actionable tier blockers.agent-lifecycle plan snapshot/reconcile/handoff: maintain compact, reviewable plan state.agent-lifecycle import plan/check: keep imported work draft-only until reviewed.import plan --source <file-or-folder> --dialect openspec|spec-kit|bmad|spec-kittyimports OpenSpec, Spec Kit, BMAD or Spec Kitty Markdown planning material with deterministic provenance.issue-to-specskill: convert external issues into draft-only ALK specification input.agent-lifecycle quality template-list/template-check: inspect and validate draft-only task templates.- Cookbook entry points for common tasks are documented in
docs/guides/lifecycle-cookbook.md.
-
agent-lifecycle start --adapter <id> (--file task.md | --text "..." | --resume <session-id>): beginner-facing facade over task intake, frozen managed-run delegation and stored ALK session resume. Task-source aliases are--task-fileand--task-text; exactly one action is required.--mode auto|research|plan|review|implementdefaults toauto. Raw input and every mode except explicitimplementremain non-executing.implementrequires a structured frozen request with complete state, manifest, lock, task, operation and revision bindings. The command returnsagent-lifecycle-start-receipt.v1and never treats--resumeas a native host conversation identifier. External execution remains off unless a fully boundimplementcall also supplies--launch --host-launch-profile .alk/host-launch/<adapter>.json; see Local host launch. -
agent-lifecycle start --adapter <id> --mode plan --file task.md --launch: request one exact-version qualified planning-only host process. The outer start receipt remainsDRAFT_PLAN_REVIEW; the nested planning receipt records host/model start and can only end at review or block. Current shipped candidates arePLANNING_ONLY_UNSUPPORTED, so this route fails closed until live qualification. See Planning-only adapter launch. -
agent-lifecycle host-launch inspect/preflight --profile <path>: validate an ignored operator-local profile with zero process calls, or explicitly make one bounded version probe. These commands do not authorize task execution. -
agent-lifecycle workflow run: verify the frozen plan/state binding and return the next host-owned action without mutating state or starting model work. Add--progress-hook stderrfor opt-in terminal progress on stderr, or--progress-hook receipt --progress-receipt <path>to persistagent-progress-hook-receipt.v1while preserving JSON stdout. -
agent-lifecycle workflow task-start: open a bounded task attempt. -
agent-lifecycle workflow task-result: submit implementation evidence. -
agent-lifecycle workflow task-accept: accept a completed task. Add--implementation-audit <implementation-audit.json>when the plan or task requires accepted implementation audit evidence. -
agent-lifecycle workflow block/resolve-blocker: record external blockers. -
agent-lifecycle workflow finalize: produce final lifecycle proof. Add--proof-integrity <receipt.json>when the run or final audit requires proof-integrity evidence, and--completion-gate-receipt <receipt.json>when completion gate binding is required. Add--final-implementation-audit <final-implementation-audit.json>when final implementation audit is mandatory, and--review-mesh-quorum <path>when an opted-in plan requires final-audit quorum. -
workflow run,workflow task-result,workflow task-acceptandworkflow finalizeare the only workflow commands with managed progress hooks in this release.ALK_PROGRESS_HOOK=stderris supported for wrappers; plugin installation alone is not lifecycle proof. -
agent-lifecycle runner start/status/transition/stop/resume: control bounded execution state. -
agent-lifecycle strategy resolve --manifest ... --lock ... --state ... --task ... --operation-id ... --expected-revision ... --source-revision ... --adapter ... --out ...: write one provider-neutral, read-only execution strategy. S1/S2 also require a matching--host-model-profile. -
agent-lifecycle task compile --manifest ... --strategy ...: project a validated strategy into the matching full task packet without changing plan authority. -
agent-lifecycle task compile-small: compile frozen task packets into small-model packets with output contracts and compact context receipts. Add--strategyto require an eligibleCOMPACTstrategy.
agent-lifecycle benchmark evaluate: compare an explicit submission with the bundled deterministic reference-task suite and emitagent-reference-task-evaluation.v1without model or host calls.agent-lifecycle benchmark compare --baseline ... --candidate ...: compare two evaluation receipts quality-first and report confidence-aware token, invocation, retry, remediation and elapsed-time deltas.agent-lifecycle audit review-check: validate review verdicts.agent-lifecycle audit implementation: emitagent-implementation-audit-report.v1for a task result and independent review. Add--review-mesh-quorum <path>when an opted-in plan requires Review Mesh quorum for implementation audit.agent-lifecycle audit final-implementation: aggregate accepted implementation audit reports before final workflow proof.agent-lifecycle quality pack-check: validate optional quality packs.agent-lifecycle quality behavior-check: run fixture-backed behavior checks.agent-lifecycle quality bug-recipe-list/bug-recipe-check: inspect reusable Bug Forensics recipes that reuse existing receipts.agent-lifecycle metrics cost-check: validate lifecycle cost receipts.agent-lifecycle metrics cost-report: generate and validate a lifecycle cost report from explicit JSON artifact paths.agent-lifecycle metrics usage-export: export sessions, receipt digests, tokens, resources, durations, budget decisions, and optional host-reportedcost_usdfrom explicit JSON artifact paths.agent-lifecycle metrics recommend: suggest the lightest lifecycle mode that preserves the required quality floor.agent-lifecycle metrics outcome-index/quality-signals/learn-recommend: derive advisory local learning signals from explicit lifecycle receipts.agent-lifecycle policy tune: build a read-only policy proposal or write an approved policy artifact with--apply --output.agent-lifecycle policy adaptive-decision/adaptive-check: build and validate neutral adaptive lifecycle mode decisions.agent-lifecycle review-mesh profile: createagent-review-mesh-profile.v1from token/resource caps and provider-neutral reviewer model classes.agent-lifecycle review-mesh recommend: inspect task text, a task file, an adapter task intake receipt or a plan manifest and emitagent-review-mesh-recommendation.v1. The receipt is advisory only and does not create assignments, launch adapters or enable blocking gates.agent-lifecycle review-mesh template-list/prepare: inspect built-in operator templates and prepare a local profile plus assignment packets from an intake receipt, manifest or handoff.preparewritesagent-review-mesh-prepare-receipt.v1and does not call providers or launch reviewer CLIs.agent-lifecycle review-mesh assign/import-result/synthesize/quorum: create host-owned reviewer packets, import redacted reviewer output, synthesize findings and build a quorum receipt. These commands do not call models or launch host CLIs.
agent-lifecycle context check/render: validate and render compact context.agent-lifecycle context external-import: import one local external memory or context file asagent-external-context-import-receipt.v1without network, model or provider calls.agent-lifecycle context episode-retrieve: buildagent-episode-retrieval.v1from explicit artifacts and optional--external-contextreceipts.agent-lifecycle goal check/summarize/view/update: keep user intent traceable.goal viewcombines the goal record with lifecycle progress, optional usage receipts and optional change summaries without mutating state.agent-lifecycle followup check/add/close/sweep: track deferred work.agent-lifecycle worktree policy-check/receipt/check: verify write-scope and attempt isolation.
Use agent-lifecycle start for the simple path. The commands below remain the
atomic interface for scripts and advanced operators.
agent-lifecycle adapter validate: check a descriptor against the baseline.agent-lifecycle adapter inspect: inspect source projection and safe host command surfaces.agent-lifecycle adapter scaffold: create anEXPERIMENTALadapter skeleton.agent-lifecycle adapter install-plan: preview host setup without writes.agent-lifecycle adapter launch-profile --adapter codex|claude|opencode --repository-root <ALK checkout> --out .alk/host-launch/<adapter>.json: create a version-bound local profile without executing the host. Follow withhost-launch preflight; see Qualified host launch. The same file contains a planning candidate section, but version preflight alone does not changePLANNING_ONLY_UNSUPPORTEDto qualified.agent-lifecycle adapter event-check: validate neutral adapter event streams.agent-lifecycle adapter event-capture-check: validate declared adapter-owned event capture with descriptor, optional capability manifest, stream andagent-adapter-event-stream-receipt.v1.agent-lifecycle adapter session start/status/resume/promote: record and resume adapter sessions. Plain interactive sessions returnWAITING_FOR_TASK; promoted sessions bind to workflow state and task lineage.agent-lifecycle adapter session start --launch: validates the requested launch profile, then returnsadapter-generic-launch-disabledbefore process creation. A descriptor alone never authorizes a generic native host launch. Generic environment selection accepts exact allowlisted variable names only; wildcard patterns are rejected.agent-lifecycle start --mode implement --launch --host-launch-profile <path>: the only CLI route to operator-local native execution. It requires a frozen lock-bound run and derived risk profile; it does not promote the adapter beyondWRAPPER_ONLY.agent-lifecycle adapter task start --adapter <id> (--file task.md | --text "..."): accept task input for a selected adapter. Raw text and Markdown produceagent-adapter-task-start-receipt.v1withREVIEW_REQUIRED;--task-fileand--task-textare aliases. The receipt may include advisoryreviewMeshRecommendationwhen extra reviewers may help, but it remains draft-only. Structuredagent-adapter-task-run-request.v1files or frozen manifests with--state,--lock,--task,--operation-id,--expected-revisionand--source-revisiondelegate to the managed run path.agent-lifecycle adapter run: bind an adapter session to a frozen workflow state and return an ALK-managed next action. Progress is shown on stderr by default for this managed path, while JSON stdout staysagent-adapter-session-receipt.v1. It does not bypass the generic launch block or start a native host process.
agent-lifecycle diagnose: build one redacted checkout readiness report.agent-lifecycle diagnostics bundle: collect selected evidence into a redacted bundle.agent-lifecycle report status-view/event-feed/progress/change-summary: render read-only status, workflow event, lifecycle progress and Git-style change summary receipts. Progress supports bounded--watchand explicit--terminaltext output.agent-lifecycle report progress-bridge: buildagent-progress-bridge-receipt.v1for adapter wrappers that need a stable JSON receipt and optional terminal text.agent-lifecycle evidence index/search: build and query compact evidence indexes.agent-lifecycle model profile-check/route/usage-check: validate routing and usage receipts.agent-lifecycle-neutrality scan --scope tracked-release --policy <file>: scan Git-index-bound release content.--include-local-artifactsexplicitly adds only policy-approvedlocalArtifactRoots; legacy scopes remain accepted but are signed as deprecated. See Neutrality scanning.
Use --help on any command group for exact arguments.