Skip to content
Agents in Slack

The open-source kortix.yaml behind a Slack agent

A Slack agent in Kortix is configured in kortix.yaml, and four blocks decide how it runs: the manifest head, the agent’s grant, the policy and the approvals TTL. In my opinion, Kortix is the open-source CompanyOS: your agents, their skills, your company memory, and every connector in one git repo you own, with the agents working on real cloud computers, and I work on Kortix's marketing, so weigh that accordingly.

The manifest head and the agent grant

kortix.yaml
# yaml-language-server: $schema=https://kortix.com/schema/kortix.schema.jsondefault_agent: kortixagents:  kortix:    description: Answers Slack threads for the support team.    prompt_file: agents/kortix.md    connectors: [kortix_slack]    secrets: all    skills: all    kortix_permissions: all
Eleven lines name the agent that answers a Slack mention and everything it may reach.

What each of the four blocks decides

The first two lines are the schema comment and the default agent. The comment is what a YAML editor reads, which is why the editor can validate each key as you type and complete it for you. kortix validate checks the file against that schema. default_agent: kortix names the agent that takes a Slack message when nothing else names one.

Under agents:, each name maps to a grant. prompt_file names a .md file in the repo, and the whole file is the system prompt. connectors, secrets, skills and kortix_permissions are grant sets, and each takes all, none or a list of names. Read connectors: all as every connector the project declares, and secrets: all as every secret in it. A reviewer answers "what can this thing reach" from that line, which is either all, none or the slugs it names.

A list narrows that reach to the slugs on it. An omitted connectors, secrets, skills or kortix_permissions grant means none. The reserved slugs kortix_slack, kortix_teams, kortix_email and kortix_telegram always count as declared, so an agent may name one before the connector entry exists. The grant still has to list it, because an omitted connectors grant means none.

The policy block, and the calls that wait

policy and policies decide which connector calls run and which stop for a person. policy.default_mode covers a call that no rule matches, and it falls back to allow_all. Set it to risk and a read runs while a write or destructive call needs approval.

yaml
policy:  default_mode: riskpolicies:  - match: gmail.send_email    action: require_approval

policies holds project-wide rules. A rule matches a fully qualified tool path, <connector-slug>.<tool>, with globs, and the first match wins. Kortix checks the project rules first, then the calling agent's policy set on that connector (agents.<name>.policy_sets), then the connector's own rules, so a manifest rule can close a gap that a connector leaves open. A set can loosen a connector's base rule for its agent, and no set or base rule loosens a project rule. Approval gates you set. Off until you set them.

A call a rule holds stops before it reaches the app, and the card in the thread shows what it will do (Kortix docs). approvals.ttl sets how long it waits: an integer with m, h or d, clamped between 5 minutes and 30 days, and 24 hours when the key is absent.

yaml
approvals:  ttl: 4h

A call nobody decides expires. Shorten the TTL on a busy channel and approvals time out faster than the people on shift can answer.

What a change request review catches

The manifest takes effect when it reaches the base branch. An edit in /workspace or on a session branch lands there through a merge or a push, and kortix ship validates, commits and pushes in one command. Each commit on the base branch is a new config release, and a running session converges to it at the start of its next turn. Session work reaches main through a change request. Merge is default-deny for agents.

A diff of kortix.yaml is small, and each hunk names its own consequence. A grant line that goes from a list to all widens what the agent reaches. A require_approval rule that disappears turns a held write into an unattended one. An approvals.ttl that drops from 4h to 15m shortens how long a person has to answer. kortix validate runs the same schema check in kortix ship and in the change request merge check, and an error blocks the merge while a warning does not. It does not check policy or policies, so those two blocks need a reader.

An agent can edit its own configuration on its session branch and propose the change. A person approves it. The review is the control, and four blocks of YAML are what that person reads.

What stays out of the file

env: declares the secret names the project expects, and the values live in Secrets, never in the manifest. A session receives a secret name only when the agent's secrets grant and the person who started the session both allow it. kortix validate reports an error when a name in that grant is missing from env. Connector credentials follow the same rule: the manifest never holds a credential.

A connectors: entry may carry static headers, and those values sit in git in plaintext, so a credential there is a leak rather than a configuration. auth is refused on a managed catalog or channel connector because the provider authorizes the account instead. The Slack bot token and its client secret never enter a sandbox and do not appear on the Secrets page.

How the Slack connector appears after you connect

Slack is a channel as well as a connector. kortix_slack, kortix_teams, kortix_email and kortix_telegram always count as declared, so validation passes before the entry exists. The connection itself is made in Customize → Connectors, under the Channels scope, not in the file.

A channel is not a manifest key. The manifest rejects a top-level channels block, so the workspace, the bot token and the join policy live outside the file. A reviewer sees one connector entry that names a channel. Slack, Microsoft Teams, Telegram and Discord: four channels, none of them a manifest key.

Read together, the four blocks answer the questions a reviewer brings to an agent: which one answers a mention, what it can reach when it does, and which of its calls stop for a person. They sit in git, so each answer arrives with an author and a reviewer.

Questions that come up before the first edit

What people ask about a manifest they did not write.

What is kortix.yaml?

The manifest at the root of a project repository. It declares the agents and what each one may reach, plus the connectors, secret names, triggers and the policies that decide which connector calls need approval.

How do I give a Slack agent access to a tool?

Add the connector’s slug to agents.<name>.connectors in kortix.yaml. A list such as [github, linear] reaches those two, all reaches every connector the project declares, and an omitted connectors grant reaches none.

Where do connector credentials go if not in kortix.yaml?

Into a connector account you authorize in Kortix, or into a project secret. The manifest only names secrets under env: and lists connectors under connectors:, and it never holds a credential.

Can I review an agent change before it takes effect?

Yes for session work, which lands through a change request a person merges, with validation blocking a bad file at the merge check. An edit in /workspace or on a session branch takes effect only when it lands on the base branch, through a merge or a push.

What does policy.default_mode risk do?

It decides the calls that no policy rule matches. A read runs, and a write or destructive call waits for approval. The default is allow_all, so risk is a choice you make in the file.

Make the agent’s rules a diff a person can read.

Connect Slack, then read the four blocks before the first mention.

Approval gates you set. Off until you set them. · Self-host is free · 3,000+ apps in a click