ka

package module
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

KanArtist (ka)

A work tracker for teams whose work is mostly done by AI agents, with git as the database. Agents are the primary users; humans get a live window into what they are doing.

New here? Start with Getting started. All documentation: docs/.

Status: M1 and M2 done; M3 and M4 built, awaiting review; 1.0 not yet released

Piece Where
Store Spec v1: prose, JSON Schemas, built-in defaults, conformance corpus spec/v1/
kaspec: parse, canonical format, config layering with locks, validation pkg/kaspec/
Engine: workspaces, index, queries, operations, sync with operation replay, merge driver internal/engine/
ka mcp: 15 MCP tools with workspace-specific schemas internal/mcpserver/
The ka CLI, with prompts, completion, ka watch, hooks internal/cli/
ka daemon: REST, OpenAPI 3.1, SSE, MCP over HTTP, presence, remote mode (tokens, proxies), webhooks, metrics internal/api/
Web UI (Angular, embedded): Activity, Board (drag and drop, saved boards), Table, ticket editing, Agents, Inbox, Docs, Sync & health, Settings web/
PRD scenarios S1–S9, the multi-clone simulator, token budgets internal/scenario/
ka check --ci GitHub Action actions/check/
Releases (GoReleaser, container image) — not yet published .goreleaser.yaml, Dockerfile
One-time v0 importer tools/migrate-v0/

Install

The easy way: clone this repository and ask your coding agent to set KanArtist up.

git clone https://github.com/JumpKickOSS/ka && cd ka
claude "set up KanArtist"         # or codex, cursor-agent, agy, copilot, grok, muse…

