Skip to content

feat(computer-use): port Claude Draws to TypeScript - #27

Open
mislavivanda wants to merge 2 commits into
mainfrom
feat/claude-draws-typescript
Open

mislavivanda wants to merge 2 commits into
mainfrom
feat/claude-draws-typescript

Conversation

@mislavivanda

@mislavivanda mislavivanda commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  • add a faithful ESM TypeScript port of Claude Draws using @daytona/claude-toolsets and the Anthropic tool runner
  • preserve paint.html byte-for-byte and document setup, model bounds, and optional screenshot output
  • cross-link the Python and TypeScript guides and add the TypeScript guide to the root index
  • raise the Python Anthropic floor to 1.12.0, the first release that ships anthropic.tools.computer

Live run evidence

  • production sandbox: 5d661007-f860-4697-978d-6c76733eef55
  • completed in 9 assistant turns (bounded to 60 iterations and 20 minutes)
  • outcome: Claude drew an orange sun, teal horizon and waves, three rose clouds, and entered sunset by claude
  • inspected final image: /tmp/opencode/guides-ts/claude-draws.png; it visibly showed the requested drawing
  • list-only cleanup check confirmed the run sandbox is gone

Checks

  • npm install --ignore-scripts
  • npm run typecheck
  • live end-to-end run against production
  • paint.html SHA-256 matches the Python guide
  • signed-off commit (DCO)

Scope

  • This PR is scoped to a single guide plus its cross-links and dependency-floor correction.
  • The PR title follows Conventional Commits.

Legal

  • Every commit is signed off for the DCO.
  • I agree to the Contributor License Agreement.

Summary by cubic

Adds a TypeScript port of the Claude Draws computer-use guide alongside the existing Python one, letting Claude draw on a canvas sketchpad inside a Daytona sandbox desktop.

  • Ports the guide to ESM TypeScript using @daytona/claude-toolsets and the Anthropic tool runner, with optional screenshot output and configurable model and iteration caps.
  • Adds paint.html to the repo, preserved byte-for-byte with the Python guide.
  • Cross-links the Python and TypeScript guides and adds the TypeScript guide to the root index.
  • Fixes the guide's environment loading command to set -a; source .env; set +a.
  • Raises the Python Anthropic floor to 1.12.0, the first release that ships anthropic.tools.computer.

Written for commit 9474a21. Summary will update on new commits.

View guided diff Turn on auto-fix

Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 10 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread typescript/computer-use/claude-draws/README.md Outdated
Comment thread typescript/computer-use/claude-draws/paint.html
Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant