The language built
for AI agents
Kode uses 48% fewer tokens than Python. Full-stack. Built-in agents, memory, and state machines.
-- A complete web API in 6 lines
lt db = db.open("sqlite:app.db")
web.route("GET", "/api", |req| ->
web.json(db.query("select * from users"))
)
web.serve(3000)48% fewer tokens than Python
Less tokens means lower API costs, more logic per context window, and faster agent execution.
| Task | Python | JavaScript | Kode | Savings |
|---|---|---|---|---|
| Web search agent | 340 | 285 | 185 | -46% |
| Multi-agent collab | 420 | 310 | 195 | -54% |
| Web API + database | 380 | 320 | 215 | -43% |
| Error handling | 310 | 250 | 155 | -50% |
| Data pipeline | 290 | 245 | 155 | -47% |
| Total | 1740 | 1410 | 905 | -48% |
7 features nobody else has
Purpose-built for AI agents. Every feature solves a real problem.
Self-Healing Code
Auto-captures context and retries on failure. No more silent crashes.
Cost Awareness
Track token spend, estimate costs before execution, enforce budgets per agent.
Agent Sandboxing
Fine-grained allow/deny permissions per agent. Prevent unauthorized access.
Intent-Based
Declare what you want, not how. The runtime figures out the steps.
Built-in Contracts
Pre/post conditions validate every function call. Catch 60-80% of bugs.
4-Type Memory
Working, semantic, episodic, procedural memory built into the language.
Full-Stack
Web server, SQLite database, HTML, JSON API — all built into one language.
Clean, minimal syntax
2-char keywords. Zero boilerplate. Every character earns its place.
-- Variables and functions lt name = "Kode" vr count = 0 fn add(a, b) { rt a + b } fn double(x) -> x * 2 -- Lambdas lt sq = |x| -> x * x -- Control flow if x > 0 { io.out("positive") } ef x == 0 { io.out("zero") } el { io.out("negative") }
Multi-agent by default
Spawn agents, pass messages, build pipelines. No frameworks needed.
ag Researcher {
on "search" (p) {
em "Writer" @{type|"write"
data|"Found: " + p.query}
}
}
ag Writer {
on "write" (p) {
em "Reviewer" @{type|"review"
article|"Article: " + p.data}
}
}
ag Reviewer {
on "review" (p) {
io.out("APPROVED: " + p.article)
}
}
lt r = sp Researcher
lt w = sp Writer
lt v = sp Reviewer
em r @{type|"search" query|"AI agents"}Define Agents
Agents have their own state, event handlers, and memory.
Spawn Instances
Create agent instances that run independently.
Pass Messages
Agents communicate via typed messages with TOON payloads.
State Machines
Built-in state machines for workflow tracking.
Build complete apps
Web server, database, HTML, API — all in one language. No Python. No JavaScript. Just Kode.
lt store = db.open("sqlite:todos.db")
store.exec("create table if not exists todos
(id integer primary key autoincrement,
title text, done integer default 0)")
web.route("GET", "/api/todos", |req| ->
web.json(store.query("select * from todos"))
)
web.route("POST", "/api/todos", |req| {
store.exec("insert into todos (title) values (?)",
@[req.body.title])
rt web.json(@{ok|tr}, 201)
})
web.route("POST", "/toggle/:id", |req| {
store.exec("update todos set done =
case when done=0 then 1 else 0 end
where id = ?", @[req.params.id])
rt web.json(@{ok|tr})
})
web.serve(3000)35+ modules built in
No npm install. No pip install. Everything you need, out of the box.
Start writing Kode
One command. Zero config. Ready in seconds.
$ npm install -g kode-langClick to copy$ kode hello.kd Hello from Kode! fib(10) = 55