Start to a landed change request
Build an agentic workflow as one open-source YAML row
An agentic workflow is one row in kortix.yaml: a slug, an on: for when it fires, and a run: naming the agent and prompt. The open-source Kortix CompanyOS validates and pushes that file on kortix ship; then the clock or a signed webhook starts the session, and the work arrives as a change request you read and merge.
The open-source CompanyOS
A row in kortix.yaml · One machine and branch per run · Merge is default-deny for agents
kortix.yaml · triggers
kortix.yaml next to your agents and sandbox images.Source: kortix.com/automations
triggers: - slug: new-issue on: { webhook: { secret: GITHUB_WEBHOOK_SECRET } } run: agent: eng-triage prompt: "Triage issue #{{ body.issue.number }}: label it, find the owner, post in #eng."Before the first fire
Three parts make a workflow agentic: an outcome worth reaching, an agent that chooses the steps, and a machine to run them on. Before the first fire, three of those pieces have to exist, and each takes minutes to confirm. A Kortix project whose kortix.yaml sits in a git repository. An agent declared under agents:, with a sandbox image behind it. And a repo the machine can check out, because it clones the project repo into /workspace before the first message. A connector joins the list only when the job has to reach another system.
Watch where the repo sits, because that is the real choice here. Start by dragging boxes inside a product you log into and your schedule lives in that product's tables: whoever takes the work over inherits a screen, not a file. Put the row in the repo and you get a diff, a reviewer and a history, plus a note that still explains itself after its author leaves the team. What the term means and four finished examples cover the idea and the payoff; the build is shorter than either.
Step 1: write the trigger row
The row belongs in kortix.yaml, next to the agent declarations and the sandbox templates. It carries a slug, an on: that says what fires it, and a run: naming the agent and the first message. The weekday digest is the smallest useful case, so here is the shape of a row with the digest filled in:
# fires on the clock
triggers:
- slug: daily-digest
on: { cron: "0 0 9 * * 1-5", timezone: America/Los_Angeles }
run:
agent: kortix
prompt: "Write yesterday's digest from the commits on main. Open a change request with it."The row reads as a sentence once you know its parts. Weekday mornings at nine, Los Angeles time, as the kortix agent, and that prompt is the message it wakes up to. Cron takes six fields here, seconds first, so 0 0 9 * * 1 means Monday at nine. Nothing fires more often than once a minute. on.timezone accepts any IANA zone and falls back to UTC. For a job that should run exactly once, use one ISO-8601 time: on.at, which the flat form of the row spells run_at.
Two on: lines cover most builds: on: { cron: "…", timezone: … } for the clock, on: { webhook: { secret: … } } for an incoming signed request. Nothing else sits beside on: at that level. A type: cron line there is a validation error, because type belongs to the flat form of the row, where on: and run: collapse into single keys.
Which session a fire lands in is run.session, with four values: fresh, reuse, pinned, keyed. fresh starts a new session for each fire and is the default. reuse continues the last session this trigger created. pinned uses the session named by run.session_id. keyed keeps one session per value of run.session_key, such as "{{ body.chat_id }}". A morning digest wants a clean slate anyway, which is the default, so the digest row never names the key.
Step 2: push it with kortix ship
kortix ship does the whole install. It validates kortix.yaml and commits the change. Then it offers to set any secret the file still needs, pushes the current branch and connects the connectors the file declares. Nothing separate arms the row: Kortix reads triggers from the manifest it merges, so the push is the step that puts the schedule in front of the scheduler. A row with enabled: false stays in the file and never fires.
Commit the row the way you commit any other configuration edit. A trigger arrives in a diff with its reason attached, so the next person can see who wanted the 09:00 slot and what the prompt said on the day it went in.
Step 3: try the prompt yourself
kortix triggers fire <slug> runs the row now, so the first fire does not have to wait for the clock:
kortix triggers fire daily-digestA plain session is the second option, pointed at the same agent and the same first message, without the schedule or the signature:
kortix sessions new --agent kortix --prompt "Write yesterday's digest from the commits on main. Open a change request with it."That command boots the same image and delivers the same first message the row would. --agent picks a named agent instead of the project default, so pass the one your row names.
What this run tests is the prompt. Waiting until nine the next morning means learning whether it renders with nobody in the room, and paying a day for the answer. One session buys you the boot, the opening tool call and the first wrong assumption, all while the row is still open in your editor. The schedule, and the secret, are the two things a hand run cannot exercise.
Step 4: open what the run left
A fire produces work on a branch the session owns. One isolated sandbox per session. Each session has its own isolated machine and branch: it boots from the sandbox image the project declares, checks the repo out into /workspace and names the branch after the session. Edits, commits and stray files stay on that branch, and only what the agent commits outlives the machine.
Kortix does not open a change request by itself. The kortix-system skill tells an agent to push, open one with kortix cr open and wait. The starter agents may load it, so the run often leaves one waiting. When it does not, open it yourself with kortix cr open --head <session_id> --session <session_id> --title "Weekly digest". Then read it the way you read a colleague's work:
kortix cr lslists the open change requests.kortix cr diff 1prints the unified diff.kortix cr merge 1merges it into the base branch, andgit pullbrings the result into your clone.
1 is the number kortix cr ls printed. A person does the merging, and that is the design: session work reaches main through a change request. Merge is default-deny for agents. By default only the people who manage triggers, plus account owners and admins, can open the session; the trigger can be set to selected teammates or to the whole project instead.
On the first run, look at two things: whether the branch touched only the files the task needed, and whether the prompt asked for something the run could actually reach.
Step 5: switch the row to a webhook
A clock suits work that belongs at a known hour. Other work belongs to an event, and that is the second kind of on: line. Swap that one line, and everything under it in the row is unchanged:
on: { webhook: { secret: GITHUB_WEBHOOK_SECRET } }Every webhook trigger names a project secret that signs it, and a trigger without one is rejected at validation. Put the name under env.required and kortix ship asks for the value it is missing. The endpoint is POST /v1/webhooks/projects/<project_id>/<slug>, and it takes the trigger secret rather than a Kortix token. The caller sends an HMAC-SHA256 of the raw request body in X-Kortix-Signature, or in the GitHub-compatible X-Hub-Signature-256. Whatever the caller posts is available to the prompt, which is how {{ body.issue.number }} resolves in the new-issue row.
Where the first week goes wrong
Most of a first week goes wrong in one of three places, and each one shows itself plainly. A prompt asks for a tool its agent does not have. The row names an agent whose project never connected the app, or a capability nobody granted, and the run halts where it cannot reach. An automation gets no privileges a person would not get, so the repair is a connector or a grant. More prompt will not find one.
A webhook arrives without a secret. Validation rejects the row, which is the gentler version of this failure: nothing fires, and no open endpoint waits for somebody to remember it.
A change request sits unmerged. Landing it takes a person, because a project that grants an agent nothing extra keeps that agent from merging its own work. Unread for a week, the branch falls behind. Each new fire starts from that same stale base, so the following Monday's digest describes a repo that has not moved.
Why the file wins
Everything needed to reproduce that schedule sits in a file a person can read in one screen. The tools comparison turns it into a question about other platforms: which product owns the definition, and who gets to read the output. Run yours on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free.
Building your first workflow
How do I build an agentic workflow from scratch?
One row in kortix.yaml starts it: a slug, an on: that says what fires it, and a run: with an agent and a prompt. kortix ship validates and pushes the file, kortix sessions new --agent <name> --prompt "…" runs the same prompt by hand, and kortix cr ls with kortix cr diff 1 reads what came back.
Do I need to write code to build an agentic workflow?
No. The build is a row of YAML: the trigger, the agent name and the prompt live in kortix.yaml, and kortix ship pushes that file. The agent works on its own cloud computer.
How do you schedule an agentic workflow?
With a cron trigger row. Six fields, seconds first, and on.timezone takes any IANA zone. Kortix reads triggers from the manifest kortix ship pushes, and enabled: false parks a row without deleting it.
How do you secure a webhook that triggers an agent?
A project secret signs it. Every webhook trigger names one, validation rejects a row that has none, and the caller sends an HMAC-SHA256 of the raw body as X-Kortix-Signature: sha256=<hmac>.
Can you run an agentic workflow on your own servers?
Yes. Self-host is free, and it runs on your own on-prem network or in your VPC. The trigger row sits in the repo beside the sandbox image, so the workflow travels with the code.
Ship the row, run it once, read what came back.
A row in kortix.yaml, then kortix ship, then the change request the run leaves you. That is the build I'd start with, and Kortix is my pick for it; I work on Kortix's marketing, so weigh that accordingly.