Repository navigation
Description
Problem
The current Workbench exposes a large number of framework-oriented pages (Overview, Routes, MCP, Hooks, Playground, Artifacts, Comparisons, Evals, Logs, Hosts, etc.) and much of the useful application behavior is split across them.
That makes the dev experience feel like an administrative console for Agent Bundle internals rather than the dev server for the plugin being built.
For a meta-framework whose product intent is roughly "Next.js for agent-host plugins", the default development experience should answer four questions immediately:
- What surfaces does my plugin expose?
- What does this route actually render/return?
- What happens when Claude/Codex/Cursor invokes it?
- Which hooks/events/MCP calls fired, in what order, with what context/result?
Today the Routes page is primarily a table/catalog with source/config/input information. Tool routes can hand off to a separate MCP session, while non-tool routes often stop at validation. Hooks, MCP, logs, runtime/App preview, and host behavior live in separate top-level pages. That is technically powerful but cognitively fragmented.
Direction
Reframe Workbench as an application explorer + live host lab over the canonical Application IR / manifest from #592.
The primary UI should be centered around one navigable tree of the plugin's actual surfaces, not around Agent Bundle subsystems.
Illustrative shell:
┌─────────────────────────────────────────────────────────────────────────────┐
│ cargo-hauler build ✓ Claude ● Codex ○ │
├──────────────────────┬─────────────────────────────────────┬────────────────┤
│ APPLICATION │ ROUTE / SURFACE │ INSPECTOR │
│ │ │ │
│ MCP │ hauler_status │ Input │
│ Tools │ │ Context │
│ hauler_status ◀ │ [ rendered Agent document ] │ Trace │
│ hauler_request │ │ Projection │
│ hauler_result │ daemon running ... │ Raw MCP │
│ Resources │ ... │ Source │
│ Prompts │ │ │
│ Apps │ ─────────────────────────────────── │ │
│ dashboard │ Structured result │ │
│ │ { ... } │ │
│ Events / Hooks │ │ │
│ session/start │ [ Run ] [ Open in host ] │ │
│ tool/before │ │ │
│ tool/after │ │ │
│ stop │ │ │
│ │ │ │
│ CLI │ │ │
│ request │ │ │
│ status │ │ │
│ Scripts │ │ │
├──────────────────────┴─────────────────────────────────────┴────────────────┤
│ TRACE session/start → tool/before → tools/call hauler_status → tool/after │
└─────────────────────────────────────────────────────────────────────────────┘
The exact visual design is open. The information architecture is the important part.
1. One application navigation tree
Replace most top-level product navigation with a route/surface tree derived from the compiled application graph.
Suggested groups:
MCP
Tools
Resources
Prompts
Apps
Events / Hooks
session/start
agent/start
tool/before
tool/after
stop
...
CLI
Scripts
Skills
Rules / Commands
Each leaf is a first-class application surface.
Selecting a leaf opens the same central route workspace regardless of kind.
Do not make users think "Routes page vs MCP page vs Hooks page" to inspect one logical route.
Keep framework/admin views secondary
Artifacts, diagnostics, projection comparisons, eval management, raw logs, and build internals remain useful, but should move behind an Inspect, Build, or advanced/devtools area instead of defining the primary navigation.
2. Render the route as the primary result
For executable/rendered routes, the center pane should show what the plugin author actually created.
For a tool route:
Input controls
↓
Run
↓
Rendered Agent Document
Structured result
Metadata
Progress stream
The rendered Agent Document should be visually rendered, not primarily shown as JSON/protocol envelopes.
Allow tabs/toggles for:
- Rendered
- Structured result
- Raw AgentDocument
- MCP projection
- CLI projection, when available
But Rendered should be the default.
This is analogous to a web framework dev server showing the page before showing request headers or compiled chunks.
3. Every executable route should be directly runnable
The current Routes UX has a significant distinction where tools can open in MCP while other route kinds often provide validation only.
Workbench should have one invocation abstraction capable of running any route that Agent Bundle can execute safely in dev:
- MCP tools;
- prompts/resources where meaningful;
- CLI routes;
- scripts;
- semantic event routes/hooks;
- App/browser routes;
- future page routes.
For event routes, provide generated event-input forms plus host fixtures/presets:
Event: tool/before
Host fixture: Claude | Codex | Cursor | Canonical
Payload: {...}
[ Run event ]
Then render:
Canonical input
Observed request context
Providers
Returned decision / Agent document
Projected Claude hook result
Projected Codex result
Projected Cursor result
4. Treat MCP as a route projection, not a separate product page
The existing MCP tooling is extensive and should be reused, not discarded.
Move its useful pieces into contextual panes around MCP surfaces:
When selecting MCP > Tools > hauler_status:
- list schema/config;
- invoke it directly;
- render the result;
- show structuredContent/content/_meta;
- show MCP protocol trace;
- preview its bound MCP App;
- inspect/list related resources/prompts;
- optionally open the full raw MCP session inspector.
The standalone "MCP page" can survive as an advanced protocol session view, but normal tool development should not require navigating away from the route.
5. Treat hooks/events the same way
Hooks should appear beside tools in the application tree.
Selecting Events > tool/before should show:
- semantic event name;
- source;
- supported host projections/capabilities;
- canonical payload schema;
- host-specific input examples;
- Run button;
- rendered/context result;
- host-lowered hook response;
- recent live invocations of that hook.
The current separate Hooks area becomes a contextual event simulator/live history rather than a parallel navigation universe.
6. Add a unified live invocation trace
The most useful debugging surface is not a generic log stream. It is a correlated timeline of application activity.
For example:
22:41:04.101 Claude session started
22:41:04.118 event session/start
context.host = claude
result = continue + context
22:41:09.532 tool/before
tool = Bash
22:41:09.541 MCP tools/call hauler_status
input = {...}
provider haulerDaemon 3.2ms
render shell 8.1ms
render complete 14.7ms
22:41:09.558 tool/after
22:41:09.562 notice delivered
Each trace entry should be clickable and open the corresponding route with that invocation snapshot loaded.
Trace should correlate:
- host session / conversation;
- semantic event routes;
- MCP requests;
- route execution;
- providers;
- state/notices where relevant;
- render events/progress;
- projection/lowering;
- diagnostics/errors.
This should consume the same execution tracing from the one execution kernel described by #592 rather than adding Workbench-only instrumentation semantics.
7. Embedded real host sessions
Add an optional Hosts panel based on PTY + terminal rendering (for example xterm.js or equivalent) so developers can launch real Claude Code / Codex / other CLI hosts already attached to the dev plugin.
Illustrative layout:
Hosts
Claude ●
Codex ●
Cursor external
┌────────────────────────────────────────────┐
│ Claude │
│ > what cargo jobs are currently running? │
│ │
│ ... │
└────────────────────────────────────────────┘
Workbench/server responsibilities:
- allocate PTY;
- launch the real host process with the dev plugin already installed/attached through the existing stable dev proxy/epoch mechanism;
- stream PTY bytes to the browser terminal;
- resize terminal;
- terminate/restart explicitly;
- correlate the host process/session with the unified invocation trace.
The browser terminal should be a view onto a real local process, not a simulated chat UI.
Security / authority
This is explicitly developer-local functionality.
- no arbitrary remote PTY exposure;
- bind through the existing authenticated foreground dev server;
- explicit host launch action;
- project-root/workspace authority is visible;
- preserve host's own permission/consent behavior rather than bypassing it;
- terminal and route invocation share trace IDs but not hidden credentials/content beyond what the host actually emits.
8. "Open in host" from any relevant route
For a route, provide:
Run directly
Open in Claude
Open in Codex
Open in host should focus/start that host terminal and seed an appropriate developer prompt or invocation context where feasible.
For example a tool could seed:
Call the cargo-hauler hauler_status tool and explain the result.
The important point is not prompt generation. It is making the loop:
route source -> direct run -> real host run -> hook/MCP trace
one click apart.
9. Bound MCP Apps/browser previews to their routes
If a tool has _meta.ui.resourceUri -> dashboard, its App preview should appear directly in the selected tool's workspace.
Likewise selecting the App itself should show:
- actual browser view;
- bound tools;
- live client calls in the same trace;
- structured route data;
- host profile selector where MCP App hosts differ.
Do not require the user to mentally join Routes, MCP, and an App preview page.
10. Make the route URL-addressable
Workbench navigation should map naturally to URLs such as:
/routes/mcp/hauler/tool/hauler_status
/routes/events/tool/before
/routes/cli/status
/routes/apps/hauler/dashboard
/hosts/claude
/trace/<invocation-id>
Exact paths are non-normative.
Benefits:
- refresh preserves context;
- links in diagnostics jump directly to the route;
- trace entries deep-link;
- browser history works;
- tests can address a route deterministically.
11. Simplify the default nav aggressively
Target primary nav should be closer to:
Application
Host sessions
Trace
Diagnostics
with Application expanded into the route tree.
Advanced secondary surfaces can include:
Build / artifact
Projection comparison
Evals
Raw logs
Framework internals
A plugin author should not need to know which internal Workbench subsystem owns a capability.
12. Reuse current Workbench machinery
This is primarily an information-architecture consolidation, not a request to throw away existing implementation.
Existing useful systems include:
- compiled route catalog and generated schema editor;
- MCP session controller;
- MCP App renderer/preview;
- runtime bridge/trace;
- hook simulator/client;
- playground/script execution;
- live host dev proxy/adoption;
- diagnostics/log clients;
- artifact/projection inspection.
The problem is that these currently present as separate products.
Refactor them behind one route-centric shell.
Relationship to #592
This should be the Workbench manifestation of #592.
If #592 says:
one application graph, one execution kernel, many projections
then Workbench should visually present exactly that:
one application tree
↓
one selected route
↓
run/render
↓
inspect projections + live host executions
Workbench must consume the canonical Application IR/manifest and execution trace rather than maintaining independent MCP/hook/playground catalogs where that can be avoided.
Non-goals
- building a fake Claude/Codex chat clone;
- replacing the actual host UIs;
- making PTY hosting part of production plugin artifacts;
- exposing arbitrary system terminals remotely;
- turning Agent Bundle into an IDE/code editor;
- hiding raw MCP/hook protocol data from advanced users.
Acceptance criteria
- Primary navigation is application/surface-centric rather than subsystem-centric.
- MCP tools/resources/prompts/apps, semantic event/hooks, CLI routes, and scripts are navigable in one application tree.
- Selecting an executable route shows its rendered output as the primary result.
- Tools can be invoked without navigating to a separate MCP page.
- Event/hook routes can be invoked with canonical or host fixture payloads and show the projected host result.
- MCP raw protocol inspection remains available contextually/advanced.
- Bound MCP App previews appear from the relevant tool/App route workspace.
- Live route/event/MCP calls produce one correlated trace timeline.
- Clicking a trace entry opens the corresponding route/invocation snapshot.
- Claude/Codex CLI hosts can optionally be launched in authenticated local PTYs embedded in the Workbench.
- Host terminals are attached to the current dev plugin/proxy and their plugin calls appear in the same trace.
- Routes and trace entries are deep-linkable by URL.
- Artifacts/comparisons/evals/raw logs remain available but are secondary developer tooling.
- The redesign reuses existing Workbench controllers/clients rather than duplicating MCP/hook/runtime semantics.
Activity
ScriptedAlchemy commentedon Sep 5, 2026
Deeper audit against current Workbench +
examples/audiobook-curator:Current UX is capability-rich but workflow-poor
The current rail is organized around Agent Bundle subsystems:
That is visible directly in
packages/workbench/src/workbench-screen.tsx. This organization makes sense to framework maintainers, but not to a plugin author asking "what does my plugin do and what will the agent see?"Concrete audiobook-curator example
search_audible.tsxreturns a rich Agent document:SearchRankingthen renders candidate counts, query info, up to ten ranked headings, edition cards, regional warnings, and a human-review callout.That authored result is the product. But the current
Routespage represents the route primarily as a table row (Route ID,Source,Config and input) plus generated/raw input controls. For a tool, its main action isOpen in MCP session; for non-tool/non-CLI kinds the page explicitly saysValidation only; this route kind is not invokable from Routes.So the most obvious day-to-day workflow:
is not the primary route experience.
The rendered-document capability exists, but in the wrong place
The Runtime Playground already has machinery to decode stored Flight into a real Agent Document and render it as elements (
Documenttab). This proves the framework can visually render Agent Documents. But that capability is isolated behind the optional Runtime Playground/history model instead of being the default output pane for every conventional rendered route.The redesign should extract/reuse this renderer as a normal route-workspace primitive. A route invocation should produce a renderable
AgentDocumentregardless of whether it came through the special Runtime Playground.Traces are fragmented by page
The docs explicitly state:
Only actions started in Playground join its ordered durable trace. Hook and MCP page operations stay independent even while a Playground session is open.That is the opposite of what the dev UX needs. A developer running a real host or clicking a tool should be able to observe the resulting sequence without first choosing the special "trace-owning" page.
The unified trace in this issue should therefore be an observation stream over the execution kernel, while "record a reproducible scenario/eval" can remain an explicit opt-in session. Separate observability from durable scenario recording.
Hooks are currently protocol/debug oriented
The Hooks page is strong as a codec debugger: it shows canonical intent/input, host mapping, native input, native output, canonical result, and supports fixture/inline JSON. Keep that capability.
But it should become the Inspector for a selected event route rather than a separate top-level destination. Default view should emphasize the plugin-visible result/decision/context first; canonical/native codec panes should be secondary tabs.
Hosts page is discovery, not host development
The current Hosts/Discovery page is useful for checking host installations, paths, bundle state, durable state, MCP server declarations, and a read-only
initialize+tools/listprobe. It explicitly cannot call tools.Rename/preserve this as something like
Host diagnosticsor an Inspector panel. It is not the developer workflow implied by "Hosts".A real
Host sessionsexperience should be the PTY-backed Claude/Codex sessions described in the issue, already connected to the dev plugin/proxy, with calls correlated into the live trace.MCP is over-separated
The MCP page already owns valuable machinery: session controller, protocol trace, App preview, resource handling, consent, Inspector launcher. None of that should be deleted. But normal route development should reuse it contextually.
For an audiobook tool, the developer should not have to understand this navigation sequence:
It should be:
MCPis then just one projection tab of that invocation. The full raw MCP playground remains an advanced session tool.Proposed day-to-day audiobook flow
Center pane:
Right inspector:
Now changing
SearchRanking,EditionCard,Callout, or the route JSX has an immediately understandable visual verification loop.Default surface should optimize for agent-driven development
Most source changes may be written by an agent, but the human review loop is visual/behavioral. The Workbench should therefore optimize for rapid inspection rather than authoring:
This is much closer to the role Storybook/Next dev tools play for UI applications than the current administrative dashboard model.
Information hierarchy recommendation
Primary:
Inside
Application, one route tree owns MCP, hooks/events, CLI, scripts, Apps, Skills, rules/commands.Secondary/advanced drawer:
The existing pages can be incrementally decomposed into these contextual panels instead of rewritten from scratch.
ScriptedAlchemy commentedon Sep 5, 2026
Follow-up: the route JSX itself should be the primary Workbench rendering source. Agent Bundle already has the right seam: server route JSX decodes into a transport-neutral
AgentDocument, and Workbench already has anagent-document-stage.tsxthat maps those semantic nodes into browser React UI. The redesign should promote that path rather than inventing a parallel Workbench-specific result model.Recommended architecture:
The browser renderer should be a first-class projection of the semantic
AgentDocumenttree.Agent.Text,Agent.Markdown,Agent.Context,Agent.Json,Agent.Progress,Agent.Error, resources/images/audio, nestedAgent.Result, etc. can each have a rich browser component rather than being shown primarily as protocol JSON. This gives plugin authors one JSX authoring model and lets the Workbench present it nicely.Do not normally execute arbitrary route Server Component modules directly in the browser. They may import Node-only code, providers, filesystem/daemon logic, secrets, or server-only packages. Execute the route through the existing server/RSC runtime and stream the semantic document to the Workbench. The browser only renders the resulting document.
For pure presentation components, an optional future browser/client compilation path can use Rsbuild resolve/loader layers or aliases, but it should be an optimization/extension rather than the correctness path. The semantic document is the stable boundary.
This also suggests expanding the Agent component vocabulary where useful. Instead of plugin authors hand-building Markdown strings for rich output, support semantic components that lower differently per projection, e.g.
Agent.Table,Agent.List,Agent.Code,Agent.Badge,Agent.Section,Agent.Link, possiblyAgent.Action. MCP/CLI can lower these to Markdown/text/content blocks while Workbench renders proper DOM components. The key is to keep them presentation semantics, not browser-specific DOM.For live rendering, Workbench should consume the existing
shell | progress | replace | error | completerender-event stream so Suspense/progress appears visually as it does during execution rather than waiting for only the final snapshot.Acceptance addition for #600:
ScriptedAlchemy commentedon Sep 5, 2026
Cleanup/removal pass against the current Workbench surface.
The redesign should not only add the new application explorer; it should explicitly delete the current subsystem-oriented page model where those pages become redundant.
Current top-level pages
packages/workbench/src/workbench-screen.tsxcurrently exposes:The target should be much smaller:
with the application tree inside
Applicationrather than a separateRoutespage.Remove as standalone top-level pages
OverviewDelete the current dashboard/sitemap role.
BundleWorkflowis mostly links into the other subsystem pages plus capability counters. OnceApplicationis the default landing view, this page has no distinct job.Keep only useful build/adoption status as compact topbar/status UI or
Advanced > Build.Delete/decompose:
overview-page.tsxas a top-level page;BundleWorkflowaction routing;overview-model.tspieces that exist solely to choose/recommend Workbench pages.HostAdoptionSection/ build-health information can survive as a reusable status panel, not as justification for an Overview page.RoutesDelete as a standalone table page.
Its useful pieces become the
Applicationexplorer:Delete the giant all-routes table once the tree/workspace exists.
HooksDelete as a standalone page.
Move hook fixture/canonical/native codecs, simulator controls, and result inspection into selected
Events / Hooksroute workspaces.There should not be a separate navigation universe for hooks.
LifecyclesDelete as a standalone page after its replay functionality is absorbed into event routes and Trace.
lifecycles-page.tsxalready renders replay throughAgentDocumentStage; useful pieces are:These belong as
Replay/Nativetabs on an event route or invocation trace entry, not another top-level product.PlaygroundDelete the general-purpose Playground page.
It currently multiplexes
script.run,hook.simulate,skill.inspect,mcp.call-tool, andnative.prompt. That multiplexing exists because those capabilities were separated elsewhere.After #600:
Keep durable scenario recording/replay infrastructure only where it serves eval/repro workflows. Do not retain a generic Playground as a second execution model.
MCP playgroundRemove from primary navigation.
Normal MCP development moves into the selected MCP route. Preserve the low-level raw session/protocol inspector under something like:
or a contextual
Raw MCPtab.Do not preserve
McpPageas a peer of the Application explorer simply because its controller implementation is substantial.SkillsRemove the standalone Skills page from primary navigation.
Skills are application surfaces and should appear in the Application tree. Reuse the good existing
SkillDocumentPanelimplementation there:No separate top-level Skills product is necessary.
Rename / repurpose
Current
Hosts/ DiscoveryThe current
DiscoveryPageis not really "Hosts" in the intended new UX. It inventories installed hosts/bundles, durable-state locations, MCP declarations, and performs a read-only MCP probe.Rename/move it to:
The new top-level
Sessionspage should mean actual running Claude/Codex PTY sessions attached to the dev plugin.Do not merge host diagnostics with PTY session UI; they solve different problems.
LogsRemove
Logsfrom primary navigation.The correlated execution
Traceshould become the normal debugging surface. Raw producer logs remain useful only when diagnosing framework/build plumbing.Move the existing filtered log viewer to:
Do not duplicate route/MCP/hook execution events into two equally prominent timelines.
Keep, but secondary
ArtifactsKeep functionality, demote to
Advanced > Build artifact.The artifact tree, hashes, provenance, emitted executables, and epoch diff are useful framework/build diagnostics but not everyday plugin development.
Also remove duplicated runtime summaries from this page when the application manifest/tree already exposes the same hooks/MCP/executable inventory. Artifact inspection should answer "what bytes were emitted?", not re-document the application graph.
EvalsKeep as a distinct advanced workflow. Evals have their own lifecycle and durable evidence semantics and are not merely route inspection.
Place under
Advanced > Evalsor a secondary Quality area.ComparisonsKeep the comparison machinery, but make it a subview of Evals rather than a top-level page:
There is no reason for
Comparisonsto occupy equal navigation weight with Application/Sessions/Trace.Resulting information architecture
Code cleanup requirement
This cannot be implemented as "hide old nav links and leave all page architecture intact".
As each capability moves into the route-centric shell, delete obsolete page composition/state and duplicated client/catalog plumbing.
Specific cleanup targets:
WorkbenchPagefrom the current subsystem enum;pagesFor()/generalWorkbenchPagescapability-driven page selection once navigation derives from the application graph;main.tsxshell: route/application workspace, sessions, trace, diagnostics and Advanced areas should own their own controllers;routes/hooks/lifecycles/playgroundcatalogs when canonical Application IR + manifest can supply the surface graph;#hooks,#mcp, etc.) in favor of actual deep route/session/trace URLs.Acceptance additions
Overview,Routes,Hooks,Lifecycles,Playground, and standaloneSkillsno longer exist as top-level Workbench destinations.MCP playgroundis advanced/contextual protocol inspection, not primary navigation.Hostsdiscovery UI is renamed/demoted to Host diagnostics;Sessionsmeans real host sessions.Logsis demoted to Raw logs; correlated Trace is the normal execution debugger.Comparisonsis a subview of Evals, not a top-level page.Artifactsand Evals remain available under Advanced/secondary tooling.WorkbenchPageandpagesFor()no longer model plugin capabilities as a list of product pages.main.tsxis decomposed substantially rather than accumulating the new explorer alongside all old page orchestration.ScriptedAlchemy commentedon Sep 5, 2026
Ruthless UI audit after reading the current pages in detail. The standard should be: does this UI materially help a plugin author inspect a surface, run it, see what it rendered, observe a real host, or verify behavior? If not, remove it from the main product and preferably delete the page architecture rather than merely hiding it.
Keep only four primary jobs
Everything else is secondary evidence.
Current page-by-page verdict
Overview — DELETE as a page
Current
Overviewmostly summarizes capability counts, build state, host adoption, and links the user to the real pages. The useful content is:Those belong in the persistent shell/topbar/Problems panel, not a dashboard the user has to visit.
Remove:
overview-page.tsx/overview-model.tsUI glue once shell status consumes the useful pieces.Routes — DELETE as a page, KEEP its useful primitives
The current Routes page has real value hidden inside a catalog table:
Keep:
Delete:
Validate inputas a main workflow;Open in MCP sessionhandoff;Validation only; this route kind is not invokable from Routesstate.All of that becomes the selected route workspace. The input editor should directly invoke the selected route.
Hooks — DELETE as a page
The current Hook UI is mostly a codec debugger. Useful pieces:
These belong under a selected
Events / Hooks > <route>workspace, with the plugin-visible result first and the codec details under an Inspector tab.The Hook picker itself disappears because the application tree already selects the hook.
Lifecycles — DELETE entirely as a separate product concept
This overlaps heavily with Hooks and Trace. Useful pieces:
That is just event invocation history + replay. Fold it into:
There should not be both
HooksandLifecyclesin the user's mental model.Playground — DELETE as a product
This is the biggest conceptual fat source.
The generic Playground currently multiplexes:
Every one of those has a more natural home:
Delete the generic operation selector, target selector, hook/script/skill/MCP catalogs, and Playground-specific information architecture.
Retain the underlying durable recording/replay machinery only if Evals or explicit "Record scenario" uses it. Do not preserve a public Playground just because the machinery exists.
Runtime Playground — KEEP THE ENGINE, DELETE THE PAGE/PRODUCT
The runtime code has genuinely useful machinery:
That should become the route execution engine behind the selected route view.
Delete the idea that the developer enters a separate Runtime Playground to access it.
RuntimeStageitself should also simplify. The current grid ofAgent-visible output,Native response,Model-visible output, App preview, etc. is framework-internal evidence. Default selected-route view should be:with
Native,Model-visible, raw Flight, runtime vector, etc. in Inspector/Advanced.MCP playground — DEMOTE HARD; possibly remove the page after route integration
There is a lot of valuable protocol machinery here, but very little of it deserves a top-level page.
Keep contextually:
Delete from normal workflow:
Long-term the standalone MCP page should survive only as
Advanced > Protocol inspector. If all remaining operations can be contextual panels, delete the page entirely.Hosts / Discovery — CUT MOST OF IT
Current Hosts is actually installation/discovery diagnostics, not host development.
Useful:
Probably unnecessary in normal UI:
Most of that can be CLI
doctoroutput or a collapsedAdvanced > Host diagnosticspanel.The primary
SessionsUI should instead be real PTY-backed Claude/Codex sessions.Skills — KEEP AS APPLICATION LEAVES, CUT THE PAGE FRAMEWORK
Skills are actual plugin product surface, so they belong in the application tree.
Useful:
Cut:
Default selected Skill should simply render the document. Put source/generated diff, frontmatter, resources, eval coverage in Inspector tabs.
Logs — REMOVE from normal navigation
The current Logs page is a generic producer log viewer with producer/level/kind/context filters. This is useful for framework debugging, not normal plugin development.
Normal developers need correlated Trace, not log archaeology.
Keep raw logs only under
Advanced > Raw logs, or consider removing the browser UI entirely if CLI/file access plus Trace covers real workflows.If retained, it should not maintain a competing primary observability model.
Artifacts — KEEP ONLY AS ADVANCED BUILD INSPECTOR
Useful when debugging compiler/package output:
Not useful day-to-day:
Simplify to a file tree + selected-file metadata, and surface compiler diagnostics in Problems. Keep digests/modes/provenance behind details.
Evals — KEEP, but simplify around suites/runs/results
This is a genuinely distinct workflow and worth keeping.
Core useful UI:
Potential fat:
Use one Evals area:
Comparisons — DELETE as standalone page
The functionality is useful. The page is not.
Fold baseline/candidate comparison directly into Evals. Same data, one mental model.
Proposed minimum Workbench
The strongest simplification is even smaller than the earlier proposal:
Applicationitself contains every plugin-authored surface. There is no separate Routes/Skills/Hooks/MCP/Playground navigation.Default selected-route workspace
Keep this brutally small:
Inspector drawer only when opened:
For an App route, the center is the App iframe. For a Skill, rendered Markdown. For an event, rendered decision/context. For a CLI/script route, rendered terminal/document output.
Concrete deletion acceptance
overviewpage and capability-card workflow UI.routespage; extract tree/input/schema primitives into Application route workspace.hookspage.lifecyclespage and fold replay into event route/Trace.playgroundpage and operation selector.skillspage; Skills are Application leaves.comparisonspage; fold into Evals.logsfrom primary navigation; assess whether browser raw-log UI is worth retaining at all.hostsdiscovery from primary navigation and cut verbose probe/detail UI; retain only actionable host diagnostics.The goal should not be "preserve every existing feature somewhere." The goal is to preserve every useful capability while deleting duplicate pages, selectors, catalogs, and presentation models.
fix(workbench): drop Routes-page projection UI; document CLI invocati…
feat(workbench): application explorer — shell, Application tree, rout…
ScriptedAlchemy commentedon Sep 5, 2026
PR 1 of 3 merged: #629 →
c9cc7937fonmain.Landed: the new shell (Application · Trace · Problems · Advanced; Sessions is PR 3), the Application tree from the compiled route catalog, the route workspace with Rendered-by-default (the Runtime Playground's Flight→AgentDocument renderer extracted to
application/rendered-document.tsx), one invocation API (POST/GET /api/routes/invocations,route.invocationevent,AB8231/AB8232/AB8236–AB8238) behind a dev-server backend and an optionaldevRuntimebackend, URL routing for every view (/routes/mcp/<server>/tool/<name>,/routes/events/…,/routes/cli/…,/routes/scripts/…,/routes/skills/…,/trace,/problems,/advanced/*), and the full deletion ledger from the audit (Overview, Routes, Hooks, Lifecycles, Playground, Runtime Playground, Comparisons, Discovery cut to host diagnostics; 231 files, −20k lines net). en + zh docs rewritten;agent-bundle/testinspectWorkbenchSurfacenow reports the Application tree (breaking,minor).Self-review (two Sol rounds) fixed five findings before merge, notably: the render child is now packaged (
dist/route-invocation-child.js) and proven from an installed tarball; route manifest and invocations are pinned to the last published epoch and answer409 AB8232while source is newer than the build; the render child's process tree is reaped after every invocation.Next: PR 2 — unified live trace (route invocations + MCP protocol + hook receipts + logs on one correlated timeline under
/trace).feat(routes): CLI surface projections of MCP tools — colocated <tool>…
ScriptedAlchemy commentedon Sep 5, 2026
Tracker reconciliation (owner audit 2026-09-05 17:11 UTC): PR 1 (#629
c9cc7937f) landed. Follow-up owns the three P1 corrections: whole-source.js→.tsxrewrite inroute-invocation-child.ts; component-render bypasses preflight/CLI mapInput/session state — production execution boundary + 4 parity tests; queued invocations execute changed source under an earlier revision inroute-invocation-service.ts; fabricated provider/timing telemetry. Live trace (PR 2b) then real host sessions (PR 3) follow.ScriptedAlchemy commentedon Sep 5, 2026
Reordering after the owner audit (17:11). The remaining #600 work lands as three PRs, in this order:
PR 2a — execution parity + provenance (next; small, correctness)
Three P1 findings in the PR 1 execution bridge, plus one P2, as their own PR against
main:dev/routes/route-invocation-child.ts—rewriteTsxSpecifiers()substitutes every quoted relative.jsstring in the whole source, not module specifiers (<Agent.Text>{'./panel.js'}</Agent.Text>besidepanel.tsxrenders./panel.tsxin the Workbench and./panel.jsin the compiled program). The whole-source substitution goes. Preferred: the child executes the application compiler's output (the feat(build): compiler service, Rspack evidence adapter, external policy (#619 steps 1–3) #623 compiler service) instead of Jiti over live source; interim floor: rewrite only real import/export specifiers through the existing TS AST helpers (routes/syntax.ts,build/module-imports.ts). Fixture is the exactreport.tsx/panel.tsxcase.test/render.ts— the child callsrenderRouteEvents()(the route-unit proof level): no generated host wrapper, no feat(events): add cheap preflight gates #618 preflight gate, no.cli.tsmapInput/confirmation, disposable state. Replaced by a production execution boundary: selected compiled operation/event → the same path the generated entries take (preflight gate → handler; CLI projectionmapInput→ canonical input; persistent session state on the writable state root) → AgentDocument + real trace. Component-only preview survives only as an explicitly named unit render mode, never the default. Four parity tests: preflightcontinue/denywith a throwing handler → handler not reached; CLI projection renaming args + deriving a required field → same canonical input as the generated CLI; compiler aliases/defines → preview and compiled executable see the same values; two stateful invocations → session mode preserves state, isolated mode explicitly resets.route-invocation-service.ts— manifest/prepared project is read before the concurrency semaphore, so a queued invocation can import changed source under the earlier revision. Invocations execute against an immutable compiled epoch and hold its lease (EpochStorereference) through completion; floor: revalidate after the slot is acquired and reject stale. Test: fill the slots, enqueue, edit a route dependency, release → the queued request runs the pinned old artifact or fails stale; never new code labelled with the old revision.mountedwith zero-duration provider/handler timings, and failures no longer mark providersfailedwithout observing which one. Unmeasured timings are omitted; unobserved stages are reported as unobserved. Zero is a measurement, not "unknown".Coordinates with #604 (manifest v2 — the tree/invocation read the manifest) and the state-root separation fix (session-state mode mounts the writable state root, not the code root).
PR 2b — unified live trace (after 2a)
The correlated timeline (host session → event routes → MCP → route execution → providers → render events → projection → diagnostics) under
/trace, with one change of core: the child streams execution events (cancellation, bounded retained output, final outcome) instead of returning a recording after completion, so the route page shows live Suspense/progress and the HTTP handler publishesroute.invocationas it happens rather than afterservice.invoke()resolves. #632 (heading locator ambiguity) folds into 2b's acceptance tests. Work already integrated onwb600-pr2-traceis rebased onto 2a.PR 3 — Sessions (after 2b correlates)
PTY-backed Claude Code / Codex terminals, unchanged in scope; it starts only once 2b's trace correlates host sessions.
Page deletions from PR 1 stay; no new top-level destination in any of the three.
ScriptedAlchemy commentedon Sep 5, 2026
Acceptance refinements to the existing PR 2a → 2b → 3 plan, not a second redesign checklist:
tool:<server>/<tool>. Currentroute-invocation-service.tsrejectsargsunlessroute.kind === 'cli'; simply forwarding CLI argv to that route ID will not exercise the projection. Select the compiled command/surface explicitly, reuse its confirmation/defaults/mapInput/canonical-validation boundary, and retain the same operation ID. Do not create a duplicate CLI operation to make the Workbench API work.continue/denymust never import or run the handler;defermust run the handler once, with the gate run once and the selected provider set respected. A component-only unit render is not evidence for this behavior../panel.jsfixture. The emitted-JSbuild/module-imports.tsslated for deletion in build: AB7014 from consumer-runtime evidence (option A); gate the generated-JS walk on the compile evidence record (#619 steps b–d) #634 should not become a new dependency of this fix; use existing source AST facilities only where needed.The stateful-session regression should also use the out-of-artifact framework state contract tracked in the #628 follow-up, without moving plugin-owned domain persistence into Agent Bundle. Preserve #629's page deletions.
ScriptedAlchemy commentedon Sep 5, 2026
Integrator progress — PR 2a opened.
PR 2a "execution parity + provenance" is #643 (
wb600-pr2a-exec, heada89aa6cd6). It carries P1-A (AST-only.js→.tsxspecifier rewrite,report.tsx/panel.tsxfixture), P1-B (productionmode by default: published epoch's compiled artifact → generated hook wrapperprepareRouteInvocationincl. #618 preflight, generated CLI binmapInput/confirmation, compiler aliases/defines, persistent state onAGENT_BUNDLE_STATE_ROOT=<epoch>/stateper #640;mode: "unit-render"explicit; all four parity tests), P1-C (epoch lease acquired inside the concurrency slot,409 AB8239when stale, queued-stale test), and P2 (telemetry only from what the worker measured;unobservedotherwise). New codesAB8239,AB8250–AB8252; en+zh docs; one changeset. Self-review (Claude reviewer) running now; auto-merge after findings are addressed and CI is green.PR 2b (live trace) has started in parallel: lane B0 is rebasing the trace integration branch onto #643 so the kernel trace flows from the production execution path; B1 (streamed execution events, cancellation, bounded retained output, final outcome), B2 (acceptance incl. #632 heading locator), B3 (docs/changeset, #604 manifest adoption for the tree) follow. PR 3 waits for 2b.
ScriptedAlchemy commentedon Sep 5, 2026
PR 2a acceptance list (owner addendum 19:56 merged with the 17:28 refinements). #643 stays open until every line holds; each maps to a test in the PR.
Request model — one canonical operation, one selected surface, surface-shaped input.
RouteInvocationRequest=routeId(the canonical operation, e.g.tool:curator/search_audible; feat(routes): CLI surface projections of MCP tools — colocated <tool>.cli.ts, mapInput, AB4843–AB4845 (#596) #616's backing route stays the identity) +surface(mcp|cliwith the projected command and argv |eventwith host fixture / fixture id |unit-render) + surface input. A tool is invoked through MCP or through its CLI projection with the same operation id and no duplicate CLI operation; the record carries operation and surface separately.unit-renderis the explicitly named isolated component mode and never the default.prepareRouteInvocationboundary: confirmation, defaults,mapInput, canonical validation — never a Workbench re-implementation.Execution boundary — the published epoch's compiled artifact, the same path the generated entries take.
continueanddenynever import or run the handler;deferruns the gate once and the handler once with the selected provider set respected. A component-only unit render is not evidence.AB8239; new source is never labelled with the old revision; a request cancelled while queued never begins execution.AGENT_BUNDLE_STATE_ROOT, distinct from the code root, outside the epoch so epoch retirement never deletes durable data; shared with the dev MCP session); isolated mode resets explicitly.import/export … from/import()specifiers via source AST; ordinary string literals ('./panel.js') are untouched;build/module-imports.ts(build: AB7014 from consumer-runtime evidence (option A); gate the generated-JS walk on the compile evidence record (#619 steps b–d) #634 deletion) is not a dependency.Telemetry — observations, not inventions.
unobserved.succeeded.Fixtures (all six)
continue/deny/deferwith a throwing handler → handler not reached oncontinue/deny; reached once ondefer.mapInput→ same canonical input and same confirmation behaviour as the generated executable.'./panel.js'data string → Workbench invocation and compiled executable agree byte-for-byte on the rendered document.AB8239, never mislabelled; cancelled-while-queued never runs.examples/audiobook-curator, 1440×900).Ordering. PR 2b's live-stream transport (render events, cancellation, bounded retained output, final outcome) is fixed after this boundary is correct and streams from it; PR 3's PTY sessions reuse 2b's correlation ids and lifecycle entries — no second trace framework.
ScriptedAlchemy commentedon Sep 5, 2026
Small-plugin acceptance alongside Cargo Hauler — #652
Ponytail supplies the missing small end of the reference set: skills/instructions plus plain hooks, with no need for a browser App or long-lived MCP server. #652 now tracks the acceptance fixture; extend
examples/skills-starter/examples/hooks-and-scriptsand their existing tests rather than adding another large sample or subsystem.For this Workbench issue:
This is testable author experience and lazy runtime ownership, not a requirement to remove React from the Workbench browser UI itself. #652 also verifies the installed small plugin does not ship unused runtime surfaces.
feat(dev): PR 2a — execution parity, provenance, and honest telemetry…
ScriptedAlchemy commentedon Sep 6, 2026
PR 2a merged — #643 squash-merged as
3afcdc9d87on the local gate (AGENTS.md #662): build/typecheck/lint/unit (4242), route-unit (89), the 13 integration/browser files the diff touches (66 passed, incl.route-invocation-dev-server.test.tsand the Workbench browser pool + audiobook-curator acceptance),packed-release.e2e,docs:site:build. Fable-high review: 3 rounds (10 + 6 findings, all fixed except one explicit dismissal on the kerneltracerecord — the P1-B "real trace" that 2b publishes); dispositions in the PR body. The CI failure on the draft (Verify (integration-2)) was a fixture writing its marker into the watched project root, which triggered a rebuild that raced the next request → fixed at the root. #632 folded in (expectHeading,exact: true) and closed. Watchinggh run list --branch mainfor3afcdc9d87.PR 2b (live trace) is in flight on
wb600-pr2-trace: B0 rebased the trace branch onto 2a (05778fa39a, gates green); B1 is building the smallest transport — the child forwards eachAgentRenderEventlive over the existing IPC, the service keeps a bounded (256) per-invocation replay + subscribers,POST /api/routes/invocationswithstream: true→ 202,GET …/<id>/streamSSE,POST …/<id>/cancel; the route workspace renders the Suspense shell → replace → complete as they arrive with a Cancel button, Trace showsrunningentries live (already there since B0) and deep-links stay as built. Then B2 browser acceptance for the six 2b criteria, deslop, Fable-high review, merge on the local gate.Question for the owner — PR 3 (PTY host sessions). Per the 00:09 note I will not start it unless you still want it. Recommendation: the trace branch already correlates a
tools/callfrom the MCP session workspace and a hook receipt for the same session on one timeline; the Sessions work (xterm.js + node-pty, explicit launch, loopback-only, session token, project-root cwd, redacted env, PTY lifetime bound to the dev server, correlation through 2b's TraceHub) is P1-scoped on the archivedwb600-pr3-*lanes and would be a ~1.5k-line PR with a native dependency in the private Workbench package. Say go (and whethernode-ptyis acceptable as a Workbench devDependency) or drop and I'll close the lane branches.feat(dev): unified live trace — streamed route invocations, cancel, c…
ScriptedAlchemy commentedon Sep 6, 2026
PR 2b landed — #666 squash-merged to
mainas04e0f805ca(branch headba296091df, onorigin/main26293c2354). PR 2a is3afcdc9d87(#643); the watcher hotfix it needed ise4c5e26de3(#669).What is on
mainnow, against the six PR 2 acceptance fixtures:AgentRenderEventover IPC as it happens;POST /api/routes/invocationswithstream: truereturns202+ a running record,GET /api/routes/invocations/<id>/stream(SSE) replays then streamsrender/trace/final. The route workspace renders the Suspense shell → replacements → complete before the outcome arrives. (audiobook-curator.acceptance.e2e,route-invocation-service.test)POST …/<id>/cancelaborts through the sameAbortSignalPR 2a's queue uses, the child tree is reaped (new reap test beside success/timeout/close), the record endsstatus: 'cancelled'with nooutcome;409 AB8256once final.{ type: 'truncated' }marker, server and browser reducer both.hrefto the route workspace (?invocation=<id>) or MCP session; both survive reload; workbench e2e: heading locators withoutexactare ambiguous (SkillsmatchedSource skills) #632'sexpectHeading(exact: true) is used throughout the Workbench browser tests.TraceHubbehindGET /api/trace+/api/trace/stream; publishers: route invocations (incl. kernelEventTraceEvents), MCP session frames (mcpSessionId), hook receipts from generated wrappers underagent-bundle dev(POST /api/trace/receipts: loopback peer, per-run bearer token, noOrigin, 16 KiB cap,AB8247–AB8249; the.agent-bundle/hook-receipts.jsonrecord carries the serverpidand is ignored when dead), dev-log warnings/errors with request-scoped correlation, build/contract/host diagnostics. Theruntime(MCP App run) source the branch once had was deleted as outside the spec. No PTY/host-session source yet.Not added: no new top-level destination; the PR 1 page deletions stand. Review: three Fable-high rounds (11 + 7 + 2 findings), all fixed or dismissed with reasons in the PR body; local gate = whole integration pool (98 files / 1158 tests) + Workbench browser pool + audiobook-curator acceptance + packed release + docs build, results pasted there. The red
Verify (integration-2)on the PR's old head wasroute-register-typegen.test.tsfrom #664, fixed onmainby #670 before the merge.PR 3 (host sessions) — go / no-go? The original brief is PTY-backed Claude Code / Codex terminals in the Workbench (xterm.js), launched by explicit action against the dev-installed plugin, and correlated into this trace by reusing its correlation/lifecycle (a
sessionIdjoin key from the host'ssession_id, the hook receipt already carries it) rather than a second trace framework. Security posture would be: PTY spawn only from an authenticated loopback Workbench request, project-root authority, no shell exposure beyond the host CLI, session transcript never persisted by the dev server. Cost is real (a native PTY dependency in the dev server, a terminal in the browser, host-CLI availability in CI). Three options:I am not starting PR 3 until you answer here. Recommendation: Go, reduced — it proves the correlation the spec asked for without the PTY surface, and the PTY can be added on top if the headless form turns out to be insufficient.
ScriptedAlchemy commentedon Sep 6, 2026
Owner decision (05:31): go-full for PR 3 — PTY-backed Claude Code / Codex sessions embedded in the Workbench, as the issue specifies. Recording the constraints the build is held to: PTY allocation in the dev server only (a Workbench devDependency if a native module is needed, never in a plugin artifact); launch only by explicit action through the authenticated loopback foreground server; attached to the dev plugin via the existing dev proxy/epoch mechanism; resize/terminate/restart; correlated into the PR 2b trace via the existing
sessionIdjoin key;Open in Claude/Open in Codexfrom a route seeds a prompt; no remote PTY exposure, the host's own permission/consent behavior preserved, project-root authority visible in the Sessions pane, shared trace ids but no hidden credentials. Acceptance onexamples/audiobook-curatorat 1440×900: launch Claude Code, run one tool, see its hook/MCP calls in Trace under that session; same for Codex; terminate/restart. Docs en+zh. Same lane/review/local-gate/squash rules as 2a/2b; #600 closes with the landing summary after the merge.ScriptedAlchemy commentedon Sep 6, 2026
PR 3 plan (host sessions) — lanes dispatched 06:00
Branch
wb600-pr3-sessionsfrommain04e0f805ca(#666). Design, ponytail-sized:@lydell/[email protected](MIT, prebuilt, no node-gyp) as a root workspace devDependency — resolvable from every workspace project incl.examples/audiobook-curator, never named inpackages/agent-bundle/package.json, never in a plugin artifact. The dev server loads it lazily from the project root (createRequire(<project>/package.json)); when it is not resolvable,AB8260disables launch and the rest ofagent-bundle devis unaffected. Consumers who want Sessions add it to their own dev deps (documented). No pure-JS PTY exists in Node, andscript(1)cannot resize, so a native module is unavoidable for the resize requirement.@xterm/xterm@6+@xterm/addon-fit(MIT), bundled by the Workbench Rsbuild config; notice added toTHIRD_PARTY_NOTICES.GET /api/sessions/:id/stream(SSE:state/ base64output/end, bounded 256 KiB replay) +POST …/input|resize|terminate|restart,POST /api/sessions(host, optionalprompt,cols,rows) — all behind the existing mutation-session authority, loopback only, like/api/invocations. Fixed argv (claude [prompt]/codex [prompt]), cwd = project root, max 4 sessions, no approval-bypass flags ever.DevHostInstallManager,--install-host) is attached to the adopted epoch; the Sessions pane shows project root, epoch id, install destination, pid.sessionIdjoin key): the host's own session id becomes the key as soon as its SessionStart hook receipt arrives — the generated wrapper addsdevSession: <hs id>fromAGENT_BUNDLE_DEV_SESSION, the server records the alias and publishessession.attached. Codex MCP frames already carry the Codex session id natively; for Claude the dev proxy sendsx-agent-bundle-dev-sessionand the MCP trace sink resolves the alias per frame. Rationale: Codex whitelists the env of stdio MCP servers, so pushing our id through the env alone would not reach Codex's proxy.sessions.e2e.test.tsonexamples/audiobook-curator(1440×900) with fakeclaude/codexCLIs onPATHthat run the installed plugin's real SessionStart hook and one realtools/callthroughagent-bundle dev proxy; plus an opt-in real-host file (AGENT_BUNDLE_NATIVE_HOST_CONTRACTS=1) run locally against the installed Claude Code and Codex.Lanes: S1 server (Sol), S2 trace plumbing (Grok), S3 Workbench UI (Fable-high), S4 acceptance/docs/changeset after S1–S3 integrate. Then
origin/mainmerge, full local gate (unit, whole integration pool, Workbench browser pool, docs site, real-host file), deslop, Fable-high review, squash merge,mainrun watch, landing summary here and on #592.feat(dev): PTY-backed Claude Code / Codex host sessions in the Workbe…
ScriptedAlchemy commentedon Sep 6, 2026
PR 3 landed — #600 complete. #675 squash-merged to
mainasa1cd6acd78(branch head71149d85c2, onorigin/mainc864e11a82).Landing summary (PR 1 / 2a / 2b / 3)
c9cc7937fPOST/GET /api/routes/invocations), the PR 1 page deletions.e4c5e26de3)3afcdc9d87mapInput/ session state), whole-source.js→.tsxrewrite fix, queued invocations execute the source revision they were queued against, parity tests.04e0f805castream: true,/api/routes/invocations/<id>/stream), cancellation (…/cancel,AB8256), bounded retained output, unchanged final envelope, deep links from every Trace entry, oneTraceHubbehindGET /api/trace+/api/trace/streamwith route-invocation, MCP-session, hook-receipt (POST /api/trace/receipts,AB8247–AB8249), dev-log and diagnostics publishers.a1cd6acd78HostSessionService+HostSessionRoutesunder/api/sessions*(list, create, get, SSE stream, input, resize, terminate, restart, delete) on the loopback foreground server behind its mutation-session guard; PTY via@lydell/node-ptyas a root workspace devDependency only — never inpackages/agent-bundle/package.json, never in a plugin artifact (loaded throughcreateRequire, which the dist import walk leaves alone;AB8260disables launch when it is absent). Fixed argvclaude [prompt]/codex [prompt], cwd = project root, env = dev server env + hook-receipt vars +AGENT_BUNDLE_DEV_SESSION; a host is launchable only while its--install-hostdev install is attached to the adopted epoch; prompts that are blank or start with-are refused (AB8261); no approval-bypass flag is ever passed; the foreground token never reaches the child. Trace correlation reuses the PR 2bsessionIdjoin key: hook receipts carrydevSession, asession/startreceipt aliases thehs_…id to the host's ownsession_id(session.attached;/clearmoves it), the dev proxy sendsx-agent-bundle-dev-session+x-agent-bundle-dev-pid, and because Codex forwards only a whitelisted env to stdio MCP servers the server resolves the session from the proxy's process ancestry. New trace sourcesession(session.started/attached/exited/terminated). Workbench:Host sessionsdestination (/sessions?session=<id>), xterm.js terminal (@xterm/xterm6 + fit addon, MIT, bundled by the Workbench Rsbuild config), launch buttons with availability reasons, authority strip (project root · epoch · install destination · pid · state · restart-of), Terminate / Restart / Forget,Open in Claude/Open in Codexon tool, event and CLI route workspaces seeding a prompt, Trace ⇄ Sessions links. DiagnosticsAB8260–AB8266; docs en+zh (Workbench guide "Host sessions",dev-server-http,runtime-environment).PR 3 acceptance
packages/workbench/tests/sessions.e2e.test.tsat 1440×900 on a copy ofexamples/audiobook-curatorwith fakeclaude/codexCLIs (packages/agent-bundle/tests/support/fake-host-cli/) that behave like hosts attached to the dev install — run the installedSessionStarthook command, spawn the.mcp.jsondev proxy,initialize → tools/list → tools/call; the Codex fake keeps the host's env whitelist. Asserts launch → terminal banner → authority strip →traceSessionIdlearned → one Trace group withsession.*,hook.receivedandtools/call→ link back → terminate → restart withRestart of→ same for Codex →Open in Claudefrom a tool route seeds the prompt → unauthenticatedPOST /api/sessionsrefused → hosts offPATHdisable launch with the reason.claudelaunched from the pane renders Claude Code inside the Workbench with the authority strip; Terminate →TERMINATED · EXIT 143; Restart → new sessionRestart of hs_…; the trace showssession.started/terminated/started(restartOf)on the session id; the PTY child carriesAGENT_BUNDLE_DEV_SESSIONand the hook-receipt vars, not the foreground token. Running a tool through the real hosts was not possible here:claude auth status→loggedIn: false,codexout of usage. The opt-inAGENT_BUNDLE_NATIVE_HOST_CONTRACTS=1 packages/agent-bundle/tests/native-host-sessions.test.tsruns that check once credentials exist.Process
Lanes S1 (server), S2 (correlation), S3 (Workbench), S4 (acceptance, fake hosts, docs, changeset) integrated on
wb600-pr3-sessions; deslop (5 edits); Fable-high review, two rounds (6 findings → 5 fixed, 1 dismissed with reason; round 2 raised 1 more, fixed); local gate = merge gate on the final commit: build, typecheck, lint, unit (4385), route-unit (89), projection (190), the whole integration pool incl. the Workbench browser pool (100 files / 1161 tests), packed (39), docs site build — all pasted in the PR body.mainruns fora1cd6acd78all green: CI (every Verify leg and integration shard), Docs, Package preview, Release packages.Follow-ups (pre-existing, found during acceptance; not in PR 3)
agent-bundle dev --install-host …after a dev install exists fails — Claude:AB7202/AB7004because the installer's compare (install/receipt.tstreeInventory) refuses the dev generation's symlink layout; Codex: "marketplace … already added from a different source" because each dev install registers a new temp source. The Sessions pane then shows "no dev install attached" for both hosts. Workaround used here:claude plugin uninstall …+marketplace removeon both hosts, then restart.claudeand acodexwith quota on the acceptance machine.ScriptedAlchemy commentedon Sep 6, 2026
Fixed the Claude/Codex dev-install restart failure in #677 by using stable receipt-owned sources, replacing stale crash leftovers, and unregistering on dev-server exit.