Skip to content

feat(workspaces): Add write tools - #1578

Merged
dcramer merged 9 commits into
mainfrom
feat/workspace-write-tools
Aug 15, 2026
Merged

feat(workspaces): Add write tools#1578
dcramer merged 9 commits into
mainfrom
feat/workspace-write-tools

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Add createWorkspace and updateWorkspace to the agent tool surface. Both tools use the existing Workspace store and validation rules.

Require action review before each write. The review text shows the Workspace name, repository count, primary repository, and whether the recipe includes a setup script.

Constrain provider with a runtime enum of plugins that implement workspacePrepare, matching the pattern used by tools like userLookup and handoff. Tool descriptions list the supported providers. Hide the write tools when no preparable provider is loaded.

Include setup_script in Workspace tool results so callers can inspect and replace the full recipe.

Checks:

  • Workspace integration test
  • typecheck
  • lint and dependency rules
  • tool annotation check
  • Prettier

Requested by David Cramer.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 2 commits August 14, 2026 23:02
Co-Authored-By: David Cramer <david@sentry.io>
Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 15, 2026 5:36am

Request Review

Co-Authored-By: David Cramer <david@sentry.io>
@dcramer

dcramer commented Aug 15, 2026

Copy link
Copy Markdown
Member

rebase this we removed primary

…tools

# Conflicts:
#	packages/junior/tests/integration/workspace-tools.test.ts
@dcramer
dcramer marked this pull request as ready for review August 15, 2026 00:25
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Aug 15, 2026

@cursor cursor 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 153031f. Configure here.

Comment thread packages/junior/src/chat/workspaces/tools.ts Outdated
@dcramer

dcramer commented Aug 15, 2026

Copy link
Copy Markdown
Member

needs rebased

Comment thread packages/junior/src/chat/workspaces/tools.ts Outdated
@github-actions github-actions Bot added risk: low PR risk score: low and removed risk: medium PR risk score: medium labels Aug 15, 2026
…tools

Co-Authored-By: David Cramer <david@sentry.io>
…tools

Co-Authored-By: David Cramer <david@sentry.io>
@dcramer
dcramer merged commit 67af6c4 into main Aug 15, 2026
38 checks passed
@dcramer
dcramer deleted the feat/workspace-write-tools branch August 15, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant