Repository navigation
Guides Contributing Dev Workflow
Local setup, worktrees, fast iteration.
git clone https://github.com/cuongtranba/kanna
cd kanna
bun installbun run devThis starts two processes: the Vite+ client (vp dev, which needs Node 22.18+ or 24.11+) on :5174 and the server on
:5175 (always the client port + 1). Open the client port —
localhost:5174 — for HMR. --port changes the client
port and the server follows.
bun run dev also sets KANNA_RUNTIME_PROFILE=dev, so it reads and writes
~/.kanna-dev instead of ~/.kanna. Your real chats are never at risk from a
dev run.
Two other shapes worth knowing:
bun run start # single process on :3210, production shape
bun run install:dev # build, then install this tree globally as the `kanna` CLILong-running changes belong in a worktree, so they are isolated from the main checkout and from every other in-flight change:
git worktree add -b feat/<topic> .worktrees/<topic> origin/main
cd .worktrees/<topic>This repo routinely has a dozen or more live worktrees; that is why the architecture budget uses ceilings rather than exact line pins.
bun run test src/server/<file>.test.tsbun run test runs Vitest under Bun — see Lint & Tests.
bun run check # vp check (lint + types) → lint:comments → lint:flex-overflow → build:client → check:bundle
bun run testThose two are the minimum. The full gate list is in Lint & Tests.
Before changing component boundaries, run /c3 query <topic>. After, run
/c3 change to keep .c3/ in sync — code-doc drift blocks a merge. See
Architecture.
This wiki is generated from wiki/src/content/docs in cuongtranba/kanna.
Edit the docs there: changes made on this wiki are overwritten on the next sync.
The same docs are published at https://kanna-wiki.lowbit.link.
Getting Started
Features
- Providers & Models
- Chat & Transcript
- Generative UI
- Projects & Sessions
- Boards
- Multi-repo Stacks
- Slash Commands
- Cron Jobs
- Loops
- Beacons
- Kanna Plugins
- Package Auto-Update
- Advanced
- Security
Guides
- User Guide
- Contributing
- Ops & Self-Host
Sharing
Reference