A software factory you run yourself.
kōjō puts agents to work on your repositories, from a request to a draft pull request. They build features, fix bugs, review code and audit for vulnerabilities, when someone asks or on a schedule. It is one Go binary and Postgres, in your infrastructure, with the model you choose.
What it does
Build a feature
From an issue or a request to one change: acceptance criteria, a plan, the code, its tests and the docs.
Fix a bug
First a failing test that reproduces the report, then a minimal fix that makes it pass.
Port a change across SDKs
A change that landed in one language's SDK, carried over to another the way that language does it, with its tests.
Keep tests and docs in step
On a pull request: tests for the lines it changed that fail without the change, and docs edits that follow from its code.
Review a pull request
One comment on correctness bugs, missing tests and convention breaks.
Audit for vulnerabilities
Each finding with evidence, impact and a fix, in a report that stays out of public places.
Keep a codebase healthy
On a schedule: safe dependency upgrades, flaky tests, stale issues, upstream releases, a daily digest. New issues get a triage note.
dependency-reviewflaky-test-huntstale-issue-triagerelease-watchdaily-digesttriage
These are the fourteen skills in the binary. None runs until someone asks, an operator maps a forge event to it, or a schedule is created. Built-in skills
From a request to a draft pull request
Whatever the work, it takes the same path. What happens on the way is set by a skill: three files in your repository, under .factory/skills/<name>/.
- RequestA comment on an issue or a pull request, a Slack message,
kojo run, an MCP call or a schedule. - SandboxSKILL.md, kit.yaml The orchestrator picks the skills. Each one works on a clone, in a sandbox. Repository code runs here and nowhere else.
- Goal criticgoals.yaml Runs the checks, measures the diff, asks the judge. Work that falls short goes back with the reasons.
- Merge policymerge_policy Scores the risk of the change. The default mode is
draft_only. - Draft pull requestOpened by the core, through the forge API. A review or an audit ends with a report instead.
SKILL.md says what to do, with which tools and on which model tier. kit.yaml says what the sandbox gets and the only hosts it may reach. goals.yaml says what “done” means. A repository's skill wins over the org's, and the org's over the built-in one. How skills work
What keeps it in bounds
Your infrastructure, any model
One binary and Postgres, with Anthropic, OpenAI, Google, OpenRouter, Ollama or your own gateway. Models
Keys never meet repository code
Code runs in a sandbox. A proxy outside it adds credentials, only for allowlisted hosts. Security
“Done” is checked
Every result must pass the skill’s goals: commands, limits on the diff, a rubric. Skills
Draft pull requests by default
Asking a person first, or merging low-risk changes, is something you turn on. Merge policy
Start
The quick start goes from nothing to a first session on one of your repositories: one machine with Docker, a model key and a GitHub repository. The result is a draft pull request the goal critic has checked.
- Quick start Install, connect a repository and run a first session, step by step.
- Install One VM with Docker Compose, or Kubernetes with Helm, then
kojo doctor. - Docs Concepts, skills, sandboxes, managing kōjō and the CLI.
# the binary and the single-machine files, checksum verified
curl -fsSL https://xavidop.github.io/kojo/install.sh \
| sh -s -- --compose-dir kojo
cd kojo
# connect GitHub, start it, check it
kojo setup github --public-url https://kojo.example.com
docker compose up -d
kojo serve -f kojo.yaml
kojo doctor --remote
# ask for a piece of work
kojo run --repo github/acme/api \
"add a --json flag to the export command, with a test"
