pylon construct creates a new pylon — a named pipeline that ties together a trigger, workspace, AI agent, and notification channel. Run it once per pipeline you want to set up. The result is a YAML config file you can edit at any time with pylon edit <name>.
Usage
Arguments and flags
The pipeline identifier. Used as the default webhook path (
/<name>) and as the directory name under ~/.pylon/pylons/.Create from a built-in template instead of the interactive wizard. Available templates:
| Template | Trigger | Use case |
|---|---|---|
sentry | Webhook | Investigate Sentry error alerts |
github-pr | Webhook | Review GitHub pull requests |
cron-audit | Cron | Weekly codebase security audit |
blank | Webhook | Empty starting point |
Template examples
Interactive wizard
When you runpylon construct <name> without --from, the wizard prompts for:
Trigger — what starts the pipeline:
webhook— HTTP POST to a path (default/<name>); optionally set a public URL overridecron— a cron schedule expression (e.g.0 9 * * 1-5)
git-clone— fresh clone per job; prompts for repo URL and branchgit-worktree— uses a local repo withgit worktree add; prompts for repo and branchlocal— mounts an existing directory; prompts for pathnone— no codebase
{{ .body.field }} to inject webhook payload fields.
Approval — whether you must approve before the agent runs. If enabled, also prompts for a topic template and notification message template.