v1.2.16 — Improved intent routing

What is Kode?

Kode is an open-source AI coding agent that helps you write code in your terminal, IDE, or desktop. Powered by Sarvam AI's free model.

[*]
Free LLMPowered by Sarvam AI's sarvam-m model. No credit card required.
[*]
Permission-FirstAlways shows diffs before writing files. Never silently modifies code.
[*]
Git SnapshotsAutomatic snapshots before every write. Instant undo via /undo.
[*]
Deterministic RoutingSmart intent classification skips the LLM for instant common commands.
[*]
Context CompressionAuto-summarizes conversation at 80% capacity to retain important context.
[kode process running]
$

Start using Kode today

Install globally via npm and configure your environment.

1$ npm i -g kode-ai
2$ export SARVAM_API_KEY=your-key
3$ kode

Get your free API key at sarvam.ai

Docs

Everything you need to use Kode effectively.

How Kode Thinks

1
Failure followupIf the last step failed, 'why?' explains the error
2
Directory followupBare words after a failed search → try to navigate
3
File read intent'check/read/view package.json' → reads the file
4
Task intent'run tests', 'build it', 'clone repo' → execute
5
Navigation'go to dir lowkey' → changes working directory
6
Analysis'analyze the codebase' → full project analysis
7
LLM loopEverything else → open-ended agent loop (max 20 iterations)

Stack

TypeScript
Strict mode
Ink v5
Terminal UI
Sarvam AI
LLM Provider
sql.js
Session Storage
execa
Shell Execution
cosmiconfig
Config Loading
Vitest
Testing
tsup
Build Tool

Ready to code?

Join developers using Kode daily. Open source, MIT licensed, built with ❤️ for developers.

$ npm i -g kode-ai