Runtime config objects

The runtime config is a set of objects. Each object lives in a scope:

  • org: the organisation-wide value.
  • repo:<forge/owner/name>: one repository’s value, for example repo:github/acme/api.
Object Holds Role to change Read per repository
settings/models Tier to model mapping, budgets operator No, org only
settings/limits Spend limits and caps on running sessions per team, repository, skill, person and trigger admin No, org only
settings/merge_policy Merge policy and risk rules admin Yes, a repository’s value replaces the org’s
settings/egress The hosts and credentials a skill’s kit may ask for admin Yes, a repository’s value replaces the org’s
settings/activation The gate on activating a skill draft admin No, org only
settings/skills_source Where skills are edited: dashboard or git admin No, org only
repos Which repositories are enabled, and their switches operator (admin for allow_auto_merge) No, org only
rbac Users, teams and roles admin No, org only
schedules Recurring jobs operator The org’s schedules and each repository’s own all run
settings/memory Learning from reviews, per-person memory, identity links admin Only learn_from_reviews: a repository’s value overrides the org’s
settings/improvement Whether kōjō proposes changes to its own skills admin Yes, each scope has its own: a repository does not inherit the org’s
settings/plan When a session writes a plan and waits for the go-ahead before it changes code admin Yes, a repository’s value replaces the org’s
settings/reports Which sessions may have a shareable report, and how long a link works admin Yes, a repository’s keys override the org’s
skill/<name> The files of one dashboard-managed skill Through drafts only Yes, a repository’s skill shadows the org’s

Every object is decoded strictly: an unknown key is an error. An object is always written as a whole.

The API accepts any object in any scope, but only the objects marked above are read from a repository’s scope. A settings/models object stored in a repository’s scope has no effect.

Read and change one object

Read the active revision of one object with the HTTP API. scope defaults to org:

curl -H "Authorization: Bearer $KOJO_TOKEN" \
  "$KOJO_SERVER/api/v1/config/object?scope=org&object=settings/activation"

The answer has the revision (its id, scope, object, content, author, message and created_at) and the role a change needs.

Write the object with PUT on the same path. content is the whole object and message is recorded with the new revision. This gives the repository github/acme/api a merge policy of its own:

curl -X PUT "$KOJO_SERVER/api/v1/config/object?scope=repo:github/acme/api&object=settings/merge_policy" \
  -H "Authorization: Bearer $KOJO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content": {"mode": "ask"}, "message": "api: ask before opening pull requests"}'

The CLI has no command for a single object. Put the object in a document and apply it: kojo config apply changes only the objects its document lists, so a document with one object changes one object. It needs a token with the admin role, whatever the object.

version: 1
objects:
  - scope: org
    object: settings/activation
    content:
      require_eval: true
      min_eval_pass_rate: 0.7
      require_second_reviewer: true
kojo config apply -i activation.yaml --dry-run
kojo config apply -i activation.yaml

Every example below is such a document, and kojo config export prints the current value of every object in the same form. See Config as code.

settings/models

Seeded from models.tiers and models.budgets in kojo.yaml.

Key Default Meaning
tiers.<name>.provider From kojo.yaml The model provider of the tier
tiers.<name>.model From kojo.yaml The model name. Required.
tiers.<name>.fallbacks None A list of provider and model pairs, tried in order when the tier’s model fails
tiers.<name>.price.input_per_mtok None USD per million input tokens
tiers.<name>.price.output_per_mtok None USD per million output tokens
tiers.<name>.requests_per_minute 0 (no limit) Rate limit of the tier, per kōjō replica
budgets.per_session_usd From kojo.yaml Spend cap of one session, in USD. 0 means no cap.
budgets.per_day_usd From kojo.yaml Spend cap over the last 24 hours, every session of the install, evals included, in USD. 0 means no cap.
budgets.per_month_usd From kojo.yaml Spend cap since the first of the calendar month, 00:00 UTC, every session of the install, in USD. Checked after the daily cap. 0 means no cap.

