Kortix Program Agents logo

Kortix Program Agents

OrganizationPopular
kortix-ai
kortix-program-agents

Write a program agent: an agent in kortix.yaml with `run: <command>` that runs code for each turn instead of a model. Load when someone asks for an agent, a trigger or an automation that runs a script, a TS/JS/Python file, `@kortix/sdk` code or any fixed sequence of steps with no judgment, or when you edit an agent block that has `run`.

Overview

Publisherkortix-ai
RepositoryCompanyOS
Skill namekortix-program-agents
Stars
20.8K
Forks
3.5K
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by kortix-ai on GitHub. Read the source before you install it.

Installation

Install the Kortix Program Agents AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-program-agents
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kortix-ai/CompanyOS.git /tmp/CompanyOS
mkdir -p .claude/skills
cp -r /tmp/CompanyOS/packages/starter/templates/managed/skills/kortix-program-agents .claude/skills/kortix-program-agents
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kortix Program Agents in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Kortix Program Agents on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Kortix Program Agents is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Choose it for fixed steps: a sync, a report, a cleanup, a webhook handler. Choose a model agent for judgment: reading, deciding, writing for people. A program agent runs to completion. For a watch that never stops, build an App that sends App events, and give a trigger on those events to the program agent.

triggers:

  • slug: janitor-hourly on: { every: 1h } run: { agent: janitor, session: reuse, payload: { days: 30 } }
  • slug: janitor-hook on: { webhook: { secret: JANITOR_HOOK } } run: { agent: janitor }

- `run` is one shell command (1 to 4096 characters). Put the logic in a file in the repository.
- `run` excludes `model`, `prompt` and `prompt_file`: validation fails with them.
- Model keys (`variant`, `temperature`, `codemode`, `skills`, …) have no effect: validation warns.
- The environment's `repos` clones the repository (needs `workspace.gitops.read`); its `setup` installs dependencies. The command waits for both. Its `network` limits what the program reaches.
- `timeout`: the run limit, `1s` to `6h`, default `30m`.
- A trigger of a program agent omits `prompt`: its input is then the whole payload as JSON. `run.payload` adds fixed parameters to it.
- `session: reuse` on a frequent trigger: one session whose computer resumes with dependencies installed. The default `fresh` starts a new computer and runs the environment's `setup` on every fire.
</shape>

<contract>
One turn = one run of the command, in the environment's first `repos` path (else `/workspace`):

| | |
| --- | --- |
| Input | The turn's message on stdin. `$KORTIX_EVENT_PATH` names a JSON file: `{ version, session_id, agent, prompt }`. |
| Trigger input | A trigger with no `prompt`: stdin is the whole payload as JSON, exactly (no other text): `trigger` (`slug`, `type`), `fired_at`, then `body` and `headers` for a webhook, `event` for an event or App event, `change_request` for a merge, `source`, `actor`, `message` for a manual fire. The trigger's `run.payload` keys are merged in; the fire's own keys win. A `prompt` template instead sends its rendered text. |
| Time limit | `timeout` (default `30m`, at most `6h`). Past it: SIGTERM, SIGKILL 5 s later, and the turn fails with "ran longer than its timeout". |
| Reply | stdout, rendered as Markdown. The first 256 KiB are kept. |
| Failure | A non-zero exit fails the turn; the error shows the last 4 KiB of stderr. A failed run is never retried. |
| Stop | SIGTERM to the command's process group, SIGKILL 5 s later. |
| Environment | The agent shell's: its granted secrets, `KORTIX_TOKEN`, `KORTIX_API_URL`, `KORTIX_PROJECT_ID`, `KORTIX_SESSION_ID`, `KORTIX_AGENT_NAME`. |
</contract>

<sdk>
The computer holds the agent's own `KORTIX_API_URL` and `KORTIX_TOKEN`. Pass them to `createKortix`, so every call acts as the agent:

```ts
import { readFileSync } from 'node:fs'
import { createKortix } from '@kortix/sdk'

const event = JSON.parse(readFileSync(process.env.KORTIX_EVENT_PATH!, 'utf8'))
const input = JSON.parse(event.prompt) // a trigger with no prompt: the payload as JSON
const kortix = createKortix({ backendUrl: process.env.KORTIX_API_URL!, getToken: async () => process.env.KORTIX_TOKEN! })
const sessions = await kortix.project(process.env.KORTIX_PROJECT_ID!).sessions.list()
console.log(`Checked ${sessions.length} sessions for ${input.trigger.slug} (last ${input.days} days).`)

Add @kortix/sdk to the repository's package.json and install it in workspace.setup. SDK releases after 0.15.10 also accept createKortix() with no options and read the same two variables.

Frequently asked questions

What does the Kortix Program Agents AI skill do?

Write a program agent: an agent in kortix.yaml with `run: <command>` that runs code for each turn instead of a model. Load when someone asks for an agent, a trigger or an automation that runs a script, a TS/JS/Python file, `@kortix/sdk` code or any fixed sequence of steps with no judgment, or when you edit an agent block that has `run`.

Why use Kortix Program Agents on TypingMind?

Because you install it once and use it with any model. Kortix Program Agents is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Kortix Program Agents in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-program-agents. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Kortix Program Agents?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Kortix Program Agents?

As many as you like. As long as a model supports skills, you can use Kortix Program Agents with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Kortix Program Agents AI skill free?

It is published on GitHub by kortix-ai. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