| Task | Command |
|---|---|
| What every session does, talk to one | kortix sessions status, sessions log <id> (read-only), sessions chat <id> --prompt "…"; your token reads every session it may message; parent and root markers: references/session-model.md |
| Hand a task to another agent | The agent tool (default session: "separate": its own session). From a session a person started it runs in the background: the report arrives later as a message. Deeper, one call waits up to 30 min. A follow-up goes to the same agent: send_message to its name, or agent with its task_id or name; a new agent only for separate parallel work. Not sessions new + wait-for |
| Tell another session something; a team's task list | send_message (list_agents lists who you can reach), task_create/task_list/task_update (flag agent_teams; a teammate starts with agent({ name, team: true }), its role is for its session only); from a shell kortix sessions message <to> "…", sessions reachable, sessions inbound <id> accept|hold|refuse, kortix tasks ls|add|claim|done |
| Change requests, the review inbox | kortix cr ls|show|diff|merge-preview, kortix review ls; My Kortix: the kortix_change_requests tool |
Triggers; loops on this session (<scheduling>) | kortix triggers ls|info|fire|add|set|enable|disable; kortix loop "…" --in 24h, kortix loops ls|pause|resume|rm |
| Secrets | kortix secrets ls|set|request|create-service-account|sync |
| Connectors and accounts | kortix connectors … (the kortix-connectors skill) |
| Apps: sites, servers, backends | kortix apps … (the kortix-apps skill) |
| Drive files and sharing | kortix drive … (the kortix-drives skill) |
| Connect Slack or Teams | kortix channels connect (the kortix-slack skill) |
| Agents and models | kortix agents ls|default|config|scope, kortix models ls|default <model-id> |
| Tools, feature flags | kortix tools ls|eject <name>, kortix workspaces features [enable <flag>] |
| The manifest | kortix validate [--scopes], kortix schema |
Score an agent on tasks (flag evals, <evals>) | kortix evals datasets|tasks|run|jobs|show|compare|rerun|judge |
| Kortix itself is broken, confusing or missing something | kortix feedback "<what happened, what you expected>" --kind bug|friction|idea: it reaches the Kortix team with this session's id. File it when it happens, once per problem, then continue with a workaround |
- Read
$KORTIX_SECRET_CAPABILITIESfirst: a JSON list of the secrets this session may use, without values. Each entry'sdelivery:sandbox: the named env var holds the real value. Never print, echo or write it to a file, and never copy it into code orkortix.yaml.network: the env var holds a handle. Use it as the credential: Kortix puts in the value outside the sandbox, only on the listedhosts, over HTTPS.[REDACTED]in a response means it worked. Experimental.https_broker: run the entry'scommand(kortix secrets call …).kortix_service: a connector or the LLM gateway spends it. Nothing is in the sandbox.
- The user gave you a value (chat, a file): store it in the same turn,
value on stdin:
printf '%s' "$VALUE" | kortix secrets set NAME=-(--scope connectorfor a connector's key).403: go to step 3. - You lack the value: mint a link, put the URL in your reply, end the turn.
A key your code reads:
kortix secrets request NAME(--scope connectorkeeps a connector's key out of the sandbox). An app account:kortix connectors connect <slug> --label "<name>"(--owner projectfor a shared company account). Never ask for a key in chat.
Slack is a channel, not a secret: kortix channels connect prints its
install link. Owners, accounts, not granted, undecryptable:
references/kortix/credentials-and-setup-links.md.
After any action whose result comes later (a message sent, an order or form submitted, a CR opened, a deploy started, a question to a person, a page to watch), set up this session's wake-up before you end the turn. Nobody asks.
| You are now waiting on | Wake this session with |
|---|---|
| A reply to an email or message | A loop. Also a connector event when that app is connected (flag event_triggers): kortix triggers add "…" --on event --connector <slug> --event <TYPE> (types: kortix triggers events --connector <slug>) |
| A change request | kortix triggers add "…" --on cr-merged --cr <id> |
| A deploy, a CI run, a job | kortix triggers add "…" --on webhook --secret-env <NAME> when it can call a URL, else kortix loop "…" --every 15m |
| A person's answer | kortix loop "…" --in 4h --every 6h |
| A page, a status or a price that changes on its own ("tell me whenever …") | A watcher App that posts App events, then kortix triggers add "…" --on app --app <slug>: no model runs until it changes (references/scheduling.md → Watch 24/7). A loop only for a wait that ends within a day |
| A hand-off, a teammate, a workflow | Nothing: it reports back by itself |
- Write the loop text for the turn that wakes: what you sent, to whom, what to check, what to do on each outcome, the end date (default 14 days). Tell the person in one line when you check and until when.
- On each fire: check, act, report what changed. After empty checks, replace
the loop with a slower one. Done or past the end date:
kortix loops rmandkortix triggers rmevery one. Playbook:references/scheduling.md. - Long jobs (many parts, many days): plan, delegate (
agent,workflow), set the wake-ups, keep the state inout/status.md, set Kortix up when the work repeats, close out:references/scheduling.md→ Long jobs.
| Workspace work | A kortix.yaml trigger (fields: references/kortix/kortix-yaml.md) |
|---|---|
| Recurring (a daily digest), or one-off | on: { cron: "0 0 9 * * 1-5", timezone: <IANA> }, on: { every: 1h }, on: { at: <ISO-8601> } |
| Workspace code on a cadence, no agent | run: { app: <slug>, path: /tick } |
| A system that can call a URL, or a watcher App | on: { webhook: { secret: <SECRET_NAME> } }, on: { event, app } |
- A loop or a session trigger lives in the database: no CR. Every fire is a
model turn.
403 feature_disabled: Loops are off. Tell the user (kortix workspaces features enable reminders). Meanwhile, anattrigger starts a fresh session at the time: put the full context in its prompt. kortix triggers add|rm|enable|disableeditkortix.yaml: a trigger fires after its CR merges, or at once with--apply(through the API, gated by yourkortix_permissions). Thenkortix triggers fire <slug>once.- Nobody watches a scheduled run: push what matters, stay silent otherwise. It reaches only the Drive folders added to its agent: add them first (
kortix-drives→ scheduled runs). - Say "scheduled run" or "loop" to people, not "cron job".
Every session runs pi inside the Kortix daemon. Every model call goes through the Kortix LLM gateway. pi has:
bash,read,write,editon/workspace;glob,grep,question.- The Kortix tools
web_search,image_search,image_gen,scrape_webpage,show(memoryis retired: use the file tools); workspace tools;codemode. - Subagents through
agent(the agents yoursubagentsgrant names;nameone to message it,task_stopstops it);send_message,list_agents. - Compaction near the context limit and on demand (
kortix sessions compact <id>); steering: a message sent during a turn is read at its next step. - Slash commands from
commands:and granted skills; pi extensions and packages fromextensions:.
pi does not have rewind or edit-and-resend (501 feature_not_supported),
MCP servers (use connectors), a todo list, shell turns, session fork, or an
attachable terminal client. No webfetch: use scrape_webpage. Its
capabilities include session.subagents, session.compact,
session.commands, session.steer, session.messaging, session.team_tasks. Say plainly what is missing.
pi puts the root AGENTS.md (else CLAUDE.md) in every system prompt. It
reads that file, agents, skills, tools and commands from the default
branch's config release: a change takes effect after its CR merges, in
running sessions too. Extensions and codemode load at runtime start.
Tools, permissions, extensions: references/pi.md.
One format, no version line. Declare everything in kortix.yaml (or
kortix.yml) and the files it names. The workspace registers things by name;
each agent enables what it uses. Unknown keys are errors.
yaml# yaml-language-server: $schema=https://kortix.com/schema/kortix.schema.json default_agent: kortix env: { optional: [ORDERS_API_KEY] } # secret names; values live in Kortix skills: { triage: skills/triage } # folder that holds triage/SKILL.md tools: { lookup_order: tools/lookup_order.ts } commands: standup: { description: Post the standup summary., prompt_file: commands/standup.md } extensions: { audit: { pi: extensions/audit.ts } } # or "npm:<package>@1.2.3" environments: { ops: { image: python:3.12-slim, network: { allow: [pypi.org] }, repos: [{ path: /workspace }] } } # agents pick one: environment: agents: kortix: description: Front-door agent. mode: primary # primary | subagent | all prompt_file: agents/kortix.md # or prompt: "…" permission: { bash: { "git push --force *": ask, "*": allow } } tools: "*" # "*" is every name; `all` is the same skills: "*" # omitted = none, Kortix skills too subagents: [researcher] commands: [standup] extensions: [audit] connectors: "*" secrets: [ORDERS_API_KEY] kortix_permissions: [workspace.read, workspace.gitops.read, workspace.gitops.push] researcher: mode: subagent prompt: Research the question. Cite every source. tools: [read, grep, web_search, scrape_webpage] skills: [kortix-system, triage] triggers: - slug: daily-digest on: { cron: "0 0 9 * * 1-5", timezone: Europe/Berlin } run: { agent: kortix, prompt: "Summarize yesterday's merged change requests." }
agents,default_agentoptional. My Kortix runs only withbuiltin_agents: { my_kortix: true }. No agent named runsdefault_agent(may bemykortixwhen on), else My Kortix when on.- An agent gets nothing it does not grant. Without
skillsit loads no skill,kortix-systemincluded.skillsandextensionsalso take{ exclude: [names] }: every one but those. - A grant is
all,noneor a list of registered names.subagentsnames declared agents withmode: subagentorall. tools: set it on every agent:all,none, a list, or{ exclude: [names] }. Omitted, the agent gets every tool andkortix validatewarns. Atools:registry entry with a Kortix tool's name replaces that tool.permission: per keyallow | ask | deny, or a pattern map where the longest matching pattern wins. Omitted:allow.kortix_permissions: what the agent may do to the workspace.kortix validate --scopeslists the values. You grant only what you hold.env.required: a session starts without it; its prompt names a missing one (<credentials>).- A skill:
skills/<name>/SKILL.md, the folder named like the skill, notkortix-*; frontmatternameand a quoteddescriptionthat says when to load it. Register it, grant it, land it through a CR. - Connectors: the
kortix-connectorsskill. Apps: thekortix-appsskill. - Check every edit:
kortix validateexits 0. Each issue names<file>:<line>:<col>and the fix.kortix schemaprints the full schema. - A running workspace never stops on an error: it turns off or drops the
broken part (
references/kortix/kortix-yaml.md→ Problems). - When your system prompt lists
kortix.yamlissues, tell the user and fix them through a CR when asked.kortix validate --fixrewrites every deprecated shape, and converts an older format (fix: legacy-format). Keep every file that conversion writes or deletes.
Keys, imports:, environments and their network, triggers: references/kortix/kortix-yaml.md.
Tools: references/kortix/tools.md. People: https://kortix.com/docs/developers#kortixyaml-reference
Model switches, agent-pin permissions and precedence: references/session-model.md.