Validation: the tiers fast and strong must exist, every tier needs a model, and budgets cannot be negative. The provider name is not checked when the object is saved; a provider the gateway does not know fails when the tier is called. Providers, prices and fallbacks are explained in Models.

This example runs both tiers on Anthropic, falls back from Opus to Sonnet when the strong model fails, gives both tiers a price so that the budgets count, limits their request rate, and caps a session at 10 USD, a day at 200 USD and a month at 3000 USD.

version: 1
objects:
  - scope: org
    object: settings/models
    content:
      tiers:
        fast:
          provider: anthropic
          model: claude-haiku-5-5
          price:
            input_per_mtok: 0.10
            output_per_mtok: 0.50
          requests_per_minute: 120
        strong:
          provider: anthropic
          model: claude-opus-5-5
          fallbacks:
            - provider: anthropic
              model: claude-sonnet-5-5
          price:
            input_per_mtok: 4
            output_per_mtok: 20
          requests_per_minute: 30
      budgets:
        per_session_usd: 10
        per_day_usd: 200
        per_month_usd: 3000

settings/limits

Seeded empty: no team, repository, skill, person or trigger has a limit. Only an admin changes it, so an operator in a team cannot raise the limits that bind the team, or their own. It is read from the org’s scope only. Limits per team and repository and Limits per skill and person explain what each limit does.

Key Default Meaning
teams.<name>.per_day_usd 0 (no limit) Spend of the team’s repositories over the last 24 hours, in USD. <name> is a team of rbac; its repositories are that team’s repos.
teams.<name>.per_month_usd 0 (no limit) Spend of the team’s repositories since the first of the calendar month, 00:00 UTC, in USD
teams.<name>.max_running 0 (no cap) How many sessions of the team’s repositories run at once
repos.<id>.per_day_usd 0 (no limit) Spend of one repository over the last 24 hours, in USD. <id> is forge/owner/name.
repos.<id>.per_month_usd 0 (no limit) Spend of one repository since the first of the calendar month, in USD
repos.<id>.max_running 0 (no cap) How many sessions of one repository run at once
skills.<name>.per_day_usd 0 (no limit) Spend of one skill’s subagent, judge and plan calls over the last 24 hours, in every repository, in USD. Dry runs do not count.
skills.<name>.per_month_usd 0 (no limit) The same since the first of the calendar month, in USD
people.<key>.per_day_usd 0 (no limit) Spend of the sessions one person asked for over the last 24 hours, in USD. <key> is an email or <surface>:<id>.
people.<key>.per_month_usd 0 (no limit) The same since the first of the calendar month, in USD
people.<key>.max_running 0 (no cap) How many of one person’s sessions run at once
people.default None The limits of everyone without an entry of their own, with the same three keys
triggers.<kind>.max_running None How many sessions of one trigger run at once. Required for each trigger listed.

A session counts against its repository, the repository’s team, the person who asked for it and the install; a model call of a skill’s subagent, judge or plan also counts against that skill. A person’s entry replaces people.default as a whole, so an entry with no key ({}) exempts that person. A session without a repository counts against no team or repository: only the install, its person, its skills and its trigger’s cap. A spent limit keeps a session that has not started in the queue, and stops a running one at its next model call; a session over a cap stays queued until a slot frees. Limits are read when they are checked: a change applies to sessions already running.

Validation: amounts and caps cannot be negative, max_running is at most 10000, every key of repos has the form forge/owner/name, and every key of triggers is a request kind (mention, issue_opened, pr_opened, pr_updated, check_failed, schedule, manual, chat, skill_test, eval, feedback, improve, alert, campaign or branch_red) with a max_running of at least 1. A key of skills is a skill name (lower case letters, digits and -), not default, and has no max_running (a session’s skill is often not known when a worker takes it from the queue, so a claim cannot count it). A key of people is default, an email, or <surface>:<id>, in lower case and written as kōjō records it: alice@example.com, not email:alice@example.com or Alice@Example.com; the error names the form to write. A team name is not checked against rbac when the object is saved; kojo doctor warns about limits of a team that rbac does not define or that owns no repository, of a repository that is not enabled, a cap that is not below the workers of a replica, and a limit that a tighter one is always reached before. It also warns about a skill no scope resolves, a person key whose surface the install does not have, a login that settings/memory.identities links to an email (its sessions count under the email), and a person allowed more than people.default.

