kodacode

module
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: AGPL-3.0

README

Turns AI coding from suggestion generator into work executor

Go Release Homebrew Docs

Layouts

KodaCode has two TUI layouts for different working styles:

  • Shell layout is the default single-plane workflow. It keeps the transcript, tool activity, diffs, and final responses in one continuous terminal surface. It is built for keyboard-heavy use with vi-like transcript navigation, including h / l for character movement, j / k for tool selection, v for visual selection, and i to return to insert mode.
  • Classic layout keeps a persistent right-side inspector with Details, Tools, and Tasks tabs. It is useful when you want the main transcript and structured tool/task state visible at the same time.

Switch layouts from the TUI with Ctrl+L, or set a default in ~/.config/kodacode/config.yaml with tui.layout: shell or tui.layout: classic.

KodaCode shell layout showing a full-width transcript with inline tool and diff output KodaCode classic layout showing the transcript beside Details, Tools, and Tasks inspector tabs

How It Works

Run kodacode inside a repository, choose a provider and model, then ask for real work. KodaCode keeps orchestration, permissions, tool execution, and prompt assembly in runtime code and durable events instead of hidden prompt behavior.

Use builder when the task is clear and contained. Use engineer when the task is broad, risky, architectural, or needs an approved plan before edits.

Example prompt:

Build a calculator that estimates monthly payment, total interest, and affordability range.

Acceptance criteria:

- Inputs: home price, down payment, interest rate, amortization years, property tax, insurance, condo fees, gross monthly income, monthly debts.
- Outputs: loan amount, estimated monthly principal + interest, total monthly housing cost, debt-to-income ratio, and affordability status.
- Use standard fixed-rate mortgage amortization math.
- Validate invalid inputs clearly.
- Add focused tests for payment calculation, DTI calculation, and edge cases.
- Do not use fake values or hardcoded backend state.
- Run the relevant test suite before finishing.

For a plan-first flow, select the engineer agent in the TUI and ask:

Before editing, inspect the app structure, propose a short implementation plan,
and wait for approval before making code changes.

Agents

  • builder: default project-sandboxed coding agent
  • engineer: structured planning, task tracking, and delegation
  • reviewer: read-focused review and acceptance checks
  • planner: read-only repository analysis and implementation planning
  • More about agents

Features

Install

# Homebrew
brew tap sageil/tap && brew install --cask kodacode

# Quick install
curl -fsSL https://raw.githubusercontent.com/sageil/kodacode/main/install.sh | sh

# Go
go install github.com/sageil/kodacode/cmd/kodacode@latest

Quick Start

Start

kodacode .

Configure providers with /connect (will auto run after fresh install), then choose a model route such as openai/gpt-5. See the model routing docs for provider IDs and OAuth-specific routes.

Type your message and press Enter. KodaCode handles the rest.

Useful first commands:

  • /connect: configure a provider
  • /model: choose the active model
  • /init: create workspace instructions
  • /timeline: branch from an earlier completed turn, navigate related branches, or explicitly summarize a branch with the utility model
  • /trace: inspect what happened in a turn
  • /cost: inspect spend and token savings

One-shot CLI examples:

kodacode "summarize this repository"
kodacode --resume "continue the previous refactor"
kodacode --add-dir ../shared "inspect both repos before editing"
kodacode --skill migration "add the schema change and focused tests"

Documentation

Full documentation, configuration reference, and guides are available at kodacode.dev.

License

AGPL-3.0

Directories

Path Synopsis
cmd
kodacode command
Package main wires the kodacode CLI and terminal application entrypoints.
Package main wires the kodacode CLI and terminal application entrypoints.
internal
agent
Package agent loads agent definitions, catalogs, and built-in agent behavior.
Package agent loads agent definitions, catalogs, and built-in agent behavior.
app
Package app orchestrates sessions, turns, tools, and provider execution.
Package app orchestrates sessions, turns, tools, and provider execution.
bootstrap
Package bootstrap builds application defaults used during startup.
Package bootstrap builds application defaults used during startup.
configdir
Package configdir resolves kodacode user configuration directories.
Package configdir resolves kodacode user configuration directories.
engine
Package engine defines the model-facing execution interface used by runtimes.
Package engine defines the model-facing execution interface used by runtimes.
events
Package events defines durable session events, replay storage, and projection.
Package events defines durable session events, replay storage, and projection.
lsp
Package lsp manages language server discovery, startup, and query execution.
Package lsp manages language server discovery, startup, and query execution.
mcp
Package mcp manages stdio MCP servers and their runtime registration.
Package mcp manages stdio MCP servers and their runtime registration.
observability
Package observability provides structured logging and retention helpers.
Package observability provides structured logging and retention helpers.
permissionpolicy
Package permissionpolicy matches declarative permission rules against requests.
Package permissionpolicy matches declarative permission rules against requests.
prompt
Package prompt compiles prompt fragments into provider-ready instructions.
Package prompt compiles prompt fragments into provider-ready instructions.
provider
Package provider integrates model providers and normalizes their request flows.
Package provider integrates model providers and normalizes their request flows.
search
Package search indexes workspaces and serves lexical and semantic search.
Package search indexes workspaces and serves lexical and semantic search.
sessiontitle
Package sessiontitle derives concise session titles from user prompts.
Package sessiontitle derives concise session titles from user prompts.
skill
Package skill loads, parses, and indexes user and project skills.
Package skill loads, parses, and indexes user and project skills.
textdiff
Package textdiff renders compact previews of text mutations.
Package textdiff renders compact previews of text mutations.
textutil
Package textutil provides shared text accumulation and truncation helpers.
Package textutil provides shared text accumulation and truncation helpers.
tool
Package tool defines tool contracts and built-in tool implementations.
Package tool defines tool contracts and built-in tool implementations.
tui
Package tui renders the terminal interface and maps runtime state to views.
Package tui renders the terminal interface and maps runtime state to views.
tui/theme
Package theme loads, catalogs, and applies terminal UI themes.
Package theme loads, catalogs, and applies terminal UI themes.
websearch
Package websearch provides web search backend implementations.
Package websearch provides web search backend implementations.
workspace
Package workspace defines workspace scope, grants, and path authorization.
Package workspace defines workspace scope, grants, and path authorization.

Jump to

Keyboard shortcuts

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