Repository navigation
Replies: 11 comments 2 replies
|
+1 for plugins. A large share of the layout requests in Ideas are personal preferences that the team should not have to ship as settings one by one, and a plugin system would let people handle them without maintaining a fork. If a small first slice would help, user stylesheets may be the smallest useful one: a folder of Snippets would also survive updates far better if the main areas of the window had stable attributes, for example |
|
Thanks for sharing this. I ran into the same missing piece from the other side, and what I found along the way may be useful for the plugin design, whether you build on this branch or on your own system. I wanted multi-model workflows in T3 (several models answer independently, review each other over rounds, then one result is written back to the main chat) without maintaining a fork. With no extension API, I ended up patching the installed app bundle and keeping the feature code in a separate add-on: https://github.com/vulonviing/t3-code-addons Building it surfaced a few host-side problems that any plugin doing orchestration will probably hit:
The bundle patching also costs something real: the app has to be re-signed locally, which can affect distributor-bound features, and every official update needs the patch checked again. That is the main reason I'd like to see a supported extension surface. I haven't tried my code on your fork, so I can't say which of these your SDK already covers. Either way, I hope the list above is useful input. |
|
Data point from a downstream fork that runs on this today: we add eight right panel surfaces (decisions, team chat, issues, agents, and others) through a small registry: id, label, icon, shortcut letter, content component. Wiring that into upstream takes about 18 small edits across the panel store, tabs, "Open a surface" menu, content renderer and header. A first plugin slice that only lets a plugin contribute a right panel surface, with an optional "waiting" count the header can show and notifications can link to, would cover all of it. We'd be happy to port our registry as that slice if the direction fits. |
|
Note Drafted by Claude Opus 5.5 in Claude Code; reviewed and posted by @jieyuexing This is not a PR, and I'm not asking you to review my code. I built a plugin host in my fork of T3 Code, and I want to share what I learned about the open questions on #33606. The plugin code in my fork is at this commit. 1. A child process for each plugin In my fork, each plugin's server code runs in its own supervised child process, and it starts only when something uses it. Each environment has an on/off switch for plugins, and it is off by default. The child process is a boundary for availability, not a security sandbox, so the plugin code is still trusted. If a plugin crashes, the host restarts it after a delay, stops after repeated failures, and the server keeps running. The cost is a small message layer between the server and the child process. 2. Plugins can use each other's services A plugin can provide a named service, and another plugin can inject it. When the provider stops or reloads, the plugins that inject it wait, and they start again by themselves when it comes back. This follows the same idea as the plugin runtime spike in this repo, and like that spike, it is built on Effect scopes, not on Cordis. The same service declaration also feeds plugin views, agent tools (methods marked 3. Views in a sandboxed frame Plugin views in my fork are full HTML pages inside a sandboxed iframe, and they talk to the host through a MessagePort. They can't change T3's own UI like the React half in #33606 can, but they also can't read the page's connection credentials. Cost, mobile and remote The fork changes about 70 lines in 25 upstream files, and everything else lives in its own folders. That number is the cost of keeping my fork in sync, not a cost for upstream. The official mobile app shows nothing from these plugins, and I didn't try to change that. All plugin calls need the environment's maintain scope, so a client with a standard-scope pairing, like a phone, can't use plugin views or services. What I checked and what I didn't 418 focused host tests pass, and in a real web client on a dev server I checked consent, calls between plugins, and automatic recovery after a provider stops. I did not check the desktop app, Windows, remote or tunnel connections, performance, or agent tool evals (the tool list grows by 479 bytes). So far I only have example plugins, and I don't use a real plugin every day yet. If any of this helps #33606, I'm happy to answer questions or write a short design note. |
|
This is really useful, I built a plugin on this branch (at The use case: Jira / Github ticket numbers like The gap: According to Opus 5.5 the web half takes some work to get the hover to work:
That only relies on the region names, but still depends on how T3 renders text inside those regions (SDK README warns against that). For a more stable solution we'd need something like a web API request that lets a plugin register a text pattern and supply a hover card (and optional a link) for matches in messages and thread titles and T3 would render it using its own component (consistent and sdk friendly). It also rescans the page as replies come in which T3 could handle better if it were a built in hook. |
|
I really, really want plugins like this. I hope this gets implemented! |
|
Another request for this, in reply to Theo's "What annoys you guys the most about T3 Code today?": "not being able to modify it without maintaining a fork, add plugins please" (https://x.com/JustMicrock/status/2124250634945954159). Sent by Claude Code (in T3 Code) using claude-opus-5-5 as the main agent, on behalf of @Chere3. |
|
Just FYI to people in this thread, this is being worked on by a maintainer it seems, despite the non-ack: #40222 |
|
+1. A concrete first use case: a quick-action bar above the composer for skills, slash commands, saved prompts and scripts (see #6996). If the plugin API in #40222 lets a plugin add composer buttons that send a message or run a script, that alone would cover most of what I miss day to day. |
|
Note Drafted by Claude Opus 5.5 in T3 Code; reviewed and posted by @WinarG14 A concrete use case from outside the core team, in case it helps the scope of #40222. I maintain T3 Pet (MIT, unofficial). It is a small always-on-top desktop pet that shows which threads on this computer and on linked environments need a decision, ask a question, failed or finished. It opens the exact thread with This keeps working across T3 updates, but two parts are fragile:
With #40222 this could be a plugin. It would need:
If windows are out of scope, a supported read-only API for "threads that need the user, per environment" (with last-visited time) would let external companions stop reading the database. No PR from me; this is input for the design. |
|
Adding my public fork (Alb11747/t3code) as a real-world inventory of features I'd love to move out of fork patches and into plugins as the design in this thread and #40222 settles. Rather than keeping a static list here, Fork features and the plugin surfaces they'd need
Core bug fixes and fork sync/release tooling naturally stay outside plugins, but having server hooks, MCP tool registration, and cross-client UI slots (web/desktop/mobile) capable of expressing the optional workflows above would let forks like this shrink dramatically. Links: Fork repository · Drafted by Gemini 4 Neon in T3 Code on behalf of @Alb11747. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey @t3dotgg, @juliusmarminge and @maria-rcks, it's ash. I've been working on this plugin system for the past few days in hopes that I can at least speed up the process of getting plugins into T3 Code. There are a few things I'd like to change about T3, but I don't want to commit to maintaining my own fork, and I'm sure others feel the same way. I know earlier PRs that tried to build plugins were closed, and I started this fully aware of that. I'm happy to make any changes you ask for, even substantial ones. I just want to see plugins in T3 Code.
Everything below was written by my agent. Thank you for reading :)
Updated Nov 10: Maria took over #33606. She merged
maininto it, fixed 4 review findings and checked it in a real dev environment with Codex. Julius closed #16065 in favor of it, and the use cases from that PR are listed as follow-ups in this comment.Updated Nov 9: the plugin system is now 1 PR against
main, built on the newest nightly: #33606. It replaces the 11-PR split in ashx-j/t3code#29 and brings back redrawing a few of T3's parts, which that version held back. I can split it into a series of smaller PRs if you'd rather review it that way. Thestyles/folder and the region names came from comments here.It needs 2 decisions from you:
#8014 was closed because it set up a large plugin contract in one branch. If you build your own, the internals doc lists the problems this build hit and how it solved them.
Try it
https://github.com/ashx-j/test-t3-overhaul) or npm (test-t3-overhaul).What a plugin can do
A plugin is a folder with a
t3-plugin.jsonmanifest, an optional server entry and an optional web bundle, typed by a new@t3tools/plugin-sdkpackage. Users drop the folder on Settings → Plugins. A new plugin installs turned off, so turning it on is the confirm step.data-t3-regionnames for CSS to target.Held back, and all in #28: thread and project APIs, message and turn hooks, slash commands, buttons and menus in the chat, pages and sidebar sections, agent instructions and skills, plugin management tools for agents, git and npm installs with updates, hooks into generated text, providers and source control hosts, and desktop menu items.
How it handles performance, remotes and surfaces
plugins.json,plugins.sqlite), so it adds no migration tostatev2.sqliteand no key tosettings.json.t3 --no-pluginsstarts with no plugin running. Server code needs Node 24 or later.Earlier proposals: #6714, #6837, #23574 and #31141. saphid's open stack, starting at #16048, covers some of the same ground with a different design.
Claude Opus 5.5 wrote the code in T3 Code, and ash directed and tested it.
All reactions