Run Kilo Code from anywhere

Every Kilo Code session gets its own git worktree, its own Postgres, its own ports. Parallel agents never fight over your dev database — and you keep coding in yours.

thinslice terminal showing slice tmp --from current kilo running in an isolated worktree

Keep coding in your worktree
while Claude works in its own.

No shared database, no port collisions — isolated by default.

thinslice slice list output
thinslice Kilo Code session in isolated worktree
thinslice state diff view

Loved by developers

What developers are saying about thinslice + Kilo Code.

Every slice has its own everything

thinslice binds each git worktree to its own bag of state — no shared databases, no shared ports, no shared config. Kilo runs inside a slice and can't reach yours.

Postgres
Redis
Ports
Config
Git worktree
Read the docs

One command to launch

Spin up a fresh worktree with cloned state and hand it to Kilo Code in one shot. thinslice handles the postgres clone, the redis snapshot, and the port reservation — you just describe the task.

slice tmp
--from current
kilo "…"

Isolated worktree

with

Cloned state

Own Postgres
Own Redis
Own ports

Review, preview, ship

When Kilo is done, review the diff inline, run your app against the isolated database, then commit and open a PR — without ever touching your main working tree.

fix-authworktree
WorktreePreviewReviewCommitPRMerge
web.fix-auth.my-app.localhost
Inline review3 files changed
src/auth/session.ts+42
src/auth/middleware.ts+18-9
tests/auth.test.ts+31
Ready to shipchecks passed
Commit
Open PR
Merge

Forget about ports

When Kilo sessions run in parallel, each slice gets its own reserved port range. No conflicts, no guessing which process is on which port.

my-app
fix-authnpm run dev
:3001
add-searchnpm run dev
:3002
upgrade-depsnpm run dev
:3003

Fully scriptable

Everything you can do interactively, you can do from a script or CI pipeline.

slice tmp --from current -- claude -p "implement user authentication"slice tmp --from current --name feature-x -- claude -p "implement feature X"slice ls                                          # list running slicesslice status feature-x                        # check a sliceslice rm feature-x                            # tear down + clean state
Full CLI reference

FAQ

+Is this free?
Yes. thinslice is free and open source. You need Kilo Code installed with your own API keys for whichever model provider you use. thinslice only manages the local worktree and state — your model usage goes through Kilo as normal.
+Does my code or data leave my machine?
No. thinslice runs entirely locally. It clones your Postgres database using native copy-on-write snapshots, binds a port range to the slice, and runs Kilo as a subprocess. Nothing is sent anywhere by thinslice.
+What does "state" mean exactly?
Each thinslice slice gets its own Postgres instance (cloned from yours), its own Redis instance, an isolated set of reserved ports, and environment config scoped to that worktree. Kilo runs inside this environment and can't accidentally mutate your main database.
+Do I need Docker or Kubernetes?
No. thinslice uses native OS process isolation and Postgres's built-in copy capabilities. No containers, no VMs, no root access required.
+What happens when I'm done with a session?
Run slice rm <name> and thinslice tears everything down — the worktree, the Postgres clone, the Redis instance, the reserved ports. Your main environment is untouched.
+Can I run multiple Kilo sessions at once?
Yes, that's the main use case. Each slice tmp call creates a fully independent environment. You can run as many parallel sessions as your hardware supports, each with its own database and ports.
+Which model providers does Kilo support?
Kilo Code supports multiple providers including Anthropic, OpenAI, Google, and others via your own API keys. thinslice doesn't add any credential requirements — it launches Kilo as a subprocess in an isolated environment using whatever provider credentials Kilo already has configured.
+Do I need a Kilo subscription?
Kilo Code itself is open source and free to use. You pay for the underlying model API calls via your chosen provider. thinslice doesn't add any subscription or billing requirements on top of that.
+Do I need git?
Yes, git worktrees are how thinslice isolates the code. You don't need GitHub or a remote — a local repo is enough. thinslice creates the worktree branch automatically.
+How does the Postgres clone work?
thinslice uses Postgres's CREATE DATABASE … TEMPLATE to snapshot your database in place. On macOS with APFS, the data files are copy-on-write so the clone is near-instant regardless of database size. See the docs for details.

thinslice is an independent open source project for giving every coding agent its own isolated slice of your stack — no Docker, no VMs, no shared databases.

It's built around the idea that agents should be first-class tenants: isolated from your working environment so you can code and ship in parallel without fear.

If thinslice saves you time, sponsorship is the best way to support continued development.