This example gives the team platform 50 USD a day, 800 USD a month and three sessions at once across its repositories. Within it, github/acme/api may spend at most 300 USD a month and run two sessions at once. fix-bug may spend 20 USD a day and 300 USD a month, wherever it runs. Everyone may spend 10 USD a day and run two sessions at once, except alice@example.com, whose empty entry exempts her, and the API token ci-nightly, which may spend 40 USD a day and run four. Evals run at most two at a time, so they never take every worker.

version: 1
objects:
  - scope: org
    object: settings/limits
    content:
      teams:
        platform:
          per_day_usd: 50
          per_month_usd: 800
          max_running: 3
      repos:
        github/acme/api:
          per_month_usd: 300
          max_running: 2
      skills:
        fix-bug:
          per_day_usd: 20
          per_month_usd: 300
      people:
        default:
          per_day_usd: 10
          max_running: 2
        alice@example.com: {}
        token:ci-nightly:
          per_day_usd: 40
          max_running: 4
      triggers:
        eval:
          max_running: 2

settings/merge_policy

Seeded with the mode from defaults.merge_policy. Keys: inherit, mode, trigger_permission, merge_method, approval_timeout and risk (max_changed_lines, sensitive_paths, low_below, high_above, classifier). They are documented with their defaults and validation in Merge policy.

In a repository’s scope, while the repository’s .factory/factory.yaml holds its policy, a PUT, a rollback or an apply of this object opens a pull request that changes the file instead of writing a revision (Editing a setting that lives in git).

In this example the org asks for an approval in chat before a pull request is opened ready for review, and opens a draft when nobody answers within an hour. It treats a diff of 300 lines as high risk and adds the classifier model’s opinion to the risk rules. Its sensitive_paths list replaces the default one. The repository github/acme/web replaces the org’s policy with auto_merge; the keys it leaves out take their defaults, not the org’s values, and the mode only applies because the repos example sets allow_auto_merge for it.

version: 1
objects:
  - scope: org
    object: settings/merge_policy
    content:
      mode: ask
      trigger_permission: write
      merge_method: squash
      approval_timeout: 1h
      risk:
        max_changed_lines: 300
        sensitive_paths:
          - ".github/**"
          - "deploy/**"
          - "**/migrations/**"
          - "**/auth/**"
          - "go.mod"
          - "go.sum"
        low_below: 0.3
        high_above: 0.6
        classifier: true
  - scope: repo:github/acme/web
    object: settings/merge_policy
    content:
      mode: auto_merge
      merge_method: rebase

settings/egress

The outer limit of what any skill may reach. A skill whose kit asks for more is dropped when skills are resolved and reported as a problem; a draft that asks for more cannot be activated. Built-in skills are exempt: their kits are part of the release.

Key Default Meaning
allowed_hosts See below Hostnames a kit may put on its egress allowlist. *.example.com matches subdomains. An entry without a port is for 443 and 80; host:port is for that port.
allowed_credentials The configured forges Credential names a kit may use: github, gitlab, forgejo, bitbucket

The seeded allowed_hosts are proxy.golang.org, sum.golang.org, registry.npmjs.org, pypi.org, files.pythonhosted.org, crates.io, static.crates.io, index.crates.io, repo.maven.apache.org, rubygems.org, vuln.go.dev and api.osv.dev, plus the hosts of the configured forges. That covers every host a built-in kit allows, so a built-in skill can be customised without widening the list.

Validation: each host is a hostname or a *.domain pattern, with an optional :port from 1 to 65535. A kit’s entry is covered only by one for the same port: registry.example.com does not cover registry.example.com:5000. A bare * is refused, because it would turn deny-all into allow-all. See kojo-proxy for how the allowlist is enforced.

In this example the org lets a kit reach the Go, npm and Python registries, GitHub and every host under artifacts.example.com, and use the github credential. The repository github/acme/api has a shorter list: a repository’s object replaces the org’s, it does not add to it.

