A Think coding agent on Cloudflare Workers, with a small React chat UI.
The model works in a persistent virtual filesystem using the built-in workspace
tools (read, write, edit, find, grep) and has a colocated code-review skill.
It also has the durable execute tool (createExecuteTool(this)): the model
writes sandboxed TypeScript against state.* (the same workspace filesystem)
for batch operations that would otherwise take many tool calls.
npm install
npm run devOpen the printed URL and start chatting.
agents/coder/agent.ts— the agent, wired up with skills and a skill runner.agents/coder/skills/— colocated skills bundled viaagents:skills.src/client.tsx— a React chat client usinguseAgent+useAgentChat.wrangler.jsonc/think.d.ts— generated by the Think framework. Re-runnpm run typesafter changing agents or bindings.
npm run deploy- Add custom tools with
getTools() - Give the model persistent memory with
configureSession() - Try the other starters:
npm create think -- --template coding-agent