Works with any coding agent
Run any agent in an isolated worktree. thinslice provides the state — the agent uses its own credentials, config, and MCP servers.
State bags, not containers
Each worktree gets its own postgres, redis, ports, and config. Detach the worktree, keep the state. Reattach different code whenever you need.
per-worktree state bag
or
shared across worktrees
Slice, work, reconcile
Create a worktree with cloned state, let the agent work in isolation, review the diff, then merge back and reconcile the database — without touching main.
Forget about ports
When agents work in parallel, they all run dev servers. thinslice gives each one a URL based on the branch name — no port conflicts, no guessing.
Fully scriptable
Everything you can do in the config, you can do from the terminal.
slice new feature-auth slice tmp --from current claude -p "implement user auth" # agent in isolation slice attach feature-auth --to my-app # attach worktree to state bag slice detach feature-auth # keep state, detach code slice ls # list worktrees + state
FAQ
+Is this free?
+Does my code or data leave my machine?
+What's a state bag?
+What agents does it support?
+Do I need Docker?
+How does `slice tmp` work?
slice tmp --from current creates a new git worktree branched from your current HEAD, clones the active state bag into a fresh one, then launches the agent inside that isolated environment. When the agent finishes, you review the diff and decide whether to merge.+Do I need GitHub?
+How do I reconcile database changes after merging?
Most stacks hardcode where they store data and what ports they use. thinslice asks you to move those values into environment variables. Once every program in your stack reads state paths and ports from the environment, thinslice can wire them differently for each worktree.
It creates worktrees, manages state as directories, and runs your processes. Fork a state, attach it to any branch, spin up a copy for an agent. Several full stacks running in parallel on your laptop, each isolated, no Docker required.
If thinslice has been useful and you want to say thanks, or if you just want to talk shop about agents, evals, sandboxes, or go-to-market for automation products, give me a call.