Skip to content

feat(workspaces): Add agent write tools - #1591

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

dcramer merged 3 commits into
mainfrom
feat/workspace-agent-write-tools

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Add createWorkspace, updateWorkspace, and deleteWorkspace to the agent tool surface.

Keep Guardian review on all three actions. Limit repository providers to loaded plugins that can prepare Workspaces.

There is no admin role. These tools follow the rest of the agent surface: any actor can write install-wide Workspace recipes. Dashboard /api/workspaces still uses viewer auth for HTTP access.

Checks:

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

Requested by David Cramer.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Aug 15, 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 9:20pm

Request Review

Workspace recipe writes match the rest of the agent surface: any actor
can mutate install-wide recipes. Guardian review remains the control.

Co-Authored-By: David Cramer <[email protected]>
Reapply .strict() after extending the Workspace write schema so unknown
top-level keys are rejected, matching create and delete.

Co-Authored-By: David Cramer <[email protected]>
@sentry-junior sentry-junior Bot changed the title feat(workspaces): Add authorized agent write tools feat(workspaces): Add agent write tools Aug 15, 2026
@dcramer
dcramer marked this pull request as ready for review August 15, 2026 22:03
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Aug 15, 2026
@dcramer
dcramer merged commit e01de89 into main Aug 15, 2026
39 checks passed
@dcramer
dcramer deleted the feat/workspace-agent-write-tools branch August 15, 2026 22:14
dcramer added a commit that referenced this pull request Nov 5, 2026
…on access rule (#2672)

Proof of concept for "do you own #1591? it's got conflicts". The agent
finds the conversation that owns the PR, checks that conversation's
state, and messages it.

**searchAgents** replaces `listAgents` (hard cutover). With no args it
returns the same agents as before. New inputs:
- `scope`: `relatives` (default) or `top_level`. A child agent cannot
use `top_level`.
- `conversation_ids`
- `query`: matches the task or title for relatives. For `top_level` it
matches the latest Brief (full-text) or the title.
- `include_archived`
- `limit`
- `annotation`: a linked resource key such as `#1591`.
It finds the conversations that created, changed, or read that resource,
also through their child agents. The Brief, message, and agent searches
share one annotation key filter.

`top_level` returns only **public** root Conversations in the tenant of
the requester. It never returns a private one. Rows include status,
title, Brief summary, and dashboard link.

`messageAgent` and the event-read tools keep the rule they have on
`main`. The conversation access rule (isolated private Conversations)
moved to #2691.

Not done yet, so this is a draft:
- An eval for the PR-owner flow. The agent should call `searchAgents`
with the PR `annotation`, then ask, then `messageAgent`. When the
current conversation owns the PR, it should not call `searchAgents`.
- Slack permalinks on top-level rows.

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A0c58b0c6675a6c949e0c1d0d6137ddd0 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A0c58b0c6675a6c949e0c1d0d6137ddd0)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A0c58b0c6675a6c949e0c1d0d6137ddd0/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: David Cramer <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 5ff83e0b Deployed Aug 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant