Features.
On this page
What k0rtex does and how each part works. The workflow shows how they fit together.
Overview, Board and navigation #
- Overview is the cross-project home. Needs you lists everything waiting on you: agent questions, approvals, answers, review sign-offs and blocked tickets. Below it are active agents, the requests pipeline, delivery by status, project health and recent activity.
- Board is a status kanban of requests, epics, stories (labeled with their epic) and tickets created directly. A request or epic card also shows its stage (Intake, To refine, Refining, Delivering or Learn) and how many stories are finished. The cross-project Board and List are under All work. A project also has a Knowledge tab.
- Filters and tags. Filter by epic and status. All tags filters by tag. Tags ignore case.
- Runs lists active runs, Inbox lists pending questions and permissions, and a quick switcher jumps between places from the keyboard.
How it works: the UI refreshes from committed events over server-sent events, so what you see is
what was written. Code: frontend/src/App.tsx, Overview.tsx, Shell.tsx.
Tickets #
Every ticket, requests and epics included, opens in one view with up to four tabs. Changes appears only for tickets an agent can build.
| Tab | Holds |
|---|---|
| Chat | Comments and runs in the order they happened: activity, tool calls, outcomes, questions and permissions, with the reply box below |
| Ticket | Description and acceptance criteria (rendered as Markdown), checklist, child and linked tickets, and editing |
| Changes | Files changed by each implementation attempt |
| History | The event timeline |
For a request, epic or planned story, the header also shows its stage and the reply box carries the next action: answer, approve, request changes, start refinement, start a build, resume or retry. For other tickets, Start and Retry sit in the header. Stop run is always there. A properties panel holds the status, priority, assignee, worker, tags, an epic’s intent, GitHub delivery, token usage and Stop request.
How it works: every change increments the ticket version and writes an event in the same
transaction. Edits carry the version you read, so a stale edit is refused. Checklist steps are
yours to write and the Developer’s to tick. Comments without a run are the owner’s, and a new
implementation attempt receives them as instructions. Code: tickets.py, work.py,
checklists.py.
Agents and roles #
| Role | Part in the process | Consults | Bundled skills |
|---|---|---|---|
| Analyst | Intake | k0rtex-analyst, k0rtex-facilitate |
|
| Product Manager | Refine | Product Owner, UX Designer, Architect | k0rtex-pm, k0rtex-facilitate |
| Developer | Implementation | k0rtex-build (Build stories only) |
|
| Code Reviewer | Review | k0rtex-code-review |
|
| Product Owner | Learn, and a specialist | k0rtex-po, k0rtex-retrospective |
|
| Architect | Specialist, architecture review | k0rtex-architecture |
|
| UX Designer | Specialist, UX review | k0rtex-ux |
|
| QA | QA review | k0rtex-qa-review |
|
| Security Officer | Security review | k0rtex-security-review |
In Settings → Agents, each agent has one role, a name, instructions, ordered tool permissions (allow, deny or ask), a model, a reasoning effort, a provider and a label color. The editor shows the effective access that results. Check models discovers a workspace’s models without sending a prompt. With no model selected, a primary agent uses the workspace default and a specialist inherits its parent’s.
Select a board default for each role, and override only what differs under Settings →
Projects → Project role overrides. A task can name a specific Developer, and an explicit
agent_id on a start request takes precedence.
How it works: built-in definitions are one JSON file per role in
agent_definitions/; they are copied into the board
when its agents are first created. Each attempt saves the selected agent, its specialists and
their skills when it is queued, so later edits don’t change it. Each attempt is a fresh harness
session, and workspace files are not modified to configure it. Code: agents.py,
execution/specialists.py.
Review gates #
Rules, flags and the owner decide which specialist reviews a ticket needs before sign-off. Manage
rules under Settings → Review gates: global or per project, matching changed paths (globs
where **/ spans directories), tags or ticket types. The board ships rules for security,
dependencies, schema and public interfaces, user interface files and bugs.
How it works: a requirement is one row per ticket and review kind. Its status is derived from the
review Tasks of the latest implementation, so a new implementation needs them again, while a
waiver stays until you require the review again. Moving a ticket into review applies the rules,
Code Review runs first, and the requirements follow. The workflow describes
the chain. Code: reviews.py.
Providers and profiles #
A provider (also called a profile) is a harness with a concurrency limit. The worker owns the harness’s executable and arguments. OpenCode and Claude Code are supported. A run’s harness is its provider’s, else its project’s, else the worker’s default. See the Claude Code and OpenCode providers.
Policies #
Policies are standing instructions for agents, such as commit message conventions or required checks. Manage them under Settings → Policies. A policy applies to every project (global) or to one project, can be switched off without deleting it, and can be reordered within its scope. The editor previews the exact text agents receive, and each project’s settings page lists what its agents get.
How it works: every agent in a session, specialists included, receives the enabled global policies
and then the project’s, appended to its system instructions. This keeps them stable for the whole
run, so the harness can cache them. Project policies take precedence over global ones. A run keeps
the policies in force when it was queued. REST offers /api/v1/policies; MCP offers the read-only
list_policies. Code: policies.py.
Scheduling #
Starting work creates a queued attempt. A coordinator in the backend claims it atomically, within these limits:
- the project’s required worker labels, and any manual pin on the ticket
- the worker’s session capacity, or the limits the worker sets for itself
- the provider’s concurrency limit
- one executing run per ticket
Queued reviews are claimed first. The first claim binds the ticket to its worker; retries and
reviews stay there even if project labels change. An idempotency key makes a repeated start
request return the same run. Offline or busy workers leave work queued. Code: runs.py,
execution/coordinator.py.
Workers #
A worker is the machine that runs agents. It clones and pushes repositories, prepares ticket checkouts, drives the harness and extracts the knowledge index. It needs no inbound port.
- Pairing: the board issues a single-use link that expires after ten minutes.
- Service:
k0rtex service installkeeps it running under launchd or systemd. - Control:
status,drain,resume,stop,configand a terminal UI (tui). - From the board: see sessions and recent runs, change settings, pause, pair another machine or revoke. Pausing is the board’s hold on new runs; draining is the worker’s own.
Connect a worker has the setup, and the worker reference the files and settings.
GitHub #
- Projects are imported from repositories your GitHub App is installed on.
- Delivery publishes a reviewed commit as a pull request, or fast-forwards the base branch. It is offered on any story or sub-task once Code Review has finished on its commit.
- Status shows PR comments, check runs and commit statuses.
- Actions: view recent runs and dispatch a workflow, choosing a branch or tag and filling its
declared inputs. The workflow must support
workflow_dispatchand exist on the default branch.
How it works: the server calls GitHub’s API with the app’s user token; the worker does the Git
push with its own credentials. Code: integrations/github_repos.py, integrations/github.py.
Knowledge #
The server indexes each project’s base branch and answers agents’ searches from it.
- Index: files, symbols, passages, import edges and packages.
- Decisions and facts: agents propose decisions and record architecture facts; you accept or reject decisions. Accepted decisions and project facts are summarized in every prompt.
- Search: word search (BM25) always; with Qdrant and an embeddings endpoint, results are fused with search by meaning.
- Knowledge view: index status, incremental or full rebuild, search, decisions and facts.
How it works: onboarding, decision changes, Git changes (checked every 30 seconds) and manual
reindexes queue jobs. A worker extracts, the server chunks and stores. The derived index in
the knowledge schema can be dropped and rebuilt. See
semantic knowledge search to set it up and
the architecture for the parts. Code: knowledge/.
Tool gateway #
The default tool access, which keeps many tool definitions out of the agent’s context. Instead of every
k0rtex MCP tool, the agent gets search, execute and skill, and calls tools from sandboxed
TypeScript on the worker, checked against its original permissions.
Tool gateway explains what workers need and how to opt out.
MCP #
Agents and your own clients act on the board through MCP.
| Mount | Used by | Tools |
|---|---|---|
/mcp/ |
The owner’s clients | The whole board, GitHub repository import, knowledge (knowledge_*) |
/mcp/refinement/… |
Intake, Refine and Learn turns | ask_question, report_stage_reply, list_epics, add_comment |
/mcp/implementation/… |
Developer | get_ticket, list_steps, update_checklist_step, add_comment, report_outcome |
/mcp/review/… |
Code Reviewer | report_review, add_comment |
/mcp/knowledge/… |
Agent sessions | Search, symbols, dependencies, facts and decisions |
/mcp/github/… |
Sessions on GitHub projects | Read and open pull requests; list and run workflows |
Run mounts are scoped to their ticket and run, and ownership is checked inside the transaction.
/mcp/ acts as the owner, so give it only to clients you trust. The full list of board tools is in
the README. Code: mcp/.
Questions and permissions #
An agent can ask you a question or ask to use a tool. The request is stored, shown on the ticket,
in Needs you and in the Inbox, and the run waits. Answers are validated against the question’s
form. Headless OpenCode cannot pause, so its ask rules are denied with a notice.
Usage and tool statistics #
Each run records the token counts the agent reported and its tool calls by category (knowledge, glob, grep, read and so on). A ticket shows usage per session with a total; a request epic adds its stories.
Events, health and storage #
/api/v1/events/streamstreams committed events and supportsLast-Event-IDreplay./api/v1/healthreportsdegradedwhen a background loop keeps failing.- One backend process owns the PostgreSQL database in
K0RTEX_DATABASE_URL; the data directory (~/.k0rtex,K0RTEX_DATA_DIR) keeps its SSH host key.
Security #
- The server listens on loopback by default. A hosted origin requires OAuth sign-in (OIDC or GitHub). Organizations own projects, teams and workers; teams grant their members read, write or admin access to projects.
- Workers authenticate with their own SSH key, and pairing pins the server’s host key.
- Agent sessions receive short-lived, path-scoped credentials.
- Pushes are never forced, and branch protection still applies.
- With an embeddings endpoint configured, that endpoint receives your code.
Cleanup #
Settings can delete the work records of one project or of all projects (tickets, runs, comments and
their history). It is refused while affected runs are active and cannot be undone. Repository files
and worktrees stay on disk. Code: cleanup.py.
This page is docs/features.md in the k0rtex repository. Suggest a change.