Skip to content

CLI tree

Generic Tasks

chattask run --instructions-file task.txt --image-profile python-package --request-id task-001 -e site --json-output

These are the registered commands observed with chattask --tree.

chattask
├── --help  # Show this message and exit.
├── --version  # Show the version and exit.
├── --tree  # Print the registered CLI tree and exit.
├── --tree-brief  # Print the registered CLI tree without parameter signatures and exit.
├── package  # Inspect and run the versioned Python package template.
│   ├── confirm [--id DRAFT-ID] [--revision REVISION] [--preview-sha256 PREVIEW-SHA256] [--confirmation CONFIRMATION] [--request-id REQUEST-ID] [--env-profile ENV-PROFILE]  # Submit the exact verified preview and wait for its publish task.
│   ├── draft-create [--spec-file SPEC-FILE] [--request-id REQUEST-ID]  # Create an owner-bound draft in the private ChatTask store.
│   ├── draft-show [--id DRAFT-ID]  # Read a draft and its verified preparation preview.
│   ├── plan [--spec-file SPEC-FILE]  # Validate a JSON spec and show exact prepare policy/instructions without executing.
│   ├── prepare [--id DRAFT-ID] [--revision REVISION] [--image-profile IMAGE-PROFILE] [--request-id REQUEST-ID] [--env-profile ENV-PROFILE]  # Run and verify the read-only Sandbox preflight for a saved draft.
│   └── schema  # Print the channel-neutral package form schema.
├── paths [--json-output]  # Resolve ChatArch-contained state paths without creating them.
├── repository  # Manage trusted local source roots for template runs.
│   └── register [--id REPO-ID] [--path PATH] [--github-repo GITHUB-REPO] [--default-branch DEFAULT-BRANCH] [--package-name PACKAGE-NAME]  # Register an operator-trusted Git root; browser users cannot supply paths.
├── run [INSTRUCTIONS] [--instructions-file INSTRUCTIONS-FILE] [--image-profile IMAGE-PROFILE] [--request-id REQUEST-ID] [--input-task-id INPUT-TASK-ID] [--env-profile ENV-PROFILE] [--json-output]  # Run a task using Codex inside an ephemeral Sandbox and return its result.
├── serve [--host HOST] [--port PORT] [--env-profile ENV-PROFILE]  # Serve the authenticated Task/Sandbox browser and API from this package.
├── task  # Control private long-term Tasks; rounds execute in a separate worker.
│   ├── complete <TASK-ID> [--request-id REQUEST-ID] [--owner OWNER] [--env-profile ENV-PROFILE]  # Mark an inactive long-term Task complete; history remains available.
│   ├── create <INSTRUCTIONS> [--image-profile IMAGE-PROFILE] [--workflow WORKFLOW] [--sources-file SOURCES-FILE] [--request-id REQUEST-ID] [--owner OWNER] [--env-profile ENV-PROFILE]  # Queue the first round of a long-term Task.
│   ├── list [--owner OWNER] [--env-profile ENV-PROFILE]  # List Tasks visible to a trusted local principal.
│   ├── pause <TASK-ID> [--request-id REQUEST-ID] [--owner OWNER] [--env-profile ENV-PROFILE]  # Pause queued work now or request a cooperative end-of-round pause.
│   ├── reconcile-research <TASK-ID> [--request-id REQUEST-ID] [--acknowledge-unknown] [--owner OWNER] [--env-profile ENV-PROFILE]  # Queue explicit same-round Research readback/reconciliation.
│   ├── resume <TASK-ID> <INSTRUCTIONS> [--request-id REQUEST-ID] [--acknowledge-unknown] [--sources-file SOURCES-FILE] [--owner OWNER] [--env-profile ENV-PROFILE]  # Queue an explicit new native Codex round from a verified checkpoint.
│   └── show <TASK-ID> [--owner OWNER] [--env-profile ENV-PROFILE]  # Show a Task and its immutable round history.
└── worker [--once] [--operator OPERATOR] [--env-profile ENV-PROFILE]  # Run the independent durable queue executor under a process-held lock.

--tree-brief preserves command nodes and descriptions without signatures. repository register is trusted server-side administration: the path must be an exact clean Git root; the browser has no path-registration endpoint. Example:

chattask repository register --id demo --path /srv/managed/demo --github-repo owner/demo --package-name demo
chattask serve --env-profile site --host 127.0.0.1 --port 8000

paths only resolves $CHATARCH_HOME/chattask and related paths. serve explicitly constructs the service; the Web lifespan marks interrupted work and cleans up older sessions. The CLI starts the task executor without holding GitHub/PyPI upstream credentials. Tool services control external-write authority; operators provision images.