Skip to content

feat: carry Agent Plugin fields through context snapshots - #32264

Draft
f0ssel wants to merge 2 commits into
mainfrom
garrett/agent-plugins/01-context-transport
Draft

f0ssel wants to merge 2 commits into
mainfrom
garrett/agent-plugins/01-context-transport

Conversation

@f0ssel

@f0ssel f0ssel commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Adds PluginName and PluginVersion to context resources and carries them through the DRPC push (nested PluginBody), the agent socket, the HTTP snapshot API, and coder exp chat context show. Resource errors are made valid UTF-8 and truncated to the new workspacesdk.MaxContextErrorBytes; MaxContextResources and MaxContextSourceBytes move to workspacesdk so coderd's agentapi and the agent share them.

Nothing sets the plugin fields yet; the next PR in the stack makes the resolver emit plugins.

Part 1 of the #29321 split.

Stack (base main, replaces #29321–#30577):

PR Title Size
👉 #32264 feat: carry Agent Plugin fields through context snapshots +542/-213
#32265 feat(agent/agentcontext): discover and validate Agent Plugins manifests +1951/-74
#32296 feat(agent/agentcontext): load skills bundled in Agent Plugins +653/-19
#32266 feat(agent): enable Agent Plugins discovery from the manifest +988/-79
#32267 feat(coderd/x): add plugin skill source and alias grammar +138/-32
#32268 feat: add plugin skill and plugin context resource types +295/-161
#32269 feat(coderd): serve plugin skills in chatd +1338/-386
#32270 feat(agent/x/agentmcp): accept streamable-http MCP type, add plugin data dir helper +92/-0
#32271 feat(agent/x/agentmcp): add a same-origin header HTTP client +547/-4
#32272 feat(agent): load plugin mcp.json and reload registered MCP sources +1262/-228
#32273 test(agent/x/agentmcp): cover plugin mcp.json parsing, reloads, isolation, and env +2044/-2
#32274 feat: run plugin MCP servers discovered by agentcontext +851/-26
#32275 feat(site/src): render Agent Plugin context +1349/-240

Generated by Claude Code

Resource gains PluginName and PluginVersion. The DRPC pusher maps
KindPlugin to PluginBody and nests each resource with a PluginName in
the OK plugin of that name; a resource without one is left out of the
push, though the aggregate hash still covers it. Every resource error
has invalid UTF-8 replaced and is truncated on a UTF-8 boundary to
workspacesdk.MaxContextErrorBytes.

workspacesdk gains MaxContextResources, MaxContextErrorBytes, and
MaxContextSourceBytes, which coderd's agentapi now uses in place of its
own constants.

The agent socket's ContextResource and the HTTP API's SnapshotResource
gain plugin_name and plugin_version, the socket converter makes every
string valid UTF-8, and `coder exp chat context show` prints a plugin
column.

Nothing sets the new fields yet; the resolver emits plugins in the next
change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VpiVZBgFqiSdRKrH8dPSPT
@f0ssel f0ssel self-assigned this Nov 16, 2026
@f0ssel
f0ssel added this pull request to stack #32278 November 16, 2026 18:37
@f0ssel
f0ssel marked this pull request as ready for review November 16, 2026 20:30
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@f0ssel

f0ssel commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

I have read the CLA Document and I hereby sign the CLA

@f0ssel

f0ssel commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T20:35:06.495982Z 929d179 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@f0ssel
f0ssel marked this pull request as draft November 16, 2026 20:32
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 929d179420

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@f0ssel
f0ssel marked this pull request as ready for review November 16, 2026 22:20
@f0ssel
f0ssel removed this pull request from stack #32278 November 16, 2026 22:43
@f0ssel
f0ssel added this pull request to stack #32297 November 16, 2026 22:43
@f0ssel
f0ssel force-pushed the garrett/agent-plugins/01-context-transport branch from 929d179 to f79e35a Compare November 16, 2026 23:25
@f0ssel
f0ssel temporarily deployed to main November 16, 2026 23:25 — with GitHub Actions Inactive
@f0ssel
f0ssel removed the request for review from hugodutka November 17, 2026 16:34
@f0ssel
f0ssel temporarily deployed to main November 17, 2026 17:47 — with GitHub Actions Inactive
@f0ssel
f0ssel marked this pull request as draft November 19, 2026 14:45
@f0ssel
f0ssel removed the request for review from mafredri November 19, 2026 14:46
@f0ssel f0ssel assigned garrettatcoder and unassigned f0ssel Nov 20, 2026

This branch was previously deployed

1 inactive deployment
main — 962fad09 Deployed Nov 17, 2026 by f0ssel via cla #258829
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.

2 participants