# kcode

> A native Mac coding-agent workspace with isolated worktrees, semantic code search, Side Agent oversight, and a hackable Lua agent loop.

kcode is a Mac coding agent workspace made by Oonga Studio. It runs multiple live coding sessions in one window, each with its own model, worktree and browser tile. It is available for Apple silicon Macs, with Windows and Linux waitlists listed on the site.

## What It Is

kcode is a desktop coding-agent environment where an AI agent edits code, runs shell commands, tests pages in a browser and delegates to subagents, while the user watches, steers and reviews. It works with hosted model APIs, a ChatGPT or Kimi For Coding plan, or local models such as Ollama, LM Studio, vLLM and llama.cpp. Sessions can be arranged in grid, tab or sidebar layouts and show live status.

## How it helps the agent write better code

The site describes local semantic code search that finds existing helpers by meaning, language-server references to trace callers before a signature change, and post-edit diagnostics that surface type and import errors right after each edit. Subagents can inherit the parent conversation and shell state or start fresh for an independent review, with custom Markdown roles and JSON Schema-checked results. Durable memory is recalled by relevance, confidence and recency, and original transcripts remain searchable after compaction. Skills can be Markdown guides or sandboxed Lua programs with typed inputs and outputs.

## Control, oversight and automation

Each worktree session gets its own branch, port, *.localhost domain, environment overrides and browser storage. Follow-up prompts can be queued while a turn runs. A Side Agent, running on a separately chosen model, writes catch-up notes and flags unverified claims, missed work or loops, and each flag can be sent to the main agent or dismissed. Session goals, repeating prompts and timers keep work going across turns, and hooks start work from file changes, cron schedules, CLI triggers or authenticated local webhooks.

## Extensibility and headless use

Sandboxed Lua plugins can intercept prompt building, tool calls, model requests and compaction, and hot-reload without a restart. MCP servers connect over stdio, HTTP or SSE. A permission system offers Default, Accept Edits, Auto and read-only Plan modes, with project trust gating executable project content. kcode can also run headless from scripts or CI with text, JSON or NDJSON output.

## Features
- Multiple live sessions in grid, tab or sidebar layouts
- Git worktree sessions with isolated ports, hostnames and browser state
- Subagents with inherited or fresh context and schema-checked results
- Local semantic code search and language-server references
- Post-edit diagnostics
- Durable memory and full session history search
- Executable Lua skills with typed JSON Schema interfaces
- Side Agent oversight with catch-up notes and flags
- Per-session built-in browser tile
- Session goals, loops, timers and event hooks
- Lua plugins and MCP server support
- Mid-turn prompt queueing and steering
- Per-session model switching including local models
- Headless mode with JSON/NDJSON output
- Permission modes and project trust

## Integrations
Anthropic, OpenAI, ChatGPT, Kimi For Coding, DeepSeek, MiniMax, Fireworks, Ollama, LM Studio, vLLM, llama.cpp, MCP, Git, Exa, Brave, Tavily

## Platforms
WINDOWS, MACOS, LINUX, WEB, API, CLI

## Pricing
Subscription-based

## Links
- Website: https://kcode.sh
- Documentation: https://kcode.sh/docs
- EveryDev.ai: https://www.everydev.ai/tools/kcode