version: 1
objects:
  - scope: org
    object: settings/egress
    content:
      allowed_hosts:
        - proxy.golang.org
        - sum.golang.org
        - registry.npmjs.org
        - pypi.org
        - files.pythonhosted.org
        - github.com
        - "*.artifacts.example.com"
      allowed_credentials: [github]
  - scope: repo:github/acme/api
    object: settings/egress
    content:
      allowed_hosts:
        - proxy.golang.org
        - sum.golang.org
        - github.com
      allowed_credentials: [github]

settings/activation

Key Default Meaning
require_eval seed.activation.require_eval (false) A draft needs a finished eval before it can be activated. For a skill without eval fixtures, an accepted test run of the draft takes the eval’s place.
min_eval_pass_rate seed.activation.min_eval_pass_rate (0) The pass rate that eval must reach, from 0 to 1
require_second_reviewer false Nobody who wrote the draft, its author or anyone who edited it, can activate it; someone else must

Validation: min_eval_pass_rate must be between 0 and 1. kojo doctor warns when skill changes can go live without an eval.

With this example a draft is activated only after an eval with a pass rate of at least 0.8, and by someone other than its author.

version: 1
objects:
  - scope: org
    object: settings/activation
    content:
      require_eval: true
      min_eval_pass_rate: 0.8
      require_second_reviewer: true

settings/skills_source

Key Default Meaning
org dashboard Where org-level skills are edited: dashboard or git
repo git Where a repository’s skills are edited: git or dashboard
skills_repo defaults.skills_repo The repository of org-level skills, as forge/owner/name. Required when org is git.

Validation: org and repo must be dashboard or git, and skills_repo is required when org is git.

With this example org-level skills are read from .factory/skills/ of github/acme/factory-skills and each repository’s skills from its own .factory/skills/. Activating a draft in the dashboard then opens a pull request on the repository that holds the skill. See Dashboard or git.

version: 1
objects:
  - scope: org
    object: settings/skills_source
    content:
      org: git
      repo: git
      skills_repo: github/acme/factory-skills

repos

Seeded empty: no repository is enabled after install. kōjō rejects requests for a repository that is not enabled.

Key Default Meaning
repos.<id>.enabled false kōjō works on this repository. <id> is forge/owner/name.
repos.<id>.skills All Limits the repository to these skills
repos.<id>.auto None Automatic triggers: a map from a forge event to the skill, or list of skills, that runs on it without anyone mentioning kōjō. Each skill of a list starts its own session.
repos.<id>.allow_auto_merge false Lets the repository use the auto_merge merge policy. Only an admin can turn it on.
repos.<id>.on_merge None Follow-ups: when a pull request is merged in this repository, each entry starts its skill on each of its repos, with the merged pull request as the reference repository source. This is how port-sdk follows an SDK to its siblings. The repository itself may be one of the repos: for a merge into the default branch, that session runs on the default branch, reads the merged pull request with get_pr_diff, and opens a pull request of its own.
repos.<id>.linked None Linked repositories: the other repositories of the same product, as forge/owner/name. Every session on this repository clones them at .kojo/linked/<name>, may change the ones the requester may change, and opens one pull request per repository that changed.
repos.<id>.follow_up.checks false A failed check on an open pull request kōjō opened here starts a follow-up that commits to it, with the trust of whoever asked for the pull request while they still have it, and so does one on a person’s pull request that carries follow_up.label. A mention on such a pull request starts one whatever this says.
repos.<id>.follow_up.max_rounds 3 How many follow-ups one pull request gets, counted across sessions. 0 or unset means 3.
repos.<id>.follow_up.label kojo:commit The label that lets kōjō commit to a person’s pull request on anyone’s trusted mention, when someone with trigger_permission added it. With follow_up.checks on, failed checks on such a pull request start rounds too, with the trust of whoever added the label. A mention by the pull request’s author commits to its branch without the label.
repos.<id>.follow_up.default_branch false A failed check on the head of the default branch starts one session that opens a draft fix, instead of auto.check_failed. kōjō never merges that pull request.
repos.<id>.tickets None Issue trackers: the Linear teams or projects, Jira projects and Asana projects whose tickets are work on this repository. Each entry has a tracker (linear, jira or asana), a team (Linear only: the team’s key), a project (a Linear project’s name or ID, a Jira project’s key, an Asana project’s ID) and an optional label that narrows it to the tickets with that label (on Asana, that tag).
repos.<id>.alerts None Production alerts from Sentry and Datadog: the Sentry projects and Datadog services whose errors are work on this repository. Each entry has a source (sentry or datadog), a project (a Sentry project’s slug, or a Datadog service’s name), an optional environment, an optional skill to run instead of letting the orchestrator choose, a mode (fix, the default, or report for a read-only session), an optional notify channel for the outcome (a channel ID, or surface:channel) and max_per_day (1 to 100; 0 or unset means 10).

