Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions agent-think/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ agent-think (this dir — PUBLIC-safe, holds no App creds)
│ start() ONLY submits the durable turn — returns in ~1s
│ failed-run continuation refreshes GitHub auth through gh-app's private
│ AgentThinkTokenBroker binding before submitting into the same session
├─ ThinkAgent DO (src/agent.ts) — owns durable turn state + complete Workspace VFS
│ file tools and both bash backends share the same synchronized tree;
│ container backend claims from the warm pool per turn:
├─ ThinkAgent DO (src/agent.ts) — owns durable turn/transcript state only
├─ WorkspaceAgent DO (src/workspace-agent.ts) — same stable per-issue name;
│ exclusively owns Workspace VFS + backend connection. File tools and
│ both bash backends share its RPC stub; the container backend claims
│ from the warm pool per turn:
│ resolveContainerId(env, id) → env.Sandbox.get(idFromName(uuid))
├─ Sandbox DO (src/sandbox.ts) — container host (wsd); handed out by pool
├─ WarmPool DO (src/warm-pool.ts) — keeps exactly one unassigned container warm
Expand Down
4 changes: 3 additions & 1 deletion agent-think/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
# them on PATH inside the FUSE-mounted /workspace. The image stays
# otherwise lean.

FROM ghcr.io/cloudflare/workspace-wsd-linux-x64:0.0.0-alpha.11 AS wsd
# Workspace PR #18, commit 98b74eb. Keep this in sync with the
# @cloudflare/workspace pkg.pr.new dependency in package.json.
FROM ghcr.io/cloudflare/workspace-wsd-linux-x64:pr-18-98b74eb@sha256:179a3dc35bdf752d4cdcef07012dcf5c9949d04ba4d0d3ab1ed6d5703cfd73a9 AS wsd

FROM debian:stable-slim

Expand Down
2 changes: 1 addition & 1 deletion agent-think/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@ai-sdk/openai": "^3.0.70",
"@cloudflare/ai-chat": "workspace:*",
"@cloudflare/think": "workspace:*",
"@cloudflare/workspace": "0.0.0-alpha.11",
"@cloudflare/workspace": "https://pkg.pr.new/cloudflare/workspace/@cloudflare/workspace@18",
"@platformatic/vfs": "^0.4.0",
"agents": "workspace:*",
"ai": "^6.0.202",
Expand Down
Loading
Loading