Constitution.
On this page
This document says what k0rtex is and what it is for. The workflow and the features describe how it works today. When a change conflicts with this document, either the change or the document is wrong.
Description #
k0rtex is an Agentic Software House Platform. It provides the tools that help coding agents build software in a structured way.
A coding agent on its own receives a prompt and a folder. A software house gives its people much more: a way of taking in requests, a plan before the build, defined roles, shared standards, knowledge of the codebase, a review before delivery and a look back afterwards. k0rtex gives agents the same.
- A process. A request goes through Intake, Refine, Deliver, review and Learn.
- Roles. An Analyst, a Product Manager, a Developer, a Code Reviewer and a Product Owner each own a step. An Architect, a UX Designer, QA and a Security Officer are consulted on demand, and review a change when a review gate or the owner asks. The owner can add or waive those reviews.
- Equipment. Each role comes with instructions, skills, tool permissions, a model, the policies in force and knowledge of the project.
- A board. Epics, stories and sub-tasks record what was asked, what was proposed, what was decided and what was built.
- An owner. One person directs the work, answers questions and signs it off.
How it is built #
One server holds the web UI, the REST API, the MCP servers, the scheduler and the PostgreSQL storage. Workers pair with it over HTTPS, connect outbound over SSH and run a coding agent harness (OpenCode or Claude Code) in their own checkouts. Projects are GitHub repositories. Reviewed work leaves as a pull request or as a fast-forward push.
Objectives #
1. Give agent work a structure #
Agents produce better software when each turn has one job and a defined result. Every assignment is a typed Task with its own brief and accepted outcomes. Planning is separate from building, and building is separate from reviewing. A stage ends with a question or a proposal, never with a silent change to the board.
2. Equip agents instead of relying on the prompt #
What an agent needs to do a job well should not have to be typed again each time. Roles carry skills. Policies carry the team’s standing rules. A server-side index, recorded decisions and architecture facts carry knowledge of the code. Scoped MCP tools let the agent act on the board.
3. Keep the human in charge #
Agents propose and the owner decides. Only the owner’s approval turns a proposal into tickets. Moving a ticket to Ready launches nothing. Agent sessions never set Done, nothing is merged automatically, and the owner may put any ticket in any status at any time.
4. Make every step traceable #
Each attempt is a Run that saves the agent, specialists, skills and policies it was queued with. Questions, answers, proposals, decisions, comments, file changes, token usage and tool calls stay with the ticket, so the owner can see why something was built the way it was.
5. Stay independent of any one agent #
The server names no harness and runs neither Git nor an agent. A worker drives the harness through a provider package, over a command line or the Agent2Agent protocol. Adding a harness does not change the process.
6. Be consistent and safe by default #
A state change and its event are committed in one transaction. REST and MCP apply the same rules. The server listens on loopback unless told otherwise, a hosted board requires sign-in, agent sessions get credentials scoped to their own run, and k0rtex never force-pushes.
Non-goals #
- Multi-user or multi-tenant boards. A board has one owner.
- Projects hosted anywhere but GitHub.
- Starting work, accepting it or merging it without the owner asking.
- Several backend processes writing one database.
- Replacing the coding agent. k0rtex organizes and equips it.
Principles for contributors #
- State changes go through one board transaction, and the ticket version and event move with them.
- The server and the workers share only the protocol package.
- Prompt wording is data, not code.
- Search keeps working without a vector store, and network calls stay outside transactions.
- Schema changes are numbered migrations that apply once.
AGENTS.md has the details and the commands.
This page is docs/constitution.md in the k0rtex repository. Suggest a change.