The events of auto are issue_opened, pr_opened, pr_updated and check_failed. An automatic run may change code only when the author of the event has the repository’s trigger_permission.

Validation: every key of repos must have the form forge/owner/name, and every key of auto must be one of the four events and name a skill or a list of skills that is not empty and names each skill once. follow_up.max_rounds is 0 to 20, follow_up.label is one line of at most 100 bytes, and follow_up takes no other key. Every on_merge entry names a skill and at least one repository as forge/owner/name; a follow-up runs only on repositories that are enabled. The repository itself means the session runs there after a merge into the default branch (a merge into any other branch starts nothing there, and is audited as request.reject): it clones the default branch, opens its own pull request against it, and get_pr_diff reads the merged pull request. A pull request such a session opened starts no on_merge session when it merges. A linked list has at most eight entries, each a forge/owner/name other than the repository itself and listed once, and no two whose last path segments are the same (they would be cloned into one directory); a linked repository that is not enabled is left out of sessions, and kojo doctor reports it.

A tickets entry for Linear names a team or a project or both, one for Jira a project and no team, one for Asana a project that is the project’s numeric ID and no team. A ticket belongs to the entries whose tracker, team, project and label all match it, names compared without case. A ticket that belongs to no enabled repository, or to several, starts nothing, and kōjō says so on the ticket: two repositories that share a team or a project tell their tickets apart with label.

An alerts entry needs a source of sentry or datadog and a project: for Sentry a slug (letters, digits, - and _), for Datadog a service name (a letter, then letters, digits and _ - : . /, at most 200 characters); its skill, mode, notify and max_per_day are checked as above, and an entry may not repeat the project and environment of another of the same repository, compared without case. An alert belongs to the entries whose project and, when the entry names one, environment match it, compared without case; entries that name its environment win over entries that name none. An alert that belongs to no enabled repository, or to several, starts nothing and is audited as request.reject. A session an alert started opens only draft pull requests, whatever the merge policy.

Enabling a repository is refused unless its default branch is protected on the forge. kōjō reads the protection when the change is made, whether it comes from the dashboard, the API, kojo config apply or a rollback. With dev: true the check is skipped. kojo doctor repeats it for every enabled repository.

This example enables two repositories. github/acme/api is limited to five skills, gets a triage of every new issue, and a review of every new pull request with a check of the docs it touches, without anyone mentioning kōjō, is linked to its web client, so a fix can change both, and takes the tickets of the Linear team ENG that carry the label api, and of the Jira project PAY, and takes the errors of the Sentry project api in production. github/acme/web may use every skill and the auto_merge merge policy, a failed check on one of kōjō’s pull requests there starts a follow-up, at most two per pull request, a failed check on its default branch’s head starts a draft fix, and it takes the team’s tickets labelled web, the tasks of one Asana project, and the errors of the Datadog service web-ssr in prod.