AGENTS.md tells the agent what to do: pin the checkout to the latest release, run the install script, run ka setup (which registers the ka MCP server and skill with every coding agent on the machine and serves the web UI from the checkout's ui/), and connect your ticket stores. To update, check out a newer tag and ask again.

By hand (requires git 2.40+ at run time):

curl -fsSL https://raw.githubusercontent.com/JumpKickOSS/ka/main/install.sh | sh   # Linux, macOS
irm https://raw.githubusercontent.com/JumpKickOSS/ka/main/install.ps1 | iex         # Windows (PowerShell)
brew install jumpkickoss/tap/ka                  # macOS, Linux
scoop bucket add jumpkick https://github.com/JumpKickOSS/scoop-bucket
scoop install jumpkick/ka                        # Windows
go install github.com/JumpKickOSS/ka/cmd/ka@latest   # anywhere, with Go 1.27+
docker run --rm ghcr.io/jumpkickoss/ka version   # the container image (a team daemon)

The script checks the download against the release's signed checksums (and the signature itself when cosign is installed), installs to ~/.local/bin (/usr/local/bin as root) and upgrades when run again; KA_VERSION pins a release and KA_INSTALL_DIR picks the directory. With Go 1.27+ installed, the scripts build from source when there is no release for your platform or version, with KA_FROM_SOURCE=1, or with KA_VERSION=main for the newest commit. Run from a checkout of this repository, they install the release matching the checked-out tag, or build the checkout when it isn't on a tag. Then run ka setup. Read them first if you prefer: install.sh, install.ps1.

Debian, Ubuntu, Fedora and RHEL can install the package (amd64 or arm64):

curl -fsSLO https://github.com/JumpKickOSS/ka/releases/latest/download/ka_linux_amd64.deb && sudo apt install ./ka_linux_amd64.deb
sudo dnf install https://github.com/JumpKickOSS/ka/releases/latest/download/ka_linux_amd64.rpm

Or download an archive from the releases.

source <(ka completion bash)          # optional; also zsh, fish, powershell

For agents (MCP)

ka setup              # registers the MCP server and skill with every coding agent found
ka setup --dry-run    # shows what it would change; --agents claude,codex limits it

Or by hand: claude mcp add -s user ka -- ka mcp (other clients: command ka, args ["mcp"]). ka skill prints the guide agents follow.

Start the agent inside a store, or in a code repo whose root has a .ka.yml pointer:

store: git@github.com:example/tickets.git   # or a path to a local store checkout
project: jk

The loop is ka_next (find and claim) → work → ka_comment / ka_check → ka_transition status=done summary=…. Follow-ups go in one ka_create call; questions for a human go through ka_ask.

For humans (CLI)

ka init --project jk                 # new store in the current git repo
ka ls is:ready project:jk            # query: project:jk kind:bug -label:infra is:blocked words
ka next [--claim]                    # the best ready ticket
ka show JK-7QK3M [--comments]
ka new -t "Fix the flaky cache test" --kind bug --priority P1 --accept "passes 100 runs"
ka edit JK-7QK3M --set priority=P0 --add labels=cache   # no flags: $EDITOR
ka move JK-7QK3M done -m "Fixed the race in the eviction thread."
ka inbox / ka answer JK-7QK3M --choice 1 / ka approve JK-7QK3M
ka sync / ka check / ka fix / ka doctor [--fix]
ka open [ID]                         # the web UI (starts the daemon if needed)
ka watch [QUERY]                     # the live activity stream in the terminal
ka config explain [KEY]              # effective config and the file that set each value
ka project move KEY --to STORE       # re-home a project; IDs stay the same
ka project rename KEY --key NEW --prefix P   # new key and ID prefix; references follow
ka store set-url NAME URL            # a store's repository moved; keeps the clone
ka hooks install                     # pre-commit: ka fmt --staged && ka check --staged
ka daemon / ka daemon status / ka daemon stop   # REST API on 127.0.0.1:7711
ka token create --actor NAME         # API tokens for a remote daemon (docs/operations.md)

Every read command takes --json. ka help lists everything.

Development

See CONTRIBUTING.md.

go test ./...                                          # everything (the S5 simulator takes ~30 s)
go test -short -race ./...                             # what CI runs on all three OSes
KA_V0_CORPUS=~/src/oss/kanartist go test ./tools/...   # plus the real v0 corpus, if you have it

License

Apache-2.0

Documentation

Overview

Package ka holds the files the ka binary embeds from the repository root.

Index

Constants

This section is empty.

Variables

View Source
var Skill string

Skill is the agent skill `ka setup` installs and `ka skill` prints.

UI is the built web UI (web/, built by `npm run build` into ui/). The daemon serves a checkout's ui/ when one is set up and matches this binary's API, and these embedded files otherwise, so it works offline.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
ka command
Command ka is the KanArtist CLI, MCP server (ka mcp) and git merge driver (ka merge-driver).
Command ka is the KanArtist CLI, MCP server (ka mcp) and git merge driver (ka merge-driver).
internal
api
Package api is the daemon's HTTP surface (PRD §12, §15): REST under /api/v1 with an OpenAPI 3.1 document, the token exchange for browsers, and the Host and Origin checks that keep other web pages out.
Package api is the daemon's HTTP surface (PRD §12, §15): REST under /api/v1 with an OpenAPI 3.1 document, the token exchange for browsers, and the Host and Origin checks that keep other web pages out.
cli
Package cli implements the ka command line (PRD §14).
Package cli implements the ka command line (PRD §14).
gitx
Package gitx runs the system git binary.
Package gitx runs the system git binary.
mcpserver
Package mcpserver exposes the ka service as an MCP server (PRD §11): a few coarse tools whose input schemas carry the workspace's real vocabulary, compact text results, and actionable errors.
Package mcpserver exposes the ka service as an MCP server (PRD §11): a few coarse tools whose input schemas carry the workspace's real vocabulary, compact text results, and actionable errors.
presence
Package presence tracks who is connected to a daemon right now (PRD §8.1): MCP sessions, their last tool call, and when they were last seen.
Package presence tracks who is connected to a daemon right now (PRD §8.1): MCP sessions, their last tool call, and when they were last seen.
render
Package render produces the compact text forms of ka results.
Package render produces the compact text forms of ka results.
setup
Package setup registers ka with the coding agents installed on this machine: the ka MCP server and the ka skill, at the user level, so every project the user opens gets them.
Package setup registers ka with the coding agents installed on this machine: the ka MCP server and the ka skill, at the user level, so every project the user opens gets them.
testkit
Package testkit builds throwaway git remotes and clones of stores for tests: the multi-clone simulator, scenarios and token budgets.
Package testkit builds throwaway git remotes and clones of stores for tests: the multi-clone simulator, scenarios and token budgets.
uisrc
Package uisrc decides which web UI the daemon serves: the ui/ directory of a ka checkout, when one is set up and was built against this binary's API, or the UI embedded in the binary.
Package uisrc decides which web UI the daemon serves: the ui/ directory of a ka checkout, when one is set up and was built against this binary's API, or the UI embedded in the binary.
pkg
kaspec
Package kaspec implements the KanArtist Store Spec v1: parsing, canonical formatting, config layering and validation of store contents.
Package kaspec implements the KanArtist Store Spec v1: parsing, canonical formatting, config layering and validation of store contents.
tools
migrate-v0 command
Command migrate-v0 imports a KanArtist v0 repository (Python-era layout) into Store Spec v1 stores.
Command migrate-v0 imports a KanArtist v0 repository (Python-era layout) into Store Spec v1 stores.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL