Working with kits
Extensions and scripts
Install extensions that add commands and panels to kit documents, and run a workspace .mjs script on the open document without network access.
Updated
By Kition Docs
Verified against Kition Desktop 0.1.1 (0532c350) on 2026-12-02
Extensions add commands, and sometimes side panels, to kit documents. Scripts are single .mjs files in your workspace that you run once on the document in front. Both work through the document's object model, so they change it the same way the kit's own commands do.
Every extension and script runs in a sandbox. An extension gets only the permissions it declares, and a script "cannot reach the network". They work on documents of every kit except HTML and Layout.
Install an extension
Use the switch on an entry to turn the extension off and on, and Remove to uninstall it. Kition keeps installed extensions in its own storage, not in the workspace.
- Put the extension in your workspace: its folder (with `extension.json`), or a `.zip` of it.
- Open Settings › **Extensions**.
- Under **Install from the workspace**, enter the workspace path of the folder, its `extension.json` or the `.zip` (for example `extensions/title-case`), and click **Install**.
- Check the entry under **Installed**: its version, the kits it is for, its **Commands** and its **Permissions**.
- Open a document of one of those kits and press Cmd/Ctrl+K (or Cmd/Ctrl+. inside the kit) to find the extension's commands and its "Show panel: …" items.
Permissions
| Shown as | What it allows |
|---|---|
| Read the document | Read the open document through its object model |
| Change the document | Make changes to the open document |
| Run kit commands | Run the kit's own commands |
| Connect to {site} | Reach that one web address; no other |
Heads up
Install extensions only from people you trust, and read their permissions first. Change the document lets an extension edit any part of the document it runs on.
Run a script
The script's default export receives ctx; ctx.document.run gives it the object model. This script adds "Reviewed: " to the first paragraph of a Doc document and returns the new text:
- Save a `.mjs` file in your workspace, for example `scripts/review.mjs`.
- Open the kit document you want it to work on.
- Press Cmd/Ctrl+K and choose **Run script…**.
- Enter the **Script path in the workspace** and click **Run**. Kition reports "Ran {name}" or what failed.
export default async function (ctx) {
return ctx.document.run(async (context) => {
const body = context.root.body.load()
await context.sync()
const first = body.at(0)
first.text.insert(0, 'Reviewed: ')
first.load(['text'])
await context.sync()
return { kit: ctx.document.kitId, text: first.text.toString() }
})
}Version and sources
This guide describes Kition Desktop as of source 0532c350, checked on 2026-12-02. Connected actions also depend on the configured model provider or service. If your installed version is older, some controls may differ.
Related pages
Command palette
Open Kition's command palette with Cmd/Ctrl+K, or Cmd/Ctrl+. inside a kit, to reach Settings, extension commands and Run script.
Version history
Kition records versions of kit documents as you work; see an earlier version read-only and restore it as one change you can undo.
Settings reference
Every section of Kition Desktop’s Settings, from General to About: what each control does, where it is saved, and which ones need Save or a restart.
Approve the agent's commands and fetches
When the built-in agent asks before running a shell command or fetching a site, what each approval button does, and where remembered rules are saved.