version: 1
objects:
  - scope: org
    object: repos
    content:
      repos:
        github/acme/api:
          enabled: true
          skills: [triage, reproduce-bug, fix-bug, review-pr, docs-sync]
          auto:
            issue_opened: triage
            pr_opened: [review-pr, docs-sync]
          linked: [github/acme/web]
          tickets:
            - { tracker: linear, team: ENG, label: api }
            - { tracker: jira, project: PAY }
          alerts:
            - { source: sentry, project: api, environment: production, notify: C0ENG }
        github/acme/web:
          enabled: true
          allow_auto_merge: true
          follow_up:
            checks: true
            max_rounds: 2
            default_branch: true
          tickets:
            - { tracker: linear, team: ENG, label: web }
            - { tracker: asana, project: "1209876543210" }
          alerts:
            - { source: datadog, project: web-ssr, environment: prod }

rbac

Seeded with the emails of server.auth.admins, each with the admin role.

Key Meaning
users.<email> The list of roles of that email
teams.<name>.members The emails in the team
teams.<name>.roles The roles every member gets
teams.<name>.repos The repositories the team owns, as forge/owner/name. Their sessions count against the team’s limits in settings/limits. They do not narrow the team’s roles, which hold on every repository.

Validation: user keys must be email addresses, and every role must be viewer, skill:edit, operator or admin. Every entry of a team’s repos is forge/owner/name, and a repository belongs to one team at most. A change to the org’s rbac that would leave no admin is refused. An API token with the admin role in kojo.yaml counts as an admin; tokens with other roles do not.

In this example Ana is an admin, Ben is an operator, the two members of the team skill-authors may edit skill drafts, and the team platform operates kōjō and owns the repositories github/acme/api and github/acme/web.

version: 1
objects:
  - scope: org
    object: rbac
    content:
      users:
        ana@example.com: [admin]
        ben@example.com: [operator]
      teams:
        skill-authors:
          members: [cy@example.com, dee@example.com]
          roles: ["skill:edit"]
        platform:
          members: [eve@example.com, finn@example.com]
          roles: [operator]
          repos: [github/acme/api, github/acme/web]

schedules

Seeded empty. A repository’s .factory/schedules.yaml is copied into that repository’s scope on a push to the default branch and when a session starts. A file that does not parse changes nothing: the schedules of the last good version keep running. Removing the file stops its schedules.

Key Default Meaning
schedules[].name Required Unique name within the object
schedules[].cron Required Five-field cron expression, or @hourly, @daily, @weekly
schedules[].timezone UTC IANA time zone
schedules[].skill Required The skill to run
schedules[].prompt None Extra instruction for each run
schedules[].repos Every enabled repository The repositories an org-level schedule runs on. Ignored in a repository’s own schedules.
schedules[].notify None A Slack channel ID that gets the result
schedules[].enabled true Set false to pause the schedule

Validation: names are required and unique, skill is required, and the cron expression must parse in its time zone. See Schedules.

In this example the org runs a digest on weekday mornings, Madrid time, on every enabled repository and posts the result to a Slack channel; reviews the dependencies of two repositories on Mondays; and keeps a weekly hunt for flaky tests defined but paused.

version: 1
objects:
  - scope: org
    object: schedules
    content:
      schedules:
        - name: daily-digest
          cron: "0 8 * * 1-5"
          timezone: Europe/Madrid
          skill: daily-digest
          notify: C0123456789
        - name: weekly-dependency-review
          cron: "0 9 * * 1"
          timezone: Europe/Madrid
          skill: dependency-review
          prompt: Apply patch and minor upgrades only.
          repos: [github/acme/api, github/acme/web]
        - name: flaky-tests
          cron: "@weekly"
          skill: flaky-test-hunt
          enabled: false

A repository’s own schedules normally come from its .factory/schedules.yaml: every sync replaces the schedules object of the repository’s scope with what the file says, and removing the file empties a list that came from it. A list written to a repository’s scope through the API or kojo config apply stays as long as the repository has no such file. While it has one, such a write opens a pull request that changes the file instead (Editing a setting that lives in git).

settings/memory

Seeded empty, which means the defaults: kōjō learns from reviews, and people have a memory of their own. Memory describes what each switch controls.

