File a task onto an assembly line stage from a script or a failing GitHub Actions job, with workflow context and job logs attached automatically.
pks agentics task submit --assembly-line-url <URL> --title <TITLE> [options]$ pks agentics task submit --assembly-line-url https://agentics.dk/p/owner/project/assembly-lines/stage-id --title "Fix failing tests"File a task on the stage's first column
$ pks agentics task submit --assembly-line-url https://agentics.dk/p/owner/project/assembly-lines/stage-id --title "CI Failure" --description "Build step failed"Attach your own error output to the task
$ pks agentics task submit --assembly-line-url https://agentics.dk/p/owner/project/assembly-lines/stage-id --title "Flaky e2e" --priority medium --labels ci,flakySet priority and labels on the new task
pks agentics task submit puts a task onto a specific Assembly Line Platform stage. Its main use is a pipeline that files its own follow-up work: a build breaks, the job calls this command, and a task appears on the line with the failure already written into the description.
https://<host>/p/{owner}/{project}/assembly-lines/{stageId}. Any other path shape fails to parse.permissions: id-token: write on the workflow job, if you rely on GitHub OIDC (OpenID Connect workload identity), and a project that trusts the calling repository.pks agentics task submit \
--assembly-line-url https://agentics.dk/p/owner/project/assembly-lines/stage-id \
--title "Fix failing tests"
The command parses owner, project, and stage id out of the URL, resolves a token, and posts the title, description, column id, priority, and labels to {server}/api/owners/{owner}/projects/{project}/assembly-lines/{stageId}/tasks.
Both --assembly-line-url and --title are required. Omitting either prints a red error and exits 1.
Without --column-id, the task lands in the stage's first column.
pks agentics task submit \
--assembly-line-url https://agentics.dk/p/owner/project/assembly-lines/stage-id \
--title "Flaky e2e suite" \
--description "Playwright run timed out on the login spec" \
--column-id backlog \
--priority medium \
--labels ci,flaky
Priority is low, medium, or high, defaulting to high. Labels are comma-separated.
The token is resolved in this order, first hit wins:
--token — an explicit bearer token, skipping the chain. Useful for one-off scripts.GITHUB_ACTIONS is true, the job has id-token: write, and the project trusts the calling repository.pks agentics init, refreshed in place if expired.pks agentics runner register, used only when no stored user token is available (or its refresh fails).If nothing resolves, the error names all three remedies.
Inside GitHub Actions the command adds a ## CI/CD Failure block to the description containing the workflow, job, commit, actor, and trigger. When a stored GitHub token is available it also appends the failed step names and the last 100 lines of that job's log, fetched from the GitHub Actions API.
permissions:
id-token: write
contents: read
steps:
- if: failure()
run: |
pks agentics task submit \
--assembly-line-url https://agentics.dk/p/owner/project/assembly-lines/stage-id \
--title "CI failure on ${{ github.ref_name }}"
The enrichment reads the standard runner variables: GITHUB_REPOSITORY, GITHUB_RUN_ID, GITHUB_RUN_ATTEMPT, GITHUB_JOB, GITHUB_WORKFLOW, GITHUB_SHA, GITHUB_REF_NAME, GITHUB_ACTOR, GITHUB_EVENT_NAME, and GITHUB_SERVER_URL.
Open the assembly line in the browser. The task appears in the target column with your title, priority, and labels, and — from a failing Actions job — the CI/CD failure block in its description.
| Flag | Required | Description |
|---|---|---|
--assembly-line-url <URL> | yes | Full URL to the assembly line, in the form /p/{owner}/{project}/assembly-lines/{stageId}. |
--title <TITLE> | yes | Task title. |
--description <TEXT> | no | Task description or raw error output. |
--column-id <ID> | no | Target column id. Defaults to the stage's first column. |
--priority <PRIORITY> | no | Task priority: low, medium, or high. Defaults to high. |
--labels <LABELS> | no | Comma-separated labels to apply. |
--server <URL> | no | Override the server URL. Defaults to the runner registration's server, then agentics.dk. |
--token <TOKEN> | no | Bearer token override that skips the auth chain. |
-v, --verbose | no | Enable verbose output. |
/p/{owner}/{project}/assembly-lines/{stageId}. Copy the URL from the assembly-line page in the browser.--assembly-line-url or --title is missing. Both are validated by the command, not by the parser.pks agentics init once, or add permissions: id-token: write and make the project trust the calling repository, or register a runner for the project.GITHUB_JOB does not match by name, any job with conclusion failure is used instead.--verbose reports an auth source you did not expect. The reported source is display logic inferred after the fact, not necessarily the exact source used internally.