@plainconceptsplatform/workflows
v1.6.42
Published
Install and update Platform GitHub agentic workflows.
Readme
Workflows CLI
Install and update shared GitHub Agentic Workflows for Plain Concepts Platform repositories.
Quick start
The primary entrypoint is the interactive TUI. Run it with no arguments:
npx @plainconceptsplatform/workflowsThe TUI lists all routes and templates with install status. Arrow keys navigate, space toggles, Enter installs. The checked routes are the target set: checking adds a worker, unchecking removes it, and Enter on an unchanged selection refreshes every installed package file to this version. Selecting only templates installs just those templates.
Install
Before installing workflows, install and configure PlainConceptsPlatform/agent-harness in the consumer repository. Loop workers invoke the skills and commands it provides. Verify the required skills and commands are available before compiling workflows.
For non-interactive use (advanced):
npx @plainconceptsplatform/workflows@latest init
npx @plainconceptsplatform/workflows@latest add refine implement
npx @plainconceptsplatform/workflows@latest update --dry-run
npx @plainconceptsplatform/workflows@latest updateFor a project-local development dependency:
pnpm add -D @plainconceptsplatform/workflows
pnpm exec workflows # launch interactive TUI
pnpm exec workflows init
pnpm exec workflows addinit inspects the repository and reports its stack and visibility. It does not create or manage repository configuration or a manifest.
add installs the mandatory files (opencode.ci.json, compile script, shared imports, actions, router, classifier, route matrix) and the workers named as positional arguments, on top of the workers already installed. With no routes it refreshes what is there:
workflows add # refresh everything installed; in an empty repository, no workers
workflows add implement refine # those workers on top of the installed ones
workflows add --template agentics-checks # named template only (no mandatory files)
workflows add refine --template agentics-checks --force # routes + template + mandatory; --force also replaces a changed template
workflows remove audit # uninstall the audit worker and drop it from the routerRoute names: refine, implement, triage, apply-review, merge-gate, audit, release. Unknown arguments produce an error.
Update
update is add with no routes: it refreshes exactly the installed set to this package version. Every package-managed file is replaced and its ownership header records the version it came from:
# Managed by @plainconceptsplatform/[email protected]. Source: loops/workflows/work-router.yml. ...The env: block at the top of a worker is the repository's and survives: your values are kept, keys the package added arrive with their defaults, keys only you defined stay. When the header records the version you installed from, that release is fetched from npm and used as the merge baseline, so a value you never changed follows the package when its default changes. The agent runner pool and the engine gateway URL are kept as well. Everything else in the file is the package's.
update --dry-runprints the plan as JSON and writes nothing.- A file whose ownership header was removed is consumer-owned and is skipped unless
--forceis passed. - Templates are consumer-owned after installation and are replaced only with
--force. --versionprints the package version.
List and search
List all available workflows, routes, and templates with install status:
npx --yes --package @plainconceptsplatform/workflows@latest workflows listEach entry is marked [x] when the corresponding .github/workflows/agent-*.md file already exists in the current directory, or [ ] when it is not yet installed.
Search by name or description:
npx --yes --package @plainconceptsplatform/workflows@latest workflows search "ci"Templates
Install optional standalone templates with add --template. Available templates are agentics-checks, agentics-error-report, agentics-maintenance, app-ci-dotnet-next, app-ci-node-monorepo, bug-report, feature-request, github-release, and opencode.ci.json. CI templates are stack-specific copies, not a combined template. github-release publishes generated release notes when a v* tag is pushed. Edit their top-level env: values for repository paths, package names, and commands.
agentics-error-report is worth installing everywhere. Once a day it classifies how this package's workflows behaved in the repository and files what broke upstream, so the package gets fixed instead of every repository working around the same bug. It is deterministic no model runs, because a model asked to summarise a failure paraphrases whatever the log held and it sends only the names this package gives its own workflows, jobs and steps, a conclusion, a bucketed runner label, a count and a classification id. No log line, branch, title, path or issue number leaves the repository, the repository's own workflows are counted and never inspected, and a leak scanner withholds any report mentioning the repository or its owner and fails the run rather than filing it. Clear UPSTREAM_NAME in its env: to compute the report into the job summary and file nothing.
Manual installation
The package includes loops/, a copyable equivalent of .github/:
loops/actions/maps to.github/actions/loops/workflows/maps to.github/workflows/loops/scripts/maps toscripts/
Copy these files manually if you do not use the CLI. Each worker is self-contained. Edit its
top-level env: defaults directly for consumer-specific endpoint, model, labels, paths, and checks.
Compile
Consumer repositories generate and commit *.lock.yml files:
node scripts/compile-agent-workflows.mjs --forceDo not commit generated locks to this package source repository.