Key Default Meaning
learn_from_reviews true Learn lessons from what maintainers write in reviews of pull requests kōjō opened. In a repository’s scope it overrides the org’s value for that repository; leave it out there to follow the org.
personal true Per-person memory. With false, sessions neither read nor save personal memories. The ones already stored stay until their owners or an admin delete them. Read from the org’s object only.
identities[].email Required The email of one person
identities[].logins Required That person’s accounts as surface:id: github:ana, gitlab:ana, forgejo:ana, bitbucket:<Atlassian account ID>, slack:U02ABCDEF, or token:<name> for an API token of server.auth.tokens. Read from the org’s object only.

Validation: every identity needs an email address and at least one login, a login is written surface:id, and one login cannot belong to two emails. Logins and emails compare without case.

A request made with a linked account reads and writes the personal memory of that email, the same one the person has in chat and in the dashboard. An account that is not linked has a personal memory of its own.

In this example the org learns from reviews, Ana’s GitHub and Slack accounts and her API token are linked to her email, and learning is turned off for one repository.

version: 1
objects:
  - scope: org
    object: settings/memory
    content:
      learn_from_reviews: true
      personal: true
      identities:
        - email: ana@example.com
          logins: ["github:ana", "slack:U02ABCDEF", "token:ana-laptop"]
        - email: ben@example.com
          logins: ["github:benb"]
  - scope: repo:github/acme/web
    object: settings/memory
    content:
      learn_from_reviews: false

To take a repository’s override back, write an empty object to its scope:

curl -X PUT "$KOJO_SERVER/api/v1/config/object?scope=repo:github/acme/web&object=settings/memory" \
  -H "Authorization: Bearer $KOJO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content": {}, "message": "web: follow the org again"}'

settings/improvement

Seeded off. It turns on self-improvement for one scope: kōjō then proposes changes to that scope’s skills from the evidence it gathers, measures each proposal with evals, and leaves it for a person to approve. The org’s object covers the org’s skills, with evidence from every repository. A repository’s object covers the skills that repository resolves, with that repository’s evidence only. A repository does not inherit the org’s object: without one of its own, self-improvement is off for it.

Key Default Meaning
enabled false Propose changes to this scope’s skills
skills All Only these skills. Empty means every skill the scope resolves.
min_evidence 3 How many pieces of evidence a proposal needs
window_days 30 How far back evidence is read
cooldown_days 7 The least time between two proposals the periodic check makes for one skill. A proposal asked for by hand does not wait for it.
notify None The chat channel told when a proposal is ready for review: a channel ID for the only chat surface, or surface:channel

Validation: min_evidence is at least 2 (one data point is not a pattern) and at most 1000, window_days and cooldown_days are between 1 and 365, and a skill is listed once.

In this example the org proposes changes to fix-bug and review-pr once five pieces of evidence have gathered, and tells a Slack channel. github/acme/api proposes for every skill it resolves, on its own evidence.

version: 1
objects:
  - scope: org
    object: settings/improvement
    content:
      enabled: true
      skills: [fix-bug, review-pr]
      min_evidence: 5
      window_days: 30
      cooldown_days: 7
      notify: slack:C0123ABC
  - scope: repo:github/acme/api
    object: settings/improvement
    content:
      enabled: true

settings/plan

Seeded with mode: off. It decides when a session writes a plan and waits for a person’s go-ahead before it runs a skill that changes code; Plan first has the whole flow. Whatever the mode, a request that asks for a plan gets one: kojo run --plan, plan in the API and MCP, or the label on its issue or pull request. A repository’s object replaces the org’s: the keys it leaves out take their defaults, not the org’s values.

Key Default Meaning
mode off off: only requests that ask for a plan get one. skills: also every session about to run one of skills. always: also every session about to run any skill that changes code.
skills None The skills that need a plan in mode skills
label kojo:plan An issue or pull request with this label gets a plan, whatever the mode. Labels are compared without regard to case.
max_revisions 3 How many revised plans one session writes when asked; one more request declines the plan

Validation: mode is off, skills or always; skills is given in mode skills only, with at least one skill, each listed once; max_revisions is 0 (the default) to 10; label is one line of at most 100 characters.

In this example the org plans before build-feature. github/acme/api plans before every skill that changes code, reads its own label, and allows one revision.

version: 1
objects:
  - scope: org
    object: settings/plan
    content:
      mode: skills
      skills: [build-feature]
  - scope: repo:github/acme/api
    object: settings/plan
    content:
      mode: always
      label: needs-plan
      max_revisions: 1

settings/reports

Seeded empty, which means the defaults. It decides which sessions may have a shareable report: a read-only, redacted page of the session that anyone with its link can open without signing in, which pull request descriptions link and operators share. A repository’s object overrides the org’s key by key: a key it leaves out keeps the org’s value. It is read live, not pinned to a session’s revisions: a change applies to links made before it, the next time they are opened.

Key Default Meaning
mode public_repos public_repos: sessions on a repository that was public when the session ran. all: sessions on any repository; a report of a private repository is as private as its link. off: none, and links made earlier stop working.
ttl 720h How long a new link works. A link keeps the expiry it was made with.

Validation: mode is off, public_repos or all; ttl is a duration from 1h to 8760h. Whatever the mode, a confidential session never has a report: see which sessions may have a report.

In this example the org keeps the default, reports for public repositories, with links that work for a week. github/acme/web has reports whether it is public or private, and github/acme/api has none.

version: 1
objects:
  - scope: org
    object: settings/reports
    content:
      mode: public_repos
      ttl: 168h
  - scope: repo:github/acme/web
    object: settings/reports
    content:
      mode: all
  - scope: repo:github/acme/api
    object: settings/reports
    content:
      mode: "off"

Skill objects

An object named skill/ plus the skill’s name, for example skill/fix-bug. It holds one dashboard-managed skill of its scope.

Key Default Meaning
files None A map from file name to content: SKILL.md, goals.yaml, kit.yaml. The formats are described in Skills.
deleted false true marks the dashboard copy as removed from this scope: resolution uses the scope’s git-backed skill of that name, if any, and otherwise falls through to the next layer. It does not hide a git skill (in 0.3.0 and earlier it did); to keep one from running, remove it from git

Validation: files must hold a SKILL.md unless deleted is true.

In the dashboard and the API, skills change through drafts: PUT /api/v1/config/object refuses a skill object. kojo config export includes every skill object, and kojo config apply writes the ones in its document without a draft, a test run or the activation gate, which is why it needs the admin role. It still checks each one: the files must validate, SKILL.md must name the skill the object names, and the kit must stay inside the scope’s settings/egress. One skill that fails refuses the whole document.

This example is an org skill named fix-vet with its three files: the front matter and instructions, the acceptance criteria, and a kit that allows the Go module proxy, which the settings/egress example permits.

version: 1
objects:
  - scope: org
    object: skill/fix-vet
    content:
      files:
        SKILL.md: |
          ---
          name: fix-vet
          description: Fix what go vet reports in a Go repository, without changing behaviour.
          model_tier: fast
          tools: [read_file, list_files, search, edit_file, exec, git_diff]
          max_steps: 30
          ---

          Run `go vet ./...` from the repository root and fix every finding.

          1. Fix the cause of each finding. Do not silence one with a comment or by deleting the code it is about.
          2. Change nothing else: no refactors, and no formatting of lines you did not have to touch.
          3. Run `go vet ./...` and `go test ./...` again before you finish, and say what you changed.
        goals.yaml: |
          max_attempts: 2
          checks:
            - name: vet is clean
              run: go vet ./...
              timeout: 10m
            - name: tests pass
              run: go test ./...
              timeout: 20m
          constraints:
            max_changed_lines: 200
            forbidden_paths: [".github/**", "go.mod", "go.sum"]
          judge:
            model_tier: fast
            rubric: |
              - Every change answers a finding of go vet.
              - No finding was silenced instead of fixed.
        kit.yaml: |
          resources: { cpu: "2", memory: 4Gi, disk: 20Gi }
          egress:
            allow:
              - proxy.golang.org
              - sum.golang.org
Scroll to move. + - zoom, 0 fit, Esc close.